Fujitsu SK-AMAPOLLO-BASE-V11 User Manual
Fujitsu SK-AMAPOLLO-BASE-V11 User Manual

Fujitsu SK-AMAPOLLO-BASE-V11 User Manual

Ambiq micro apollo 1 / 2 evaluation board

Advertisement

Quick Links

Fujitsu Electronics Europe
FEEU-UG-2017120001-10
User Guide
AMBIQ MICRO APOLLO 1 / 2
EVALUATION BOARD
SK-APOLLO-BASE
USER GUIDE

Advertisement

Table of Contents
loading

Summary of Contents for Fujitsu SK-AMAPOLLO-BASE-V11

  • Page 1 Fujitsu Electronics Europe FEEU-UG-2017120001-10 User Guide AMBIQ MICRO APOLLO 1 / 2 EVALUATION BOARD SK-APOLLO-BASE USER GUIDE...
  • Page 2: Revision History

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Revision History Revision History Date Issue 2017-12-04 V1.0, Manuel Schreiner, first version This document contains 46 pages. EEU-UG-2017120001-10 - 2 - © Fujitsu Electronics Europe GmbH...
  • Page 3: Terms Of Use, Limited Warranty

    IC’s etc.) is subject to the conditions of Fujitsu Electronics Europe GmbH (“FEEU”) as set out in (i) the terms of the License Agreement and/or the Sale and Purchase Agreement under which agreements the Product has been delivered, (ii) the technical descriptions and (iii) all accompanying written materials.
  • Page 4: Table Of Contents

    Apollo 2 Jumper Configuration ..............30 GPIO Connection ....................... 31 3.2.1 Apollo 1 GPIO Connection ................31 3.2.2 Apollo 2 GPIO Connection ................32 Arduino Header ......................33 3.3.1 Apollo 1 Arduino Header ................33 EEU-UG-2017120001-10 - 4 - © Fujitsu Electronics Europe GmbH...
  • Page 5 3.3.2 Apollo 2 Arduino Header ................35 4 APPENDIX .......................... 38 Schematics ........................ 38 Figures ........................43 Index .......................... 44 5 INFORMATION IN THE WWW ..................45 6 RECYCLING ........................46 © Fujitsu Electronics Europe GmbH - 5 - EEU-UG-2017120001-10...
  • Page 6: Feeu Apollo Evaluation

    FEEU APOLLO EVALUATION 0 FEEU APOLLO EVALUATION The Fujitsu Apollo Evaluation Platform is compatible with Ambiq Micro Apollo 1 or Apollo 2. The platform consists of two parts: The breakout board and the base board. The breakout boards for Apollo 1 and Apollo 2 are pin-compatible but not totally functional compatibe.
  • Page 7 IAR Workbench or ARM/Keil µVision, but is also supported by a free-of-charge toolchain iSystem WinIDEA Open. For additional communication to the PC, the on-board CMSIS-DAP compatible chip “Fujitsu D-Bug” supports USB to UART conversion. The Fujitsu Evaluation Platform includes additional software examples (based on MCU templates) to the Ambiq Micro’s SDK.
  • Page 8: Introduction Sk-Apollo-Base

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 1 Introduction SK-APOLLO-BASE 1 Introduction SK-APOLLO-BASE The SK-AMAPOLLO-BASE-V11 evaluation board includes a low-cost evaluation board usable with FEEUs Ambiq Micro Apollo break-out boards SK-AMAP1-BREAKOUT-V11 (Apollo 1) and SK-AMAP2-BREAKOUT-V11 (Apollo 2). 1.1 Scope of delivery Apollo base–board SK-AMAPOLLO-BASE-V11 in ESD bag...
  • Page 9: Overview

    For Apollo 1 only UART is supported by this connector. For Apollo 2 UART and SPI can be used. Figure 0-1: Overview EVK-Apollo-Baseboard Figure 0-2: Apollo 1 / 2 Breakout-Board © Fujitsu Electronics Europe GmbH - 9 - EEU-UG-2017120001-10...
  • Page 10: Using The Hardware

    2x 27pin 2.54mm header: 50GPIOs, NRST, AREF, GND and VCC MCU (Apollo 1 or Apollo 2) Inductors for the DC/DC converter 32.768 KHz crystal ADC filter network Reset button SWD connector (Debug) EEU-UG-2017120001-10 - 10 - © Fujitsu Electronics Europe GmbH...
  • Page 11: Getting Started

    (1) Check the jumpers as described in 2.1 Jumpers depending of the selected Apollo 1 or Apollo 2 breakout board. (2) Insert the breakout board with the RESET button in direction of the Power / USB connector. Figure 1-2: Breakout-Board Orientation © Fujitsu Electronics Europe GmbH - 11 - EEU-UG-2017120001-10...
  • Page 12 Atollic TrueStudio (free of charge / commercial) https://atollic.com/resources/download/ c. IAR Embedded Workbench (commercial) i. EWARM 30-day Evaluation Version http://supp.iar.com/Download/SW/?item=EWARM-EVAL ii. EWARM 32K Kickstart Version http://supp.iar.com/Download/SW/?item=EWARM-KS32 d. Keil µVision / ARM MDK (commercial) i. Evaluation Version https://www.keil.com/demo/eval/arm.htm EEU-UG-2017120001-10 - 12 - © Fujitsu Electronics Europe GmbH...
  • Page 13: Power Measurement

    MCU. Figure 1-4: External DVM Connection To measure also the power consumption of components at the Arduino shield, set JP16 to 2- 3 position Figure 1-5: Include Arduino-Header in Power Measurement © Fujitsu Electronics Europe GmbH - 13 - EEU-UG-2017120001-10...
  • Page 14: Usb To Serial

    With this jumper selection, GPIO0 is UARTTX and GPIO1 UARTRX. For Apollo 2, JP7 must be 2-3 and P1 3-4: Figure 1-8: Apollo 2 jumper configuration for UART usage With this jumper selection, GPIO1 is UARTTX and GPIO2 UARTRX. EEU-UG-2017120001-10 - 14 - © Fujitsu Electronics Europe GmbH...
  • Page 15 ApolloGpio_GpioSelectFunction(PIN_GPIO2,2); //use UART at GPIO2 #else ApolloGpio_GpioSelectFunction(PIN_GPIO0,2); //use UART at GPIO0 ApolloGpio_GpioSelectFunction(PIN_GPIO1,2); //use UART at GPIO1 #endif ApolloUart_Init(UART,115200); ApolloUart_PutString(“Hello World!\r\n”); while(1) if (ApolloUart_HasChar(UART)) //button SW1 is pressed c = ApolloUart_GetChar(UART); ApolloUart_PutChar(UART,c); © Fujitsu Electronics Europe GmbH - 15 - EEU-UG-2017120001-10...
  • Page 16: User Buttons

    GPIO: #include "mcu.h" #include "apollogpio.h" int main(void) ApolloGpio_GpioInputEnable(PIN_GPIO28,TRUE); //set GPIO28 //to input ApolloGpio_GpioInputEnable(PIN_GPIO17,TRUE); //set GPIO17 //to input while(1) if (ApolloGpio_GpioIsSet(PIN_GPIO28)) //button SW1 is pressed //do the script executing code EEU-UG-2017120001-10 - 16 - © Fujitsu Electronics Europe GmbH...
  • Page 17: Drive Buttons Via Irq

    //clear pending flag NVIC_EnableIRQ(GPIO_IRQn); //enable IRQ NVIC_SetPriority(GPIO_IRQn,1); //set priority of IRQ //smaller value means //higher priority while(1) if (bSw1CallbackHappened) //button SW1 is pressed bSw1CallbackHappened = FALSE; //do the script executing code © Fujitsu Electronics Europe GmbH - 17 - EEU-UG-2017120001-10...
  • Page 18: Rbg Led

    PWM to dim a LED: #include "mcu.h" #include "apollogctimer.h" int main(void) ApolloCTimer_PwmInitByGpio(PIN_GPIO42,TRUE); //set GPIO42 //to PWM ApolloCTimer_PwmInitByGpio(PIN_GPIO43,TRUE); //set GPIO43 //to PWM ApolloCTimer_PwmInitByGpio(PIN_GPIO46,TRUE); //set GPIO46 to ApolloCTimer_PwmSetDutyByGpio(42,0.5f); //set red LED to //50% duty cycle while(1) __NOP(); EEU-UG-2017120001-10 - 18 - © Fujitsu Electronics Europe GmbH...
  • Page 19: Arduino Headers

    13/SCK GPIO or SPI SCK GPIO8/M1SCL GPIO8/M1SCL AREF Analog Reference GPIO16 D18 or SDA 18/SDA GPIO or I2C SDA GPIO6/M0SDA GPIO6/M0SDA D19 or SCL 19/SCL GPIO or I2C SCL GPIO5/M0SCL GPIO5/M0SCL © Fujitsu Electronics Europe GmbH - 19 - EEU-UG-2017120001-10...
  • Page 20: Using Digital Io

    Add apollogpio.c to your project and include apollogpio.h and skamapollobase.h in you C- file. Following code gives an example how to poll the GPIO: #include "mcu.h" #include "skamapollobase.h" #include "apollogpio.h" int main(void) ApolloGpio_GpioInputEnable(ARDUINO_D0,TRUE); ApolloGpio_GpioOutputEnable(ARDUINO_D1,TRUE); while(1) if (ApolloGpio_GpioIsSet(ARDUINO_D0)) ApolloGpio_GpioSet(ARDUINO_D1); else ApolloGpio_GpioClear(ARDUINO_D1); EEU-UG-2017120001-10 - 20 - © Fujitsu Electronics Europe GmbH...
  • Page 21: Using Adc

    Add apollogpio.c and apolloadc.c to your project and include apolloadc.h and skamapollobase.h in you C-file. Following code gives an example how to poll the ADC: #include "mcu.h" #include "skamapollobase.h" #include "apolloadc.h" int main(void) float32_t f32AdcValue = 0.0f; while(1) f32AdcValue = ApolloAdc_SimpleReadByPin(ARDUINO_A0); © Fujitsu Electronics Europe GmbH - 21 - EEU-UG-2017120001-10...
  • Page 22: Using Pwm

    C-file. Following code gives an example how to use a PWM at D2: #include "mcu.h" #include "skamapollobase.h" #include "apollogctimer.h" int ain(void) ApolloCTimer_PwmInitByGpio(ARDUINO_D2,TRUE); ApolloCTimer_PwmSetDutyByGpio(ARDUINO_D2,0.5f);//set red LED to //50% duty cycle while(1) __NOP(); EEU-UG-2017120001-10 - 22 - © Fujitsu Electronics Europe GmbH...
  • Page 23: Using Spi

    2.7.4 Using SPI Start with the FEEU MCU Temlate for Apollo 1 or Apollo 2. Enable IOM FEEU Low-Level- Driver for Apollo in RTE_Device.h (in example\source\config): #define IOMSTR1_ENABLED 1 #define APOLLOGPIO_ENABLED © Fujitsu Electronics Europe GmbH - 23 - EEU-UG-2017120001-10...
  • Page 24 = 0xAA; ApolloIOM_Configure(IOMSTR1,&stcIomConfig); ApolloIOM_Enable(IOMSTR1); ApolloGpio_GpioOutputEnable(ARDUINO_SS,TRUE); CLEAR_GPIO(ARDUINO_SS); //set chipselect //send one byte ApolloIom_SpiWriteByte(IOMSTR1, 0, b, AM_HAL_IOM_RAW); //read one byte b = ApolloIom_SpiReadByte(IOMSTR1, 0, AM_HAL_IOM_RAW); SET_GPIO(ARDUINO_SS); //clear chipselect while(1) __NOP(); EEU-UG-2017120001-10 - 24 - © Fujitsu Electronics Europe GmbH...
  • Page 25: Using I2C

    2.7.5 Using I2C Start with the FEEU MCU Temlate for Apollo 1 or Apollo 2. Enable IOM FEEU Low-Level- Driver for Apollo in RTE_Device.h (in example\source\config): #define IOMSTR0_ENABLED 1 #define APOLLOGPIO_ENABLED © Fujitsu Electronics Europe GmbH - 25 - EEU-UG-2017120001-10...
  • Page 26 ApolloGpio_GpioInputEnable(ARDUINO_SCL,TRUE); ApolloGpio_GpioInputEnable(ARDUINO_SDA,TRUE); ApolloGpio_GpioSelectFunction(ARDUINO_SCL _PIN, ARDUINO_SCL_FUNC); ApolloGpio_GpioSelectFunction(ARDUINO_SDA, ARDUINO_SDA_FUNC); // Writing 1 byte data for address 5, register 0x11 ApolloIom_I2CWriteRegister(IOMSTR1,0x05,0x11,&b,1); // Reading 1 byte data for address 5, register 0x11 ApolloIom_I2CReadRegister(IOMSTR1,0x05,0x11,&b,1); while(1) __NOP(); EEU-UG-2017120001-10 - 26 - © Fujitsu Electronics Europe GmbH...
  • Page 27: Connectors

    As a rule of thumb, the cable length used when connecting external circuitry to the MCU pin header connectors for example should be less than 20cm. Longer cables may affect EMC performance and cause radio interference. © Fujitsu Electronics Europe GmbH - 27 - EEU-UG-2017120001-10...
  • Page 28: Jumpers

    2-3 GPI016/ADC0 (Apollo 2) Debugger Apollo 1 / 2 UART Apollo: 2-4 UART Apollo: 3-4 SPI, 2-4 UART mode Apollo 2: 3-4 UART Apollo 2: 3-4 SPI-Slave, 3-4 UART, 4-6 SPI-Master EEU-UG-2017120001-10 - 28 - © Fujitsu Electronics Europe GmbH...
  • Page 29: Apollo 1 Jumper Configuration

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 3 Connectors 3.1.1 Apollo 1 Jumper Configuration © Fujitsu Electronics Europe GmbH - 29 - EEU-UG-2017120001-10...
  • Page 30: Apollo 2 Jumper Configuration

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 3 Connectors 3.1.2 Apollo 2 Jumper Configuration EEU-UG-2017120001-10 - 30 - © Fujitsu Electronics Europe GmbH...
  • Page 31: Gpio Connection

    Arduino pin 10, SPI CS GPIO27 Button SW1 GPIO28 BLE Connector GPIO29 Arduino A5 GPIO30 Arduino A3 GPIO31 Arduino A4 GPIO32 GPIO33 GPIO34 Arduino pin 1, UART TX GPIO35 Arduino pin 0, UART RX GPIO36 © Fujitsu Electronics Europe GmbH - 31 - EEU-UG-2017120001-10...
  • Page 32: Apollo 2 Gpio Connection

    BLE Connector CTS/CE GPIO29 GPIO30 Arduino A3 GPIO31 Arduino A4 GPIO32 Arduino A5 GPIO33 Arduino A1 GPIO34 Arduino pin 1, UART TX GPIO35 Arduino pin 0, UART RX GPIO36 GPIO37 GPIO38 EEU-UG-2017120001-10 - 32 - © Fujitsu Electronics Europe GmbH...
  • Page 33: Arduino Header

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 3 Connectors 3.3 Arduino Header 3.3.1 Apollo 1 Arduino Header © Fujitsu Electronics Europe GmbH - 33 - EEU-UG-2017120001-10...
  • Page 34 CLKOUT IO Master 3 GPIO (* = Power Switch included) IOM3 GPIO IO Master 4 Debug/Special IOM4 Debug IO Master 5 Loopback IOM5 LOOPBACK Analog Modules (ADC, VCOMP) Audio Analog Audio EEU-UG-2017120001-10 - 34 - © Fujitsu Electronics Europe GmbH...
  • Page 35: Apollo 2 Arduino Header

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 3 Connectors 3.3.2 Apollo 2 Arduino Header © Fujitsu Electronics Europe GmbH - 35 - EEU-UG-2017120001-10...
  • Page 36 CLKOUT IO Master 3 GPIO (* = Power Switch included) IOM3 GPIO IO Master 4 Debug/Special IOM4 Debug IO Master 5 Loopback IOM5 LOOPBACK Analog Modules (ADC, VCOMP) Audio Analog Audio EEU-UG-2017120001-10 - 36 - © Fujitsu Electronics Europe GmbH...
  • Page 37 FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 3 Connectors © Fujitsu Electronics Europe GmbH - 37 - EEU-UG-2017120001-10...
  • Page 38: Appendix

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 4 Appendix 4 Appendix 4.1 Schematics EEU-UG-2017120001-10 - 38 - © Fujitsu Electronics Europe GmbH...
  • Page 39 FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 4 Appendix © Fujitsu Electronics Europe GmbH - 39 - EEU-UG-2017120001-10...
  • Page 40 FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 4 Appendix EEU-UG-2017120001-10 - 40 - © Fujitsu Electronics Europe GmbH...
  • Page 41 FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 4 Appendix © Fujitsu Electronics Europe GmbH - 41 - EEU-UG-2017120001-10...
  • Page 42 FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 4 Appendix EEU-UG-2017120001-10 - 42 - © Fujitsu Electronics Europe GmbH...
  • Page 43: Figures

    Figure 1-2: Breakout-Board Orientation ................... 11 Figure 1-3: USB Connection ..................... 12 Figure 1-4: External DVM Connection ..................13 Figure 1-5: Include Arduino-Header in Power Measurement ..........13 Figure 1-6: USB to UART Converter ..................14 © Fujitsu Electronics Europe GmbH - 43 - EEU-UG-2017120001-10...
  • Page 44: Index

    Figure 1-8: Apollo 2 jumper configuration for UART usage ............. 14 Figure 1-9: Buttons SW1 and SW2 at EVK-Apollo-Base ............16 Figure 1-10: RGB LED at EVK-Apollo-Base ................18 4.3 Index No index entries found. EEU-UG-2017120001-10 - 44 - © Fujitsu Electronics Europe GmbH...
  • Page 45: Information In The Www

    FEEU Ultra-Low-Power Apollo Evaluation Kit Platform Chapter 5 Information in the WWW 5 Information in the WWW Information about FUJITSU ELECTRONICS EUROPE Products can be found on the following Internet pages: http://www.fujitsu.com/feeu © Fujitsu Electronics Europe GmbH - 45 -...
  • Page 46: Recycling

    According to the European WEEE-Directive and its implementation into national laws we take this device back. For disposal please send the device to the following address: Fujitsu Electronics Europe GmbH Warehouse/Disposal Monzastraße 4a D-63225 Langen GERMANY -- END -- EEU-UG-2017120001-10 - 46 - © Fujitsu Electronics Europe GmbH...

Table of Contents