Resumen del contenido incluido en la página 1
Silicon Laboratories
USB DEBUG ADAPTER
Run
Power Stop
C8051F04x-DK
C8051F04X DEVELOPMENT KIT USER’S GUIDE
1. Kit Contents
The C8051F04x Development Kit contains the following items:
• Two C8051F040 Target Boards
• C8051Fxxx Development Kit Quick-Start Guide
• Silicon Laboratories IDE and Product Information CD-ROM. CD content includes:
• Silicon Laboratories Integrated Development Environment (IDE)
• Keil 8051 Development Tools (macro assembler, linker, evaluation ‘C’ compiler)
• Source code ex
Resumen del contenido incluido en la página 2
C8051F04x-DK 3. Software Setup The included CD-ROM contains the Silicon Laboratories Integrated Development Environment (IDE), Keil software 8051 tools and additional documentation. Insert the CD-ROM into your PC’s CD-ROM drive. An installer will auto- matically launch, allowing you to install the IDE software or read documentation by clicking buttons on the Installa- tion Panel. If the installer does not automatically start when you insert the CD-ROM, run autorun.exe found in the root director
Resumen del contenido incluido en la página 3
C8051F04x-DK 4.4.1. Creating a New Project 1. Select Project →New Project to open a new project and reset all configuration settings to default. 2. Select File →New File to open an editor window. Create your source file(s) and save the file(s) with a rec- ognized extension, such as .c, .h, or .asm, to enable color syntax highlighting. 3. Right-click on “New Project” in the Project Window. Select Add files to project. Select files in the file browser and click Open. Continue adding files until al
Resumen del contenido incluido en la página 4
C8051F04x-DK 5. Example Source Code Example source code and register definition files are provided in the “SiLabs\MCU\Examples\C8051F04x” directory during IDE installation. These files may be used as a template for code development. Example applications include a blinking LED example which configures the green LED on the target board to blink at a fixed rate. A Controller Area Network (CAN) application example is also included with the C8051F04x development kit. 5.1. Register Definition Files
Resumen del contenido incluido en la página 5
C8051F04x-DK 5.3. Controller Area Network (CAN) Application Example Configuration and use of the CAN controller is documented in the Bosch CAN User’s Guide, located in the “Documen- tation” directory on the CD-ROM. Accessing the CAN controller (i.e., accessing the CAN RAM, CAN registers, and moving data to and from the CAN controller) is documented in Silicon Laboratories’ C8051F04x data sheet. An example CAN application is included in the “Examples\C8051F04x” directory. Each C8051F040 target b
Resumen del contenido incluido en la página 6
C8051F04x-DK You may run the example with the Debug Adapter connected to view CAN registers, and CAN message objects in CAN RAM. While connected to one target board, run the code. Depress the RESET button on the other target board. You may use debug and view features of the Silicon Laboratories IDE and on-chip debug logic. To view the CAN SFRs, click View →Debug Windows →SFRs →CAN0. To view message objects in CAN RAM, click View →Debug Windows →CAN0 Message Registers. To view SFRs and message re
Resumen del contenido incluido en la página 7
C8051F04x-DK 6. Target Board The C8051F04x Development Kit includes a target board with a C8051F040 device pre-installed for evaluation and preliminary software development. Numerous input/output (I/O) connections are provided to facilitate prototyping using the target board. Refer to Figure 3 for the locations of the various I/O connectors. P1 Power connector (accepts input from 7 to 15 VDC unregulated power adapter) J1 Connects SW2 to P3.7 pin J3 Connects LED D3 to P1.6 pin J4 JTAG connector
Resumen del contenido incluido en la página 8
C8051F04x-DK 6.1. System Clock Sources The C8051F040 device installed on the target board features a calibrated programmable internal oscillator which is enabled as the system clock source on reset. After reset, the internal oscillator operates at a frequency of 3.0625 MHz (±2%) by default but may be configured by software to operate at other frequencies. Therefore, in many applications an external oscillator is not required. However, an external 22.1184 MHz crystal is installed on the target b
Resumen del contenido incluido en la página 9
C8051F04x-DK 6.4. Serial Interface (J5) A RS232 transceiver circuit and DB-9 (J5) connector are provided on the target board to facilitate serial connec- tions to UART0 of the C8051F040. The TX, RX, RTS and CTS signals of UART0 may be connected to the DB-9 connector and transceiver by installing shorting blocks on headers J6, J8, J9 and J10. J6 - Install shorting block to connect UART0 TX (P0.0) to transceiver. J9 - Install shorting block to connect UART0 RX (P0.1) to transceiver. J8 - Install
Resumen del contenido incluido en la página 10
C8051F04x-DK 6.6. Controller Area Network (CAN) Interface (J25) A DB-9 (J25) connector is provided to facilitate serial connections to the CAN interface on the C8051040. In addi- tion, when a shorting block is installed on header J7, writing a logic 'high' to port pin P4.2 will place the CAN trans- ceiver in low-current standby mode. Also, resistor R12 may be replaced with a higher value to control the slew rate of the CAN_H and CAN_L signals. See the TI SN65HVD230 data sheet for further inform
Resumen del contenido incluido en la página 11
C8051F04x-DK 6.9. Expansion I/O Connector (J24) The 96-pin expansion I/O connector J24 is used to connect daughter boards to the main target board. J24 provides access to many C8051F040 signal pins. Pins for +3 V, digital ground, analog ground and the unregulated power supply (VUNREG) are also available. The VUNREG pin is connected directly to the unregulated +V pin of the P1 power connector. See Table 7 for a complete list of pins available at J24. The J24 socket connector is manufactured by H
Resumen del contenido incluido en la página 12
C8051F04x-DK 6.10. VREF Connector (J22) The VREF connector (J22) can be used to connect the VREF (Voltage Reference) output of the C8051F040 to any (or all) of its voltage reference inputs. Install shorting blocks on J22 in the following manner: 1-2 to connect VREF to VREFD 3-4 to connect VREF to VREF0 5-6 to connect VREF to VREF2 12 Rev. 0.6
Resumen del contenido incluido en la página 13
C8051F04x-DK 7. Schematic Rev. 0.6 13 Figure 5. C8051F040 Target Board Schematic
Resumen del contenido incluido en la página 14
C8051F04x-DK DOCUMENT CHANGE LIST Revision 0.4 to Revision 0.5 Section 1, added USB Debug Adapter and USB Cable. Section 2, changed name from "Hardware Setup" to "Hardware Setup using an EC2 Serial Adapter". Section 2, added 2 Notes bullets. Section 2, removed Note from bottom of page. Added Section 3, "Hardware Setup using a USB Debug Adapter". Section 5.4.2, changed step 2 to include new instructions. Section 7, J4, changed "Serial Adapter" to "Debug Adapter". Target Board DEBUG Interf
Resumen del contenido incluido en la página 15
C8051F04x-DK NOTES: Rev. 0.6 15
Resumen del contenido incluido en la página 16
C8051F04x-DK CONTACT INFORMATION Silicon Laboratories Inc. 4635 Boston Lane Austin, TX 78735 Tel: 1+(512) 416-8500 Fax: 1+(512) 416-9669 Toll Free: 1+(877) 444-3032 Email: MCUinfo@silabs.com Internet: www.silabs.com The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice. Silicon Laboratories assumes no responsibility for errors and omissions, and disclaims responsibility for any consequences resulting from