C8051T620/2-DK

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.

Rev. 0.4

7

Page 7
Image 7
Silicon Laboratories C8051T620/2-DK quick start Example Source Code, Register Definition Files, Blinking LED Example

C8051T620/2-DK specifications

Silicon Laboratories C8051T620/2-DK is an advanced single-chip microcontroller designed for high-performance embedded applications. Built around the robust C8051 architecture, this microcontroller integrates a powerful 8051 core with advanced peripherals, providing developers with a versatile platform for a range of application needs.

One of the standout features of the C8051T620/2-DK is its high-speed performance. The microcontroller can operate at clock speeds up to 100 MHz, significantly faster than standard 8051 microcontrollers. This capability enables the execution of complex algorithms and real-time processing tasks with ease. Moreover, the architecture boasts a 16-bit timer/counter that enhances the ability to manage timing-critical applications effectively.

The C8051T620/2-DK comes equipped with up to 64 KB of on-chip Flash memory, facilitating the storage of essential program code and data. This generous memory allocation allows developers to implement larger, more sophisticated programs without relying on external memory, thereby simplifying design and improving reliability. Additionally, the on-chip RAM can be up to 4 KB, providing ample space for executing variables and stack operations.

In terms of connectivity, the C8051T620/2-DK supports a slew of communication protocols, including UART, SPI, and I2C. This versatile communication capability enables seamless integration into various systems, allowing for easy data exchange with other devices, sensors, and peripherals.

Furthermore, the microcontroller includes an extensive range of integrated analog peripherals, such as a 12-bit ADC, which enhances the device’s ability to interface with analog signals in automotive, industrial, and consumer applications. The presence of PWM outputs also allows for precise control of motors and other actuators, making it an excellent choice for complex control systems.

Silicon Laboratories has designed the C8051T620/2-DK with energy efficiency in mind. The microcontroller supports multiple power-saving modes, enabling developers to optimize their designs for low power consumption. This feature is particularly valuable in battery-operated devices, where maintaining power is crucial for extending operational life.

Overall, the Silicon Laboratories C8051T620/2-DK provides a powerful, flexible, and energy-efficient solution for embedded systems. Its high-speed performance, large memory, extensive connectivity options, and robust analog capabilities make it an ideal choice for engineers and developers looking to create innovative embedded applications in diverse industries.