background image

C 8 0 5 1 F 8 0 0 - D K

10

Rev. 0.2

7.4.  Switches and LEDs (J3)

Two push-button switches are provided on the target board. The switch labeled ‘RESET’ (SW1 in schematic) is
connected to the reset pin (RST) of the C8051F800. Pressing this switch puts the device into its hardware-reset
state. The switch labeled “P1.4” (SW2 in schematic) is connected to the C8051F800’s general purpose I/O (GPIO)
pin through headers. Pressing this switch generates a logic low signal on the port pin. Remove the shorting block
from the header to disconnect this switch from the port pin. The port pin signal is also routed to a pin on the J1 I/O
connector. See Table 1 for the port pins and headers corresponding to each switch.

Two capacitive sense switches are also provided on the target board. The operation of these switches needs
appropriate code running on the C8051F800 MCU that can sense the state of the switch. Note that no shorting
blocks should be present on J3[15-16] and J3[17-18] for proper operation of these switches. See Section 6.3.
"Capacitive Sense Switch Example‚" on page 6 fo
r details about example source code.

Six LEDs are provided on the target board to serve as indicators. The red LED labeled “PWR” is used to indicate
the presence of power to the target board. Another red LED labeled “USB” is used to indicate a valid USB
connection via the USB connector labeled “COMM.” Note that this LED will light up only after CP210x device
drivers are loaded successfully on the PC. The four green LEDs labeled with port pin names P1.0_LED through
P1.3_LED are connected to the C8051F800’s GPIO pins P1.0 through P1.3, respectively, via the header J3.
Remove the shorting block from the header to disconnect the LED from the port pin. The port pin signal is also
routed to a pin on the J1 I/O connector. See Table 1 for the port pins and headers corresponding to each LED.

Table 1. Target Board I/O Descriptions

Description

I/O

Header(s)

RESET (SW1)

Reset

none

P1.4 (SW2)

P1.4

J3[9-10]

P1.5 (Capacitive Sense)

P1.5

J3[15-16]

*

P1.6 (Capacitive Sense)

P1.6

J3[17-18]

*

P1.0_LED (Green LED)

P1.0

J3[1-2]

P1.1_LED (Green LED)

P1.1

J3[3-4]

P1.2_LED (Green LED)

P1.2

J3[5-6]

P1.3_LED (Green LED)

P1.3

J3[7-8]

PWR (Red LED)

Power

none

USB (Red LED)

USB Active

none

*Note

: Shorting blocks should NOT be present at these headers for 

the proper operation of the capacitive sense switches.

Summary of Contents for C8051F800

Page 1: ...e C8051F800 Development Kit contains the following items C8051F800 Target Board C8051Fxxx Development Kit Quick Start Guide Silicon Labs IDE and Product Information CD ROM CD content includes the following Silicon Labs Integrated Development Environment IDE Evaluation assembler compiler and linker tools Source code examples and register definition files Documentation Optional Third Party Tools CD ...

Page 2: ...llation utility s startup screen 2 In the Kit Selection box that appears choose the C8051F800 DK development kit from the list of options 3 In the next screen choose Components to be Installed The programs necessary to download and debug on the MCU are the Silicon Labs IDE and the Keil 8051 Evaluation Toolset The CP210x Drivers are necessary to use the UART capabilities of the target board See Sec...

Page 3: ...allation process connect the included USB cable between the host computer and the USB connector P5 on the C8051F800 Target Board Windows will automatically finish the driver installation Information windows will pop up from the taskbar to show the installation progress 6 If needed the driver files can be uninstalled by selecting Silicon Labs CP210x USB to UART Bridge Driver Removal option in the A...

Page 4: ... connect download after build in the Project Target Build Configuration dialog If errors occur during the build process the IDE will not attempt the download 8 Click on the Go button green circle in the toolbar or by selecting Debug Go from the menu to start running the firmware The LED on the target board will start blinking 5 1 2 2 Creating a New Project Use the following steps to create a new p...

Page 5: ...le under the Help menu in Configuration Wizard 2 For more information please refer to the Configuration Wizard 2 documentation The documentation and software are available from the Downloads webpage www silabs com mcudownloads 5 3 Keil µVision2 and µVision3 Silicon Labs Drivers As an alternative to the Silicon Labs IDE the µVision debug driver allows the Keil µVision IDE to communicate with Silico...

Page 6: ...he 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 Blink...

Page 7: ...bug Adapter interface J5 Connects pin P0 0 to the VREF bypass capacitors and TB1 J6 J7 Connects the potentiometer R14 to pin P0 7 and 3VD J8 J9 Connects pins P0 2 XTAL1 and P0 3 XTAL2 to J1 J10 Connects pin P0 1 to GND and TB1 TB1 Analog I O terminal block Figure 3 C8051F800 Target Board with Pin Numbers CAPACITIVE SENSE P1 5 P1 6 R14 D10 D9 3VD P0 7 J7J6 D8 D7 P1 0_LED P1 1_LED P1 2_LED P1 3_LED ...

Page 8: ...NSE P1 5 P1 6 R14 D10 D9 3VD P0 7 J7J6 D8 D7 P1 0_LED P1 1_LED P1 2_LED P1 3_LED C8051F800 TB P1 4 RESET D4 COMM F326 USB DEBUG J4 P1 POWER D6 PWR P1 0_LED P1 1_LED P1 2_LED P1 3_LED P1 4_SW TX_MCU RX_MCU RTS CTS P1 0 P1 1 P1 2 P1 3 P1 4 P0 4 P0 5 P1 5 P1 6 J3 GND P2 0 P1 6 P1 4 P1 2 P1 0 P0 6 P0 4 P0 2_J8 GND RST P1 7 P1 5 P1 3 P1 1 P0 7 P0 5 P0 3_J9 J1 P0 0 3VD P0 1 3VD F800 U1 J9 J8 P0 3_J9 P0 ...

Page 9: ...rammable high frequency internal oscillator 24 MHz base frequency 2 which is enabled as the system clock source on reset After reset the internal oscillator operates at a frequency of 3 0625 MHz by default but may be configured by software to operate at other frequencies The on chip crystal is accurate for many serial communications UART SPI SMBus and an external oscillator is not required dependi...

Page 10: ...tails about example source code Six LEDs are provided on the target board to serve as indicators The red LED labeled PWR is used to indicate the presence of power to the target board Another red LED labeled USB is used to indicate a valid USB connection via the USB connector labeled COMM Note that this LED will light up only after CP210x device drivers are loaded successfully on the PC The four gr...

Page 11: ... signals will prevent the simultaneous use of the capacitive sense switches because those GPIO pins are shared on this board The shorting block positions for connecting each of these signals to the CP2103 are listed in Table 3 To use this interface the USB to UART device drivers should be installed as described in Section 4 3 CP210x USB to UART VCP Driver Installation on page 3 7 7 Potentiometer J...

Page 12: ...in the C8051F800 Refer to the C8051F80x 83x data sheet for more information on configuring the voltage and ground reference options 7 9 C2 Pin Sharing On the C8051F800 the debug pins C2CK and C2D are shared with the pins RST and P2 0 respectively The target board includes the resistors necessary to enable pin sharing which allow the RST and P2 0 pins to be used normally while simultaneously debugg...

Page 13: ...and Headers MCU Pin Name Pin F800 GM Primary Function Alternate Fixed Function Target Board Function Relevant Headers P0 0 1 P0 0 GPIO VREF VREF J1 19 TB1 6 J5 1 P0 1 20 P0 1 GPIO AGND GPIO AGND J1 20 TB1 4 J10 1 P0 2 19 P0 2 GPIO XTAL1 XTAL1 J1 17 J8 2 P0 3 18 P0 3 GPIO XTAL2 XTAL2 J1 18 J9 2 P0 4 17 P0 4 GPIO TX_MCU TX_MCU J1 15 J3 12 P0 5 16 P0 5 GPIO RX_MCU RX_MCU J1 16 J3 14 P0 6 15 P0 6 GPIO...

Page 14: ...C8051F800 DK 14 Rev 0 2 8 Schematics Figure 5 C8051F800 Target Board Schematic Page 1 of 2 ...

Page 15: ...C8051F800 DK Rev 0 2 15 Figure 6 C8051F800 Target Board Schematic Page 2 of 2 ...

Page 16: ...ein 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 out...

Reviews: