Software Development
FM4 S6E2H-Series Starter Kit Guide, Doc. No. 002-11387 Rev. **
34
#
Projects
Title/Description
6
s6e2hg_gpio
Title: GPIO
Description: This project demonstrates the GPIO operations of the S6E2HG device by
driving an LED. Pin P38 sinks current from the green LED of the RGB LED (LED2). Pin
P38 will output a pulse sequence to blink the LED continuously.
7
s6e2hg_mfs_uart
Title: Multi-function Serial Interface
Description: This project demonstrates the UART communication of the S6E2HG
device. This program enables the MFS0 as a UART to communicate with the CMSIS-
DAP. The CMSIS-DAP serves as the bridge between the MCU and the PC. Refer to
section
for details.
8
s6e2hg_mft_frt
Title: Multi-function Timer
Description: This project demonstrates the multi-function timer (MFT) operation of the
S6E2HG device. This example demonstrates the access of FRT (Free Run Timer) in
Up/Down-count mode with peak/zero match interrupt. The blue LED (RGB LED2) will
turn on/off when peak/zero match interrupt occurs.
9
s6e2hg_rtc
Title: Real Time Clock
Description: This project demonstrates the RTC operation of the S6E2HG device. The
program enables the RTC in calendar mode, and sends out the current calendar data
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 window displays
‘alarm occurs’
message, and at the same time, RGB LED2 starts blinking. A new time "2015-10-01
09:30:00" is set.
10
s6e2hg_sleep_mode
Title: Sleep Mode
Description: This project demonstrates the sleep mode operation of the S6E2HG
device. The MCU will enter sleep mode after blinking the green LED five times. It can
be woken up by pressing SW3. After wakeup, the green LED will turn on. Refer to
11
s6e2hg_sw_wdt
Title: Software Watchdog
Description: This project demonstrates the operation of the S6E2HG watchdog by
considering two different situations when the watchdog is enabled: a) when the
watchdog is fed and b) when the watchdog is not fed. If the watchdog is enabled and is
fed in time, the program will run normally, and the RGB LED will blink green. If the
watchdog is enabled and not fed in time, the device will reset, and the green LED will
remain ON continuously. Refer to section
12
s6e2hg_wc
Title: Watch Timer
Description: This project demonstrates the Watch Timer function of the S6E2HG
device. The Watch Timer generates an interrupt every second. In the interrupt service
routine, pin P38 will drive the RGB LED (LED2) to blink green.