background image

C 8 0 5 1 F 5 4 0 D K

10

Rev. 0.1

7.2.  Target Board Power Options and Current Measurement (J4, J8, J24, P1, TB1)

The MCUs on the C8051F540 Target Board are powered from a +5 V net. The +5 V net is connected to the
headers J8 (Side A) and J4 (Side B). Shorting blocks can be put on each header to connect the +5 V net to the
VREGIN and VIO pins on the two MCUs. With the shorting blocks removed, a source meter can be used across
the headers to measure the current consumption of the MCU. 

The +5 V net on the target board has three possible sources:

1.

12 V dc power using the ac to dc power adapter (P1)

2.

5 V dc USB VBUS power from PC via the USB Debug Adapter (DEBUG_A)

3.

12 V dc power from the LIN external header (TB1)

7.2.1. Using the AC to DC Power Adapter as the Target Board Power Source (P1, P4)

The default configuration of the target board uses the ac to dc power adapter as the source. The 12 V from the
adapter is regulated to +5 V using an LDO regulator (U4). The output of the regulator is connected to the +5 V net
of the target board through the P4 header. A shorting block should be installed on pins P4[2–3] for this purpose.
The +5 V net powers the MCUs.

7.2.2. Using the USB Debug Adapter as the Target Board Power Source (P4)

The target board can use +5 V provided by the USB Debug Adapter. To enable this source, a shorting block should
be installed on pins P4[1-2]. With this shorting block, the output of the LDO regulator (U4) is disconnected from the
+5 V net of the target board, and the SER_PWR node is connected to +5 V.

Note: 

The USB Debug Adapter does not provide the necessary peak power for the CAN transceivers to operate.

One of the 12 V dc sources is recommended for CAN transceiver operation.

7.2.3. Using an Ex12V LIN Source as the Target Board Power Source (P4, TB1)

The two 12 V power sources (LIN and ac to dc power adapter) are ORed together using reverse-biased diodes (Z1
and Z2) and connected to the input of the LDO regulator (U6). The output of the regulator is connected to the +5 V
net of the target board through the P4 header. A shorting block should be installed on pins P4[2-3] for this purpose.
The +5 V net powers the MCUs directly.

7.3.  System Clock Sources (J9, J10)

7.3.1. Internal Oscillators

The C8051F540 and C8051F542 devices installed on the target board feature a factory-calibrated, programmable
high-frequency internal oscillator (24 MHz base frequency, ±0.5%), which is enabled as the system clock source on
reset. After reset, the internal oscillator operates at a frequency of 187.5 kHz by default but may be configured by
software to operate at other frequencies. The on-chip crystal is accurate for LIN master communications and in
many applications an external oscillator is not required. However, if you wish to operate the C8051F540 device
(Side A) at a frequency not available with the internal oscillator, an external crystal may be used. Refer to the
C8051F54x data sheet for more information on configuring the system clock source.

7.3.2. External Oscillator Options

The target board is designed to facilitate the installation of an external crystal. Remove shorting blocks at headers
J9 and J10 and install the crystal at the pads marked Y1. Install a 10 M

 resistor at R2 and install capacitors at C7

and C8 using values appropriate for the crystal you select. If you wish to operate the external oscillator in capacitor
or RC mode, options to install a capacitor or an RC network are also available on the target board. R2, R3, C7, and
C8 are located on the back side of the board, near the Side A MCU. Populate C7 for capacitor mode, and populate
R3 and C7 for RC mode. Refer to the C8051F54x data sheet for more information on the use of external
oscillators.

Summary of Contents for C8051F540DK

Page 1: ...nt Environment IDE Keil 8051 Development Tools macro assembler linker evaluation C compiler Source code examples and register definition files Documentation C8051F540 Development Kit User s Guide this document Optional Third Party Tools CD AC to DC Power Adapter USB Debug Adapter USB to Debug Interface Two USB Cables 3 Hardware Setup Refer to Figure 1 for a diagram of the hardware configuration 1 ...

Page 2: ...lities and code examples perform the following steps 1 Click on the Install Development Tools button on the installation utility s startup screen 2 In the Kit Selection box that appears choose the C8051F540DK 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 8...

Page 3: ...cess connect the included USB cable between the host computer and the USB connector P5 on the C8051F540 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 Laboratories CP210x USB to UART Bridge Driver Removal option in the Add o...

Page 4: ...ect 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 run ning 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 proje...

Page 5: ...der 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 uVision2 and uVision3 Silicon Laboratories Drivers As an alternative to the Silicon Laboratories IDE the µVision debug driver allows the Keil µVision IDE to communicate ...

Page 6: ...e a blinking LED example which configures the green LED on the target board to blink at a fixed rate Also included are examples for each of peripherals of the MCU such as the UART 6 1 Register Definition Files Register definition files C8051F540 inc C8051F540_defs h and compiler_defs h define all SFR registers and bit addressable control status bits These files are installed into the SiLabs MCU Ex...

Page 7: ...TB1 Shared LIN Connector for Side A and B MCUs for external nodes J1 J3 Side A Port 0 through Port 2 headers J8 Side A Connects 5V net to VIO and VREGIN of the MCU J9 J10 Side A External crystal enable connectors J13 Side A Connects decoupling capacitors C28 and C29 for MCU VREF P0 0 J15 Side A Connects VIO to VIO_A_SRC which powers the R22 potentiometer the RST_A pin pull up and P1 4_A Switch pul...

Page 8: ...A J2 LIN_V LIN_OUT GND DEBUG_A P2 R22 SIDE A SIDE B DEBUG_B P3 TB3 RESET_A RESET_B SILICON LABS www silabs com DS2 DS3 DS1 J13 J16 J17 J18 P4 J10 J9 J12 Port 0 B J5 Port 1 B J6 J4 F542 U2 C8051 F540 U1 J19 J7 Port 2 B J11 J15 J8 J14 COMM DS1 P1 3_A PWR LED P1 3_B CP 2102 LIN LIN 2 2 2 2 2 1 1 1 1 1 1 2 1 1 1 1 1 1 2 2 2 2 1 1 2 2 1 TB1 ...

Page 9: ...horting blocks Figure 4 C8051F540 Target Board Shorting Blocks Factory Defaults P1 P5 C8051F540 TB P1 4_B P1 4_A Port 0 A J1 Port 2 A J3 Port 1 A J2 LIN_V LIN_OUT GND DEBUG_A P2 R22 SIDE A SIDE B DEBUG_B P3 TB3 RESET_A RESET_B SILICON LABS www silabs com DS2 DS3 DS1 J13 J16 J17 J18 P4 J10 J9 J12 Port 0 B J5 Port 1 B J6 J4 F542 U2 C8051 F540 U1 J19 J7 Port 2 B J11 J15 J8 J14 COMM DS1 P1 3_A PWR LED...

Page 10: ... Board Power Source P4 TB1 The two 12 V power sources LIN and ac to dc power adapter are ORed together using reverse biased diodes Z1 and Z2 and connected to the input of the LDO regulator U6 The output of the regulator is connected to the 5 V net of the target board through the P4 header A shorting block should be installed on pins P4 2 3 for this purpose The 5 V net powers the MCUs directly 7 3 ...

Page 11: ...ugh a header Remove the shorting block from the header to disconnect the LED from the port pin Similarly a second green LED on Side B is connected to the C8051F542 through another header See Table 1 for the port pins and headers corresponding to each LED 7 5 Target Board Debug Interfaces P2 and P3 The debug connectors P2 DEBUG_A and P3 DEBUG_B provide access to the debug C2 pins of the C8051F540 a...

Page 12: ...T1 transceiver through the J14 header and the C8051F542 Side B is connected to the T2 transceiver through the J12 header The two LIN transceivers are connected to each other and form a LIN network Other external devices can be connected to the LIN network through the TB1 interface The TB1 interface also provides the option for connecting an external power source so that all LIN transceivers can us...

Page 13: ...to external 0 1 µF and 4 7 µF decoupling capacitors The C8051F540 Side A device is connected to the capacitors through the J13 header and the C8051F542 Side B device connects to its own set of capacitors through J19 7 10 Potentiometer J17 The C8051F540 Side A device has the option to connect port pin P1 2 to a 10K linear potentiometer The potentiometer is connected through the J17 header The poten...

Page 14: ...eripherals Header J18 connects the P4 power adapter supply to the V_HIGH node which is used as the power source for the LIN transceivers T1 T2 The shorting block on header J18 can be removed to force the LIN transceivers to use the voltage supply externally supplied on the LIN_V pin on the TB1 header 7 13 C2 Pin Sharing On the C8051F540 Side A the debug pins C2CK and C2D are shared with the pins R...

Page 15: ...able 9 summarizes the C8051F540 MCU Side A pin assignments on the target board and also shows the various headers associated with each signal Table 9 C8051F540 Target Board Pin Assignments and Headers MCU Pin Name Pin Primary Function Alternate Fixed Function Target Board Function Relevant Headers P0 0 8 P0 0 VREF VREF J1 1 J13 1 P0 1 1 P0 1 CNVSTR CNVSTR J1 2 P0 2 32 P0 2 XTAL1 XTAL1 J1 3 J9 2 P0...

Page 16: ...TB3 4 GND 6 GND GND J1 J3 1 TB3 6 GNDA 7 GNDA VDD TB3 5 Note Headers denoted by this symbol are not directly connected to the MCU pin the connection might be via one or more headers and or pin sharing resistor s See board schematic for details Table 9 C8051F540 Target Board Pin Assignments and Headers Continued MCU Pin Name Pin Primary Function Alternate Fixed Function Target Board Function Releva...

Page 17: ...C8051F540DK Rev 0 1 17 8 Schematics Figure 5 C8051F540 Target Board Schematic Page 1 of 4 ...

Page 18: ...C8051F540DK 18 Rev 0 1 Figure 6 C8051F540 Target Board Schematic Page 2 of 4 ...

Page 19: ...C8051F540DK Rev 0 1 19 Figure 7 C8051F540 Target Board Schematic Page 3 of 4 ...

Page 20: ...C8051F540DK 20 Rev 0 1 Figure 8 C8051F540 Target Board Schematic Page 4 of 4 ...

Page 21: ...C8051F540DK Rev 0 1 21 NOTES ...

Page 22: ...in 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: