background image

 

Hardware 

 

FM4 S6E2H-Series Starter Kit Guide, Doc. No. 002-11387 Rev. ** 

23 

  Reset button 

  20-pin JTAG interface 

  Selectable on-board voltage (3.3 V or 5.0 V) 

3.3   Hardware Details 

3.3.1    FM4 Series MCU 

The FM4 S6E2HG MCU is a family of highly integrated 32-bit microcontrollers dedicated for high 
performance embedded controllers at competitive price. 

This series is based on the ARM® Cortex®-M4 processor with on-chip flash memory and SRAM, 
and has peripherals such as motor control timers, A/D converters, and communication interfaces 
like CAN, UART, CSIO, I

2

C, and LIN.   

3.3.2    User Button and LED 

The FM4 S6E2H-Series Starter Kit features two user buttons and a 3-color LED. The LED and 
switches are connected to the S6E2HG MCU device via pins listed in 

Table 3-1

.   

Table 3-1: Button and LED 

Pin Number 

Port 

Peripherals 

External Device 

108 

P68 

SCK3_0,TIOB7_2, INT00_2 

SW2 

116 

P60 

SCK5_0,TIOA2_2,NMIX,MRDY_0,WKUP0 

SW3 

82 

P27 

TIOA6_2, INT02_2, RTO05_1 

LED2 

– Red 

22 

P38 

INITX 

LED2 

– Green 

56 

PE0 

MD1 

LED2 

– Blue 

 

Pin 56 is used to drive the blue LED; it is also connected to MD1 pin which is used for the serial 
programming mode setting. Jumper J21 can be used to switch the functions

Table 3-2

 shows 

the configuration. 

Table 3-2: J21 Configuration 

Jumper-J21 

Port 

Function 

Close 2~3 

PE0 

Drive the blue LED 

Close 1~2 

MD1 

Serial programming mode 

 

 

Summary of Contents for FM4 S6E2H Series

Page 1: ...FM4 S6E2H Series Starter Kit Guide Doc No 002 11387 Rev Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 1 408 943 2600 www cypress com...

Page 2: ...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 notice...

Page 3: ...pport 9 1 7 Acronyms 10 2 Installation and Test Operation 11 2 1 Install Software 11 2 2 Uninstall Software 14 2 3 Test Operation 15 3 Hardware 22 3 1 System Block Diagram 22 3 2 Hardware Features 22...

Page 4: ...ries are highly integrated 32 bit microcontrollers with high performance at a competitive cost This series is based on the ARM Cortex M4 processor including floating point instructions with on chip fl...

Page 5: ...ries Starter Kit contains the following as shown in Figure 1 1 FM4 S6E2H Series Starter board USB Standard A to Micro B cable Quick Start Guide Figure 1 1 Kit Contents Inspect the contents of the kit...

Page 6: ...Introduction FM4 S6E2H Series Starter Kit Guide Doc No 002 11387 Rev 6 1 2 Board Details Figure 1 2 FM4 S6E2H Series Starter Kit Markup...

Page 7: ...DAP J2 9 Programmer and debugger enable jumper J3 10 Programming mode jumper of MB9AF312K J5 11 Jumper to connect SW3 to NMIX J10 12 On board voltage select J15 13 Select power from CMSIS DAP J7 14 S...

Page 8: ...de J6 J7 J8 Power supply source select Select only one power source Closed J6 Powered by peripheral at J16 Closed J7 Powered by CN3 USB port of CMSIS DAP Closed J8 Powered by CN2 20 pin JTAG interface...

Page 9: ...ools and how to create a project based on the Peripheral Driver Library PDL The Appendix provides the kit schematics and the bill of materials BOM 1 5 Additional Learning Resources Cypress provides a...

Page 10: ...ug Access Port GPIO General Purpose Input Output I2C Inter Integrated Circuit IDE Integrated Development Environment LDO Low Drop Out voltage regulator LED Light Emitting Diode INT Interuppt RGB Red G...

Page 11: ...the Internet FM4 S6E2H Series Starter Kit Only This executable file installs only the kit contents which include kit code examples hardware files and user documents This package can be used if all the...

Page 12: ...o install this package or use the default folder and click Next 5 Choose the Typical Custom or Complete installation type select Typical if you do not know which one to select in the Product Installat...

