background image

C 8 0 5 1 F 5 4 0 D K

22

Rev. 0.1

C

ONTACT

 I

NFORMATION

Silicon Laboratories Inc.
400 West Cesar Chavez
Austin, TX 78701
Tel: 1+(512) 416-8500
Fax: 1+(512) 416-9669
Toll Free: 1+(877) 444-3032

Please visit the Silicon Labs Technical Support web page:

https://www.silabs.com/support/pages/contacttechnicalsupport.aspx

and register to submit a technical support request.

Silicon Laboratories and Silicon Labs are trademarks of Silicon Laboratories Inc.

Other products or brandnames mentioned herein are trademarks or registered trademarks of their respective holders.

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 
the use of information included herein. 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 of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation conse-
quential or incidental damages. Silicon Laboratories products are not designed, intended, or authorized for use in applications intended to 
support or sustain life, or for any other application in which the failure of the Silicon Laboratories product could create a situation where per-
sonal injury or death may occur. Should Buyer purchase or use Silicon Laboratories products for any such unintended or unauthorized ap-
plication, Buyer shall indemnify and hold Silicon Laboratories harmless against all claims and damages. 

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: