C 8 0 5 1 T 6 2 0 / 2 - D K
Rev. 0.4
7
6. Example Source Code
Example source code and register definition files are provided by default in the
SiLabs\MCU\Examples\C8051T620_1_T320_3 or SiLabs\MCU\Examples\C8051T622_3_T326_7
directory during
IDE installation. These files may be used as a template for code development.
6.1. Register Definition Files
Register definition files
C8051T620.inc
,
C8051T622.inc
,
C8051T620_defs.h
,
C8051T622_defs.h
,
and
compiler_defs.h
define all SFR registers and bit-addressable control/status bits. They are installed by default into
the
SiLabs\MCU\Examples\C8051T620_1_T320_3 or SiLabs\MCU\Examples\C8051T622_3_T326_7
directory
during IDE installation. The register and bit names are identical to those used in the C8051T620-21_T320-3 or
C8051T620-23_T326-27 data sheet.
6.2. Blinking LED Example
The example source files T620_Blinky.asm and T620_Blinky.c or T622_Blinky.asm and T622_Blinky.c show
examples of several basic C8051T62x 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. When compiled/assembled and linked, these programs flash the green LED on the C8051T62x
Motherboard about five times a second using the interrupt handler with a timer.
Summary of Contents for C8051T620-DK
Page 18: ...C8051T620 2 DK 18 Rev 0 4 8 Schematics Figure 14 C8051T62x Motherboard Schematic 1 of 2 ...
Page 19: ...C8051T620 2 DK Rev 0 4 19 Figure 15 C8051T62x Motherboard Schematic 2 of 2 ...
Page 20: ...C8051T620 2 DK 20 Rev 0 4 Figure 16 C8051T62x Emulation Daughter Board Schematic ...
Page 21: ...C8051T620 2 DK Rev 0 4 21 Figure 17 C8051T620 QFN 32 Daughter Board Schematic ...
Page 22: ...C8051T620 2 DK 22 Rev 0 4 Figure 18 C8051T622 QFN 24 Daughter Board Schematic ...
Page 23: ...C8051T620 2 DK Rev 0 4 23 Figure 19 C8051T320 QFP 32 Daughter Board Schematic ...
Page 24: ...C8051T620 2 DK 24 Rev 0 4 Figure 20 C8051T321 QFN 28 Daughter Board Schematic ...
Page 25: ...C8051T620 2 DK Rev 0 4 25 Figure 21 C8051T326 QFN 28 Daughter Board Schematic ...
Page 26: ...C8051T620 2 DK 26 Rev 0 4 Figure 22 C8051T327 QFN 28 Daughter Board Schematic ...