Page 13: ...IS DAP driver 8 When the installation begins a list of packages appears on the installation page A green check mark appears next to each package after successful installation 9 If you are an un regist...

Page 14: ...ill be extracted to this default directory C Users User Name My Documents Cypress FM_PDL_2 0 1 And the example projects will be extracted to this default directory C Users User Name My Documents Cypre...

Page 15: ...4 S6E2H Series Starter Kit_Ver01 Firmware Demo Projects Test_Demo_Code 2 3 1 Run the Test Demo Follow the instructions to run the test demo code 1 Ensure the jumpers J7 J10 and J19 are closed Close Pi...

Page 16: ...press FM Communications Port Figure 2 6 FM Link CMSIS DAP Cypress FM Communications Port 6 Select the baud rate 115200 and click the Disconnect button to connect the board Figure 2 7 Select the Baud R...

Page 17: ...2H Series Starter Kit Guide Doc No 002 11387 Rev 17 8 For example key in 1 to test the Red LED Figure 2 9 Red LED Test 1 9 Press the Enter key to complete the Red LED test The terminal window will dis...

Page 18: ...y the results There are eight test procedures A short description of each test procedure is given below Red LED RGB LED Test This procedure will test whether red LED works normally Key in 1 to run the...

Page 19: ...ue LED will blink Then press the Enter key on the PC to complete the test TESTED will be displayed as shown in Figure 2 13 Figure 2 13 Blue LED Test SW2 User Key Test This procedure is to test switch...

Page 20: ...te the test It will display OK Figure 2 15 SW3 User Key Test Potentiometer Test This procedure tests the potentiometer Key in 6 and Turn Pot clockwise anti clockwise appear in the serial port viewer w...

Page 21: ...Card is not found in the slot the console will display Fail Figure 2 17 SD Card Test Sub Clock Test This procedure will test whether the sub clock is at 32 768 KHz or not Key in 8 and press the Enter...

Page 22: ...ter Kit 3 1 System Block Diagram Figure 3 1 shows the block diagram of the FM4 S6E2H Series Starter Kit Figure 3 1 System Block Diagram 3 2 Hardware Features Cypress FM4 S6E2HG MCU On board ICE CMSIS...

Page 23: ...3 2 User Button and LED The FM4 S6E2H Series Starter Kit features two user buttons and a 3 color LED The LED and switches are connected to the S6E2HG MCU device via pins listed in Table 3 1 Table 3 1...

Page 24: ...ce connected with the SDIO macro of the S6E2HG device This SD card interface supports full function of the SDIO including data transmission card detection and write protection Figure 3 2 SD Card Circu...

Page 25: ...ower supply 7 CLK I Clock 8 VSS2 power Power supply ground 9 DAT0 I O Data 10 DAT1 I O Data 11 W P O Write protect detect 3 3 4 CMSIS DAP The FM4 S6E2H Series Starter Kit features an on board CMSIS DA...

Page 26: ...gramming the FM4 S6E2HG MCU or for connecting a third party debugging tool CN2 is a standard ARM 0 1 10 2 pin Cortex debug connector Figure 3 5 10 pin JTAG I F 3 3 6 Potentiometer The FM4 S6E2H Series...

Page 27: ...11387 Rev 27 3 3 7 Expansion Port The FM4 S6E2H Series Starter Kit provides two sets of expansion ports which route all the MCU pins The user can access all pins of the S6E2HG device from these ports...

Page 28: ...this kit IAR Embedded Workbench for ARM Keil ARM RealView Microcontroller Development System Download evaluation versions of these tools from the vendor s website A full license may be required to bui...

Page 29: ...4 S6E2H Series Starter Kit Guide Doc No 002 11387 Rev 29 2 Click File Open Workspace and select the workspace file s6e2hg_adc eww from User_Directory FM4 S6E2H Series Starter Kit_Ver01 Firmware Demo P...

Page 30: ...1 Pin2 to Pin3 PE0 drives blue LED 5 Connect the USB cable to the CN3 port 6 Observe that Power LED LED5 is glowing green 7 Click the Download and Debug icon in the tool bar use Shortcut Crtl D or cho...

Page 31: ...xample project in Keil Vision IDE Before doing this please check the availability of the flash loader file of the S6E2HG device S6E2HG4X0A FLM S6E2HG6X0A FLM in this directory Keil_Install_Directory A...

Page 32: ...mode J10 Closed Sets S6E2HG user module J15 Pin1 to Pin2 Sets S6E2HG to 3 3V J19 Closed CMSIS DAP virtual COM connection J20 Pin1 to Pin2 CMSIS DAP virtual COM connection J21 Pin2 to Pin3 PE0 drives...

Page 33: ...to section AD Converter for details 2 s6e2hg_bt_pwm Title Base Timer Description This project demonstrates the base timer operation of the S6E2HG device This project configures a base timer in PWM mod...

Page 34: ...a through UART0 The calendar starts from 2015 9 30 23 59 01 Wednesday The calendar data will be displayed in the Serial Port Viewer window When time reaches 2015 10 01 00 00 00 the Serial Port Viewer...

Page 35: ...uired for this project All connections are hardwired on the board 4 2 1 3 Verify Output 1 Power the FM4 S6E2HG Series Starter board from CN3 using a USB cable refer to Figure 2 5 2 Open the project fi...

Page 36: ...tinationData destination array and then compares the content of the arrays to verify the data 4 2 2 2 Hardware Connection No specific hardware connections are required for this project All connections...

Page 37: ...shown below which means the content of the arrays are the same You can also verify the content of the arrays in the watch window 4 2 2 3 2 Instructions for Keil Vision IDE 1 Power the FM4 S6E2H Serie...

Page 38: ...You can also verify the content of the arrays in the watch window 4 2 3 Flash Write 4 2 3 1 Project Description This project demonstrates the flash writing operation of the S6E2HG device A specific se...

Page 39: ...emory Enter 0x00070000 in the Go to table and press the Enter Key on your PC 5 Run the program for a while 10 seconds 6 Stop the program and check the content of 0x00070000 in flash 4 2 3 3 2 Instruct...

Page 40: ...ardware connections are required for this project All connections are hardwired on the board 4 2 4 3 Verify Output 1 Power the FM4 S6E2H Series Starter board from CN3 using a USB cable refer to Figure...

Page 41: ...11387 Rev 41 Figure 4 3 Select the Baud Rate 6 Click the Toggle Outgoing Data Window button Figure 4 4 Toggle the Outgoing Data Window 7 Key in any characters in the Outgoing Data Window the same char...

Page 42: ...IAR project User_Directory FM4 S6E2H Series Starter Kit_Ver01 Firmware Demo Projects s6e2hg_sleep_mode IAR s6e2hg_sleep_mode eww Keil project User_Directory FM4 S6E2H Series Starter Kit_Ver01 Firmwar...

Page 43: ...2hg_st_wdt uvprojx 3 Build the project and download the code into the S6E2HG device 4 Run the program 5 The RGB LED LED2 will blink green 6 Stop the program comment out the line of Swwdg_Feed in main...

Page 44: ...MSIS DAP virtual COM connection SOT0 to pin 20 of MB9AF312K J21 Pin1 to Pin2 Sets the PE0 pin to MD1 mode 3 Connect the USB cable to the CN3 port 4 Observe that the Power LED LED5 is glowing green 5 L...

Page 45: ...Manager in COM box in the Customize setting window This window appears when the Set Environment button is clicked 11 Click on the Full Operation D E B P button to start programming 12 Reset the S6E2HG...

Page 46: ...K CMSIS DAP for programming and debugging purpose J5 Closed Sets MB9AF312K CMSIS DAP in programmer mode J7 Closed Selects CMSIS DAP as power source J10 Closed Sets S6E2HG in programming mode J15 Pin1...

Page 47: ...ter Kit Guide Doc No 002 11387 Rev 47 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 the COM box 10 Click the Full Oper...

Page 48: ...Doc No 002 11387 Rev 48 11 Reset the CMSIS DAP microcontroller by removing and reconnecting the USB cable and click OK 12 Click OK button in Erase and Program Complete window Note Please click on Help...

