C 8 0 5 1 F 5 4 0 D K
6
Rev. 0.1
5.4. Programming Utilities
The Silicon Labs IDE is the primary tool for downloading firmware to the MCU during development. There are two
software programming tools that are intended for use during prototyping or in the field: The MCU Production
Programmer and the Flash Programming Utilities. The MCU Production Programmer is installed with the IDE to the
directory C:\Silabs\MCU\Utilities\Production Programmer\ (default). The Flash Programming Utilities can be
optionally installed from the CD and is installed to C:\Silabs\MCU\Utilities\FLASH Programming\ (default).
6. Example Source Code
Example source code and register definition files are provided in the “
SiLabs\MCU\Examples\C8051F54x\
”
directory during IDE installation. These files may be used as a template for code development. The comments in
each example file indicate which development tool chains were used when testing. Example applications include a
blinking LED example which configures the green LED on the target board to blink at a fixed rate. Also included are
examples for each of peripherals of the MCU, such as the UART.
6.1. Register Definition Files
Register definition files
C8051F540.inc, C8051F540_defs.h
and
compiler_defs.h
define all SFR registers and bit-
addressable control/status bits. These files are installed into the
“
SiLabs\MCU\Examples\C8051F54x\Header_Files\
” directory during IDE installation. The register and bit names
are identical to those used in the C8051F54x data sheet.
6.2. Blinking LED Example
The example source files
F540_Blinky.asm
and
F540_Blinky.c
installed in the default directory
“
SiLabs\MCU\Examples\C8051F54x\Blinky
” show examples of several basic C8051F540 functions. These include
disabling the watchdog timer (WDT), configuring the Port I/O crossbar, configuring a timer for an interrupt routine,
initializing the system clock, and configuring a GPIO port pin. When compiled/assembled and linked, this program
flashes the green LED on the C8051F540 Target Board about five times a second using the interrupt handler with
a C8051F540 timer.
Summary of Contents for C8051F540DK
Page 17: ...C8051F540DK Rev 0 1 17 8 Schematics Figure 5 C8051F540 Target Board Schematic Page 1 of 4 ...
Page 18: ...C8051F540DK 18 Rev 0 1 Figure 6 C8051F540 Target Board Schematic Page 2 of 4 ...
Page 19: ...C8051F540DK Rev 0 1 19 Figure 7 C8051F540 Target Board Schematic Page 3 of 4 ...
Page 20: ...C8051F540DK 20 Rev 0 1 Figure 8 C8051F540 Target Board Schematic Page 4 of 4 ...
Page 21: ...C8051F540DK Rev 0 1 21 NOTES ...