Silicon Laboratories C8051T620-DK User Manual Download Page 7

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 1: ...assembler linker C compiler Source code examples and register definition files Documentation AC to DC universal power adapter Two USB cables 2 About the Daughter Boards The C8051T620 and C8051T622 Development Kits include an Emulation Daughter Board EDB and a QFN Socket Daughter Board QFN DB The EDB has an installed C8051F34A device which is a Flash based device that can be used for the majority o...

Page 2: ...ed device 3 Remove power from the motherboard and remove the USB cable before removing a C8051T62x 32x device from the socket Inserting or removing a device from the socket when the power adapter or USB cable are connected can damage the motherboard the daughter board or the socketed device 4 The above hardware setup instructions configure the development system to be powered through the onboard 3...

Page 3: ...ted in Step 3 will execute in sequence prompting the user as they install programs documentation and drivers 4 3 CP210x USB to UART VCP Driver Installation The C8051T62x Motherboard includes a Silicon Laboratories CP2103 USB to UART Bridge Controller Device drivers for the CP2103 need to be installed before PC software such as HyperTerminal can communicate with the board over the USB connection If...

Page 4: ...from the Start menu 2 Select Project Open Project to open an existing project 3 Browse to the C SiLabs MCU Examples C8051T620_1_T320_3 Blinky or SiLabs MCU Exam ples C8051T622_3_T326_7 Blinky directory default and select the T620_Blinky_C wsp pr T622_Blinky_C wsp project file Click Open 4 Once the project is open build the project by clicking on the Build Make Project button in the toolbar or sele...

Page 5: ...Add files to project Select files in the file browser and click Open Continue adding files until all project files have been added 4 For each of the files in the Project Window that you want assembled compiled and linked into the target build right click on the file name and select Add file to build Each file will be assembled or compiled as appropriate based on file extension and linked into the ...

Page 6: ...ation refer to the µVision driver documentation The documentation and software are available on the kit CD and from the downloads webpage www silabs com mcudownloads 5 5 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 Pr...

Page 7: ...bs 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 ...

Page 8: ...051T32x daughter boards P1 P2 Daughter board connection P3 Power connector that accepts input from 7 5 to 15 V dc unregulated power adapter P4 USB connector for UART to USB communications interface P5 USB Debug interface connector J1 Analog I O terminal block J2 Port 0 header J3 Port 1 header J4 Port 2 header J5 Port 3 header with access to VDD and GND J6 Power supply selection header See 7 3 Powe...

Page 9: ... 2 SW1 J9 P2 0 P0 1 SW2 P2 1 P1 0 C8051T62x MB LED2 VPP P5 P4 J8 CTS_DEBUG P1 1 P1 2 RTS_COMM CTS_COMM RTS_DEBUG J11 TX_DEBUG P0 4 P0 5 RX_COMM TX_COMM RX_DEBUG P3 SILICON LABS www silabs com RESET J15 J7 USB ACTIVE J5 J14 SW1 J12 J13 J1 DEBUG PWR RUN VDD_PWR VDD_PWR VDD_PWR VDD_PWR 3VD VDD_EXT VDD_DEBUG VDD_COMM J6 P2 P1 J2 SW2 J3 J4 USB ACTIVE LED1 PWR D10 D11 D12 R8 U2 CP2103 U1 F326 STOP LED1 ...

Page 10: ...ard Figure 7 C8051T622 QFN24 Socket Daughter Board U1 F34A VREGIN VREGIN VBUS VDD P3 SILICON LABS www silabs com C8051T62x EDB J1 VBUS VREGIN VDD VREGIN P3 VIO VDD J2 C8051T62x QFN32 SKT DB SILICON LABS www silabs com J3 J1 VBUS VREGIN VDD VREGIN SILICON LABS www silabs com P3 VIO VDD J2 C8051T622 QFN24 SKT DB J3 ...

Page 11: ... Board Figure 10 C8051T326 QFN28 Socket Daughter Board J1 VBUS VREGIN VDD VREGIN SILICON LABS www silabs com P3 J2 C8051T320 QFP32 SKT DB J1 VBUS VREGIN VDD VREGIN SILICON LABS www silabs com P3 J2 C8051T321 QFN28 SKT DB J1 VBUS VREGIN VDD VREGIN SILICON LABS www silabs com P3 VIO VDD J2 C8051T326 QFN28 SKT DB J3 ...

Page 12: ...C8051T620 2 DK 12 Rev 0 4 Figure 11 C8051T327 QFN28 Socket Daughter Board J1 VBUS VREGIN VDD VREGIN SILICON LABS www silabs com P3 C8051T327 QFN28 SKT DB J3 ...

Page 13: ... J9 Pressing a switch generates a logic low signal on the port pin Remove its shorting block from the J9 header to disconnect the switch from the port pin Seven LEDs are also provided on the motherboard The red LED labeled PWR D4 is used to indicate a power connection to the motherboard The green LED labeled RUN D10 turns on when the debug circuitry is in a running state the red LED labeled STOP D...

Page 14: ...7 Shorting Block Configuration for Power Options Table 2 Motherboard I O Descriptions Description Component Name I O Header Switch SW1 Daughter Card s P0 1 Daughter Card s P2 0 J9 2 4 J9 4 6 Switch SW2 Daughter Card s P1 0 Daughter Card s P2 1 J9 1 3 J9 3 5 RESET SW3 Daughter Card s RST C2CK None Green LED labeled LED1 D1 Daughter Card s P0 6 Daughter Card s P2 2 J10 2 4 J10 4 6 Green LED labeled ...

Page 15: ...ovided by the Windows program called ToolStick Terminal which is available for download for free from the Silicon Laboratories website See the ToolStick Terminal help file for information on how to use ToolStick Terminal 7 6 Communications Interface Selector Headers J8 and J11 The C8051T62x Motherboard routes the C8051T62x 32x s P0 4 UART TX and P0 5 UART RX to J11 where those signals can be conne...

Page 16: ...th P1 5 or P1 1 depending on the device During programming the VPP voltage is automatically enabled when needed Header J15 is provided to allow the user to disconnect the programming circuitry from the VPP pin to avoid interfering with the normal application operation of the GPIO pin When programming the device J15 should be shorted with a shorting block When running normal application code J15 ca...

Page 17: ...the C8051T62x 32x family also support a separate voltage input for the input output voltage of the port pins This Voltage Input Output VIO should be input to J1 on Pin 2 See the C8051T620 21_T320 3 or C8051T620 23_T326 27 data sheet for more information about VIO usage and constraints Notes When programming a C8051T62x 32x device VDD must be at least 3 3 V VDD can be supplied directly to the devic...

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 ...

Page 27: ...ge 21 Updated Figure 18 on page 22 Updated Figure on page 27 Revision 0 3 to Revision 0 4 Updated 1 Kit Contents on page 1 Updated 2 About the Daughter Boards on page 1 Updated 6 Example Source Code on page 7 Updated project paths Updated 7 Development Boards on page 8 Updated 8 Schematics on page 18 Added Figures 19 20 21 and 22 Updated C8051T62x references to include C8051T32x devices Updated da...

Page 28: ...rein Additionally Silicon Laboratories assumes no responsibility for the functioning of undescribed features or parameters Silicon Laboratories reserves the right to make changes without further notice Silicon Laboratories makes no warranty rep resentation or guarantee regarding the suitability of its products for any particular purpose nor does Silicon Laboratories assume any liability arising ou...

Reviews: