DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

AN668 データシートの表示(PDF) - Silicon Laboratories

部品番号
コンポーネント説明
メーカー
AN668 Datasheet PDF : 10 Pages
1 2 3 4 5 6 7 8 9 10
AN668
5. SiM3U1xx Blinky Example
Blinky uses the SiM3U1xx RTC0 module and SysTick to toggle two LEDs. PB2.10 (LED on the SiM3U1xx MCU
card) toggles every 500 ms using the RTC counting 10 ms intervals. PB2.11 (also an LED) toggles every second
using SysTick. The example also reads the switches on the MCU card (PB2.8 and PB2.9) every 500 ms and prints
their status to the Console view (semi-hosting) by default.
The code examples follow the Silicon Labs AppBuilder file generation structure: generated files are included in the
src\generated folder with the g- prefix, and application files are in the src folder with my- prefix. All of the modes
implemented in the example are called from main. In the Blinky example, main calls
gModes_enter_my_default_mode() from gModes.c, which then calls gCpu_enter_default_config() in gCpu.c,
and so forth.
These code examples use the Silicon Labs Hardware Access Layer (HAL) macros by default.
Figure 4. Blinky Example
4
Rev. 0.1

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]