background image

 

 

 

Software Development 

FM0+ S6E1C-Series Starter Kit Guide, Doc. # 002-10542 Rev. *C 

38 

 

Open the project file in Keil uVision IDE from the following directory on your PC: 

 

Keil project: 

<User_Directory>:

\

FM0+ S6E1C-Series Starter 

Kit_Ver01

\Firmware\Demo Projects\s6e1c3_flash\ARM 

\s6e1c3_flash.uvprojx. 

 

Build the project and download the code to the S6E1C3 device. 

 

Open  the 

Memory1

  window  from  the 

View

  ->

Memory  Windows

.  Enter 

0x00017FF0 in the 

Address 

table and press the 

Enter

 key on your PC. 

 

   

 

 

 

Run the program for a while (>10s). 

 

Stop the program and check the content of 0x00017FF0 in flash. 

 

 

 

4.2.4    UART Communication 

4.2.4.1  Project Description 

This  project  demonstrates  the  UART  communication  of  the  S6E1C3  device.  This  program 
enables  the  MFS0  as  UART  mode  to  communicate  with  the  CMSIS-DAP.  The  CMSIS-DAP 
serves as the bridge between the MCU and PC. 

4.2.4.2  Hardware Connection 

No specific hardware connections are required for this project. All connections are hardwired on 
the board. 

Содержание FM0+ S6E1C-Series

Страница 1: ...FM0 S6E1C Series Starter Kit Guide Doc 002 10542 Rev C Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 1 408 943 2600 www cypress com...

Страница 2: ...Y SOFTWARE INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE Cypress reserves the right to make changes to this document without further notic...

Страница 3: ...upport 7 1 7 Acronyms 7 2 Installation and Test Operation 8 2 1 Install Software 8 2 2 Un install Software 11 2 3 Test Operation 12 3 Hardware 17 3 1 System Block Diagram 17 3 2 Hardware Features 17 3...

Страница 4: ...the S6E1B Series and the S6E1C Series This kit uses a device from the S6E1C Series The S6E1C Series microcontroller is based on the ARM Cortex M0 processor with on chip flash memory This series has pe...

Страница 5: ...N7 CN10 2 User button 3 MB9AF312K programmer and debugger CMSIS DAP 4 Serial programming mode select J3 5 Power supply resource select J4 6 USB device connector CN4 7 Potentiometer 8 MB9AF312K program...

Страница 6: ...2 Connector Description Connector Description CN1 Headphone and microphone jack CN2 10 pin JTAG interface CN3 USB port of CMSIS DAP CN4 USB port of FM0 MCU CN7 CN8 CN9 CN10 Arduino compatible headers...

Страница 7: ...800 541 4736 Ext 2 in the USA or 1 408 943 2600 Ext 2 International 1 7 Acronyms Table 1 3 Acronyms Used in this Document Acronym Description ADC Analog to Digital Converter CMSIS DAP Debug Access Por...

Страница 8: ...them from the Internet FM0 S6E1C Series Starter Kit Only Package This executable file installs only the kit contents which include kit code examples hardware files and user documents This package can...

Страница 9: ...Select the folder in which you want to install this package or use the default folder 5 When you click Next the FM0 S6E1C Series Starter Kit installer automatically installs the required software if...

Страница 10: ...ms in the license agreement to continue with installation Then click Next 8 When the installation begins a list of packages appears on the installation page A green check mark appears next to each pac...

Страница 11: ...Documents Cypress FM_PDL_2 0 1 And the kit example projects will be extracted to this directory C Users User Name My Documents Cypress FM0 S6E1C Series Starter Kit_Ver01 In the rest of the document t...

Страница 12: ...T Programmer User_Directory FM0 S6E1C Series Starter Kit_Ver01 Firmware Demo Projects Test_Demo_Code 2 3 1 Run the Test Demo Follow the instructions to run the test code 1 Ensure the jumpers J1 and J2...

Страница 13: ...nnect to the board Figure 2 6 Select the Baud Rate 5 Press the Enter key on your keyboard to run the test procedure Key in the option number and press the Enter key to run the test Figure 2 7 Test Pro...

Страница 14: ...the results There are eight test procedures and a brief description of each test procedure is given below UART CMSIS DAP Port Test This procedure will test the UART communication between CMSIS DAP an...

Страница 15: ...11 RGB LED Test SW2 Key Test This procedure tests the switch SW2 Key in 3 and press the Enter key the test routine will detect the press and release status of the SW2 switch Figure 2 12 SW2 Key Test P...

Страница 16: ...l display Fail Figure 2 14 NOR Flash Test Headphone Test This procedure tests the headphone channel of the stereo codec Key in 6 and press the Enter key a pre determined calling bell sound will be hea...

Страница 17: ...hardware details of the FM0 S6E1C Series Starter Kit 3 1 System Block Diagram Figure 3 1 shows the system block diagram of the FM0 S6E1C Series Starter Kit Figure 3 1 System Block Diagram 3 2 Hardwar...

Страница 18: ...6E1C3 MCU features a wide variety of peripherals such as timers 12 bit SAR ADC and communication interfaces like USB host and device CSIO SPI I2S I2C slave only and UART 3 3 2 User Button and LED The...

Страница 19: ...The FM0 S6E1C Series Starter Kit provides footprint compatibility with the Arduino interface These headers expand the possibility for users to develop more applications based on this kit and different...

Страница 20: ...CCO_2 SUBOUT_2 IC1_CIN_0 D3 PWM 10 P35 SCS62_1 TIOB5_1 INT08_1 D4 IO 12 P3B TIOA1_1 IC1_DATA_0 D5 PWM 13 P3C TIOA2_1 IC1_RST_0 D6 PWM 23 P43 ADTG_7 TIOA3_0 D7 IO 54 P02 WKUP5 D8 IO 52 P00 WKUP4 D9 IO...

Страница 21: ...data transmission The I2C address for configuring the stereo codec is 0x1A On the analog side the codec has headphone microphone line in and line out channel On this kit only headphone and microphone...

Страница 22: ...nd output single I O or SIO as well as optional two bit Dual I O or DIO and four bit Quad I O or QIO serial protocols This multiple width interface is called SPI Multi I O or MIO The 33R resistors are...

Страница 23: ...0 connect to an additional connector CN13 to provide another connection point Pin 24 Pin 25 Pin 26 are multiplexed pins which are connected to CN12 by default via wire jumpers jp3 jp4 and jp5 See Mult...

Страница 24: ...alue ranges from 0 to 10k The middle terminal is connected to the ADC channel AN00 Pin40 Figure 3 6 Potentiometer 3 3 8 USB Interface The FM0 S6E1C3 MCU has a USB channel that can work as a host or a...

Страница 25: ...has just the SWD interface The CMSIS DAP module can also power the FM0 S6E1C Series Starter kit via the CN3 connector when pin 1 and pin 2 of Jumper J4 are shorted Pin 45 is a multiplexed pin it is co...

Страница 26: ...le with 0603 footprint It is easy to close them by soldering a 0R 0603 resistor on it Table 3 6 shows the wire jumper information Table 3 6 Wire Jumpers for Multiplex Pins Wire Jumper Function jp1 def...

Страница 27: ...ively The jumper J5 is in parallel with jp11 Figure 3 10 Power Supply Connection The power supply connection shown above enables customer to measure the current that FM0 S6E1C3 MCU consumes Open the j...

Страница 28: ...e vendor s website A full license may be required to build or debug some of the example projects For detailed information on using the tools see the documentation in the Help section of the tool chain...

Страница 29: ...AP in run mode J2 Open Sets S6E1C3 in run mode J4 Pin 1 to Pin 2 Power from USB port of CMSIS DAP CN3 5 Connect the USB cable to CN3 port 6 Observe that the Power LED LED3 is glowing green 7 Click the...

Страница 30: ...in this directory Keil_Install_Directory ARM flash If the flash loader file is not available copy from following location to Keil install directory mentioned above User_Directory FM0 S6E1C Series Star...

Страница 31: ...DE please click Help 4 2 Example Projects The FM0 S6E1C Series Starter Kit includes twelve example projects to help the user get a quick start with the S6E1C3 device They are in this directory User_Di...

Страница 32: ...ED LED4 will change the color from red to green to blue 6 s6e1c3_flash Title Flash Write Description This project demonstrates the flash writing operation of the S6E1C3 device A specific set of four v...

Страница 33: ...re Demo Projects s6e1c3_adc IAR s6e1c3_adc eww Keil project User_Directory FM0 S6E1C Series Starter Kit_Ver01 Firmware Demo Projects s6e1c3_adc ARM s6e1c3_adc uvprojx 3 Build the project and download...

Страница 34: ...will be displayed in Serial Port Viewer window Figure 4 2 ADC value 6 Turn the potentiometer RP1 the ADC value will change 4 2 2 Descriptor System Data Transfer Controller DSTC 4 2 2 1 Project Descri...

Страница 35: ...en the project file in IAR Embedded Workbench from the following directory on your PC IAR project User_Directory FM0 S6E1C Series Starter Kit_Ver01 Firmware Demo Projects s6e1c3_dstc IAR s6e1c3_dstc e...

Страница 36: ...project User_Directory FM0 S6E1C Series Starter Kit_Ver01 Firmware Demo Projects s6e1c3_dstc ARM s6e1c3_dstc uvprojx Build the project and download the code to the S6E1C3 device Open Watch1 window fr...

Страница 37: ...Embedded Workbench Power the FM0 S6E1C Series Starter board from CN3 using USB cable refer to Figure 2 4 Open the project file in IAR Embedded Workbench from the following directory on your PC IAR pro...

Страница 38: ...View Memory Windows Enter 0x00017FF0 in the Address table and press the Enter key on your PC Run the program for a while 10s Stop the program and check the content of 0x00017FF0 in flash 4 2 4 UART Co...

Страница 39: ...Demo Projects s6e1c3_mfs_uart IAR s6e1c3_mfs_uart eww Keil project User_Directory FM0 S6E1C Series Starter Kit_Ver01 Firmware Demo Projects s6e1c3_mfs_uart ARM s6e1c3_mfs_uart uvprojx 3 Build the pro...

Страница 40: ...59 01 Wednesday 4 2 5 2 Hardware Connection No specific hardware connections are required for this project All connections are hardwired on the board 4 2 5 3 Verify Output 1 Power the FM0 S6E1C Series...

Страница 41: ...dar data will be displayed in Serial Port Viewer window Figure 4 7 Calendar 4 2 6 Sleep Mode 4 2 6 1 Project Description This project demonstrates the sleep mode operation of the S6E1C3 device The MCU...

Страница 42: ...ate the operation of the S6E1C3 watchdog The project will demonstrate the impact of two different situations with watchdog enabled when the watchdog is fed and when the watchdog is not fed If the watc...

Страница 43: ...mming Jumper Settings using FLASH USB DRIECT Programmer Jumper Position Description J1 Open Sets MB9AF312K CMSIS DAP in run mode J2 Closed Sets S6E1C3 in programming mode J3 Pin 2 to Pin 3 Sets USB pr...

Страница 44: ...tarter Kit Guide Doc 002 10542 Rev C 44 8 Check the COM Port number in the Windows Device Manager 9 Enter the Virtual COM Port listed in the Ports of Device Manager in COM box 10 Click the Full Operat...

Страница 45: ...n the MB9AF312K already It is not required for the user to re program firmware again Follow the steps below to update the firmware if needed 1 Make sure the jumpers on the FM0 S6E1C Series Starter boa...

Страница 46: ...SB DIRECT Programmer USBDirect 6 Select Target MCU to MB9AF312K 7 Select the Motorola S format file or Intel HEX format file to be programmed to FLASH memory in the MCU The Hex file is included in the...

Страница 47: ...IS DAP microcontroller by removing and reconnecting the USB cable and click OK Note Please click on Help for any issues or errors encountered during programming 4 3 3 Programming the S6E1C3 Using the...

Страница 48: ...FM0 S6E1C Series Starter Kit Guide Doc 002 10542 Rev C 48 A Appendix A 1 Schematic Figure A 1 MCU...

Страница 49: ...Appendix FM0 S6E1C Series Starter Kit Guide Doc 002 10542 Rev C 49 Figure A 2 CMSIS DAP USB...

Страница 50: ...Appendix FM0 S6E1C Series Starter Kit Guide Doc 002 10542 Rev C 50 Figure A 3 Stereo Codec...

Страница 51: ...Appendix FM0 S6E1C Series Starter Kit Guide Doc 002 10542 Rev C 51 Figure A 4 Interfaces...

Страница 52: ...polarity YAGEO CC0603JPNPO9BN120 8 1 C26 10nF 50V Capacitor without polarity YAGEO CC0603KRX7R9BB103 9 2 C39 C40 22uF 10V Tan capacitor AVX TAJA226K010RNJ 10 1 C44 100pF 50V Capacitor without polarity...

Страница 53: ...S530 A5 T R8 29 1 LED4 CLV1A FKB CJ1M1F 1BB7R4S3 RGB LED SMD 4pin Cree CLV1A FKB CJ1M1F1B B7R4S3 30 2 Q1 Q2 MMC8550 PNP transistor MCC MMS8550 H TP 31 7 R1 R2 R3 R8 R56 R59 R60 33R Resistor YAGEO RC06...

Страница 54: ...T C4SA 01 3 5 6 5mm SMT 2Pin Push button HARO K2 1101ST C4SA 01 51 1 U1 WM8731SEDS V Stereo CODEC 28SSOP Wolfson ROHS Wolfson WM8731SEDS V 52 1 U2 S6E1C32D0AGV2000 0 0 5mm LQFP64 Spansion Cypress S6E1...

Страница 55: ...in all instances across the document Updated Installation and Test Operation Updated Test Operation Updated Test Procedure Explanation Updated description Updated Hardware Updated Hardware Details Up...

Отзывы: