C 8 0 5 1 F 8 0 0 - D K
6
Rev. 0.2
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\C8051F80x_83x\
”
default 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
C8051F800.inc, C8051F800_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\C8051F80x_83x\Header_Files\
” default directory during IDE installation. The register and
bit names are identical to those used in the C8051F80x-83x data sheet.
6.2. Blinking LED Example
The example source files
F800_Blinky.asm
and
F800_Blinky.c
installed in the default directory
“
SiLabs\MCU\Examples\C8051F80x_83x\Blinky
” show examples of several basic C8051F800 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 C8051F800 Target Board about five times a second using the interrupt
handler with a C8051F800 timer.
6.3. Capacitive Sense Switch Example
The example source file
F80x_CS0.c
demonstrates the configuration and usage of the capacitive sense switches
labeled P1.5 and P1.6. Refer to the source file for step-by-step instructions to build and test this example. This is
installed in the “
SiLabs\MCU\Examples\C8051F80x_83x\CS0
” directory by default.