Page 49: ...CK0_1 MAD12_0 67 P16 AN06 SIN2_2 INT14_1 MAD13_0 68 P17 AN07 SOT2_2 MAD14_0 WKUP3 69 AVCC 70 AVSS 71 AVRL 72 AVRH 73 P18 AN08 SCK2_2 MAD15_0 74 P19 AN09 SIN4_1 INT05_1 IC00_1 MAD16_0 75 P1A AN10 SOT4_...

Page 50: ...CC 45 P80 UDM0 46 P81 UDP0 47 VSS 48 C30 NC 12pF R29 2K R32 10K C31 NC 12pF PIN103 PIN102 PIN106 PIN105 PIN104 VCC_MCU J20 Jumper3 1 2 3 R18 10K VCC_MCU R83 1M J3 JTAG Module CLOSED DAP Module OPEN VC...

Page 51: ...T0_0 SD_DAT1_0 SD_CLK_0 SD_CMD PIN93 SD_C D PIN113 SD_C D_0 PIN97 SD_DAT2 PIN96 SD_DAT3 SD_DAT3_0 SD_DAT2_0 Ti t l e Si ze D ocum ent N um ber R ev D at e Sheet of Micro SD card interf ace V10 FM4 120...

Page 52: ...43 D7 44 NC23 46 NC24 47 VCC 12 VCC 39 VSS 13 VSS 25 Flash_D5 Flash_D4 Flash_D6 Flash_D3 Flash_D7 Flash_D0 Flash_D1 Flash_D2 R77 NC Flash_RE R76 NC Flash_CLE R75 NC Flash_ALE Flash_WE R74 NC Flash_D5...

Page 53: ...A5 SDRAM_A8 SDRAM_A7 SDRAM_A6 SDRAM_A9 SDRAM_A11 SDRAM_A10 AP SDRAM_BA0 SDRAM_BA1 SDRAM_A0 SDRAM_A3 SDRAM_A2 SDRAM_A1 SDRAM_A4 SDRAM_A7 SDRAM_A6 SDRAM_A5 SDRAM_A8 SDRAM_A11 SDRAM_A9 SDRAM_LDQM SDRAM_R...

Page 54: ...K7 NC J13 NC Jumper2 1 2 J11 J12 Function CLOSED Host OPEN J13 VCC_MCU 5V CLOSED VCC_MCU 3V3 OPEN USB_5V0_IN CN4 USB Micro_B NC G1 G2 G3 G4 1 2 3 4 5 R92 NC R55 6K8 NC R54 10K USB_VCC_DETECT PIN116 NM...

Page 55: ...J15 VCC_MCU 3V3 Closed Pin2 to Pin1 VCC_MCU 5V0 Closed Pin2 to Pin3 TEST PO I N T J16 C onect t o Per i pher al Boar d For 5V Input or 5VOutput or 3V3 Output Peripheral_5V0_IN or OUT VCC_5V0 J16 CON2...

Page 56: ...0 C11 C12 C13 C18 C19 C24 C26 C28 C29 C32 C33 C34 C35 C36 C37 C38 C39 C41 C42 C64 C65 0 1uF Ceramic Capacitor YAGEO CC0603KRX5R8BB104 9 4 C5 C21 220pF Ceramic Capacitor YAGEO CC0603JRNPO9BN221 10 2 C6...

Page 57: ...22RL 30 5 R29 R30 R70 R89 R90 2K Resister YAGEO RC0603FR 072KL 31 1 R31 2K7 Resister YAGEO RC0603FR 072K7L 32 0 R26 R36 R52 R74 R75 R76 R77 R92 NC Resister YAGEO RC0603FR 070RL 33 2 R41 R42 3K3 Resist...

Page 58: ...T Jinling ELTSM 62KR H T R 46 1 U1 S6E2HG6G0A GV20000 MCU 176LQFP 0 5m m pitch Cypress S6E2HG6G0A GV20000 47 1 U4 MB9BF312K MCU 64LQFP 0 5mm pitch Cypress MB9BF312KPMC 48 1 U7 LM1117IMPX 3 3 NOPB Regu...

Page 59: ...2 11387 Rev 59 Revision History Document Revision History Document Title FM4 S6E2H Series Starter Kit Guide Document Number 002 11387 Revision ECN Number Issue Date Origin of Change Description of Cha...

Reviews: