background image

CP2400/1-DK

Rev. 0.1

17

7.2.4. Measuring Current

The header (J17) and terminal block (H2) provide a way to measure the total supply current flowing from the power
supply source to the MCU. The measured current does not include any current from the VBAT LED (DS2), the
address latch (U4) or the quiescent current from the power supply; however, it does include the current used by
any LEDs powered from the VDD/DC+ supply net or sourced through a GPIO pin. See the target board schematics
in Figures 19 through 21 for additional information.

7.3.  System Clock Sources

7.3.1. Internal Oscillators

The C8051F930 device installed on the target board features a factory calibrated programmable high-frequency
internal oscillator (24.5 MHz base frequency, ±2%) and a low power internal oscillator (20 MHz ±10%). After each
reset, the low power oscillator divided by 8 results in a default system clock frequency of 2.5 MHz (±10%). The
selected system clock and the system clock divider may be configured by software for operation at other
frequencies. For low-frequency operation, the C8051F930 features a smaRTClock real time clock. A 32.768 kHz
Watch crystal (Y2) is included on the target board. If you wish to operate the C8051F930 device at a frequency not
available with the internal oscillators, an external crystal may be used. Refer to the C8051F93x-C8051F92x 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 (Y1). Install a 10 M

 resistor at R9

and install capacitors at C20 and C21 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. Populate C21 for capacitor mode, and populate R16 and C21 for RC mode. Refer to the C8051F93x-
C8051F92x data sheet for more information on the use of external oscillators.

7.4.  Port I/O Headers (J2, J3, J4, J6)

Access to all Port I/O on the C8051F930 is provided through the headers J2, J3, and J4. The header J6 provides
access to the ground plane for easy clipping of oscilloscope probes.

7.5.  Switches and LEDs

Three push-button switches are provided on the target board. Switch SW1 is connected to the reset pin of the
C8051F930. Pressing SW1 puts the device into its hardware-reset state. Switches SW2 and SW3 are connected to
the C8051F930’s general purpose I/O (GPIO) pins through headers. Pressing SW2 or SW3 generates a logic low
signal on the port pin. Remove the shorting block from the header (J8) to disconnect the switches from the port
pins. The port pin signal is also routed to pins on the J2 and P1 I/O connectors. See Table 1 for the port pins and
headers corresponding to each switch.

Two touch sensitive (contactless) switches are provided on the target board. The operation of these switches
require appropriate firmware running on the C8051F930 MCU that can sense the state of the switch. See Section
6.3. "Touch Sensitive Switch Example‚" on page 11 for details about example source code.

Five power LEDs are provided on the target board to serve as indicators. Each of the two regulators has a red LED
used to indicate the presence of power at the output of the regulator. A red USB Power LED turns on when a USB
cable is plugged into the USB connector P3. One power LED is also added to each of the two primary supply nets
powering the MCU (VDD/DC+ and VBAT). The LEDs connected to the supply nets may be disabled by removing
the shorting blocks from J1 and J5.

Two LEDs are connected to GPIO pins P1.5 and P1.6 for use by application software. See Table 1 for the port pins
and headers corresponding to each LED.

A potentiometer (R15) is also provided on the target board for generating analog signals. Place a shorting block on
J16 to connect the wiper to P0.6/CNVSTR. The header J15 allows the negative terminal of the potentiometer to be
tied to GND or to P1.4. When tied to GND, the potentiometer is always enabled and will draw a measurable
amount of supply current. When tied to P1.4, it only draws current when P1.4 is driving a logic 0 and draws no
current when P1.4 is driving a logic 1. 

Downloaded from 

Elcodis.com

 

electronic components distributor

 

Summary of Contents for CP2400-DK

Page 1: ...over 4 kB RAM 8051 based C8051F930 MCU The C8051F930 MCU is part of the low power family and can operate with a supply voltage from 0 9 to 3 6 V The MCU LCD interface provided by the AB board consists of the CP2400 1 LCD controller and an LCD and is compatible with the C8051F930 DK and C8051F912 DK The LCD development kit includes example code which uses either the SPI interface CP2400 DK or SMBus...

Page 2: ... includes the following Silicon Laboratories Integrated Development Environment IDE Keil 8051 development tools macro assembler linker evaluation C compiler Source code examples and register definition files Documentation CP2400 and CP2401 Development Kit User s Guide this document AC to DC power adapter USB Debug Adapter USB to debug interface 2 USB cables 2 AAA batteries Figure 2 C8051F930 Targe...

Page 3: ...OM into your PC s CD ROM drive An installer will automatically launch allowing you to install the IDE software or read documentation by clicking buttons on the Installation Panel If the installer does not automatically start when you insert the CD ROM run autorun exe found in the root directory of the CD ROM Refer to the ReleaseNotes txt file on the CD ROM for the latest information regarding know...

Page 4: ...aboratories IDE integrates a source code editor a source level debugger and an in system Flash programmer See Section 5 Using the Keil Software 8051 Tools with the Silicon Laboratories IDE on page 10 for detailed information on how to use the IDE The Keil Evaluation Toolset includes a compiler linker and assembler and easily integrates into the IDE The use of third party compilers and assemblers i...

Page 5: ...atically generating initialization source code to configure and enable the on chip resources needed by most design projects In just a few steps the wizard creates complete startup code for a specific Silicon Laboratories MCU The program is configurable to provide the output in C or assembly language For more information refer to the Configuration Wizard documentation Documentation and software is ...

Page 6: ... battery profiles for common battery types such as AAA AA A76 Button Cell and CR2032 coin cell The discharge profile is application specific and describes the supply current requirements of the system under various supply voltages and battery configurations The discharge profile is independent of the selected power source Several read only discharge profiles for common applications are included in...

Page 7: ...y current The V2 and V1 voltages at the top of the two columns specify the voltages at which the current measurements were taken The Battery Life Estimator creates a linear approximation based on the input data and is able to feed the simulation engine with an approximate supply current demand for every input voltage The minimum system operating voltage input field allows the system operating time...

Page 8: ...lude estimated battery capacity average current self discharge current and the ability to export graph data to a comma delimited text file for plotting in an external graphing application 3 7 Keil µVision2 and µVision3 Silicon Laboratories Drivers As an alternative to the Silicon Laboratories IDE the µVision debug driver allows the Keil µVision2 and µVision3 IDEs to communicate with Silicon Labora...

Page 9: ...ecting the cable when the devices have power can damage the device and or the USB Debug Adapter Figure 8 CP2400 1 LCD Development Board Attachment Figure 9 Hardware Setup Using a USB Debug Adapter P1 CP2400 U1 J5 J1 D2 D1 J2 IMEASURE J5J4 LED PWR SILICON LABS www silabs com CP2400 GQ LCD DEVELOPMENT BOARD P0 2 P0 3 J3 J4 J2 P3 CP 2103 U3 P2 DEBUG J9 RESET J17 IMEASURE H2 SILICON LABS www silabs co...

Page 10: ...e 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 build of the absolute object file 5 If a project contains a large number of files the Group feature of the IDE can be used to organize Right click on New Project in the Project Window Select Add Groups to project Add pre defined groups or add customized groups...

Page 11: ...configuration and usage of the touch sensitive contactless switches located on P2 0 and P2 1 Refer to the source file for step by step instructions to build and test this example This is installed in the following directory by default Silabs MCU Examples C8051F93x_92x CapTouchSense_Switch 6 4 LCD Examples The example source files in the project CP240x_LCD_Example show how to initialize the C8051F9...

Page 12: ...measured can be selected by modifying the CHANNEL_SELECT definition in app_config h The available selections are VDD and the potentiometer POT To measure VDD change the corresponding EXAMPLE definition in app_config h The VDD voltage will now be displayed on the LCD To measure the potentiometer voltage change the corresponding EXAMPLE definition in app_config h and place shorting blocks on J16 and...

Page 13: ...ace J10 J11 Selects the power supply source Wall Power AAA Battery or Coin Cell J12 Connects Port I O to UART0 interface J13 Connects external VREF capacitor to the P0 0 VREF J14 Connects the PCB ground plane to P0 1 AGND J15 Connects negative potentiometer R14 terminal to pin P1 4 or to GND J16 Connects the potentiometer R14 wiper to P0 6 CNVSTR J17 Creates an open in the power supply path to all...

Page 14: ... mode BT2 Battery Holder for 1 5 V AAA Use for two cell mode only BT3 Battery Holder for 3 V Coin Cell CR2032 BT4 Battery Holder for 1 5 V Button Cell A76 or 357 Figure 11 Bottom of C8051F930 Target Board NEG POS NEG POS BT4 BT2 BT1 BT3 CR2032 A76 or 357 AAA AAA Note BT2 is only used in two cell mode Downloaded from Elcodis com electronic components distributor ...

Page 15: ...ing Blocks Factory Defaults P0 2 P0 3 Pin 1 Pin 2 J3 J4 J2 P3 CP 2103 U3 P2 DEBUG J9 USB POWER RESET P1 6 P1 5 POWER OFF BEFORE SW4 SWITCHING MODE 2 CELL 1 CELL J17 IMEASURE H2 SILICON LABS www silabs com H1 Pin 1 J6 VDD DC J5 J7 J13 F930 U1 J14 J11 J10 VBAT WALL_PWR AAA_BAT COIN_CELL TOUCH SENSE SWITCH P2 0 TOUCH SENSE SWITCH P2 1 P1 4 J15 GND J16 R15 J12 J8 3VD 1VD VBAT J1 SW5 ON OFF P1 SW2 SW3 ...

Page 16: ...oard If SW4 is configured to select two cell mode the VBAT supply net on the target board is powered directly from the 3 VD net If SW4 is configured to select one cell mode the VBAT supply net is powered directly from the 1 VD This power supply net takes 3 VD and passes it through a 1 65 V LDO The LDO s output voltage is variable and can be set by changing the value of resistor R32 7 2 2 AAA Batte...

Page 17: ... I O on the C8051F930 is provided through the headers J2 J3 and J4 The header J6 provides access to the ground plane for easy clipping of oscilloscope probes 7 5 Switches and LEDs Three push button switches are provided on the target board Switch SW1 is connected to the reset pin of the C8051F930 Pressing SW1 puts the device into its hardware reset state Switches SW2 and SW3 are connected to the C...

Page 18: ...ly Net J5 Red LED VBAT VBAT Supply Net J1 Red LED USB Power USB VBUS none Red LED 1 VD Power 1 VD Regulator Output none Red LED 3 VD Power 3 VD Regulator Output none Potentiometer R15 P0 6 P1 4 J15 J16 Table 2 P1 Pin Descriptions Row A Pin Description Row B Pin Description Row C Pin Description 1 3 VD 1 GND 1 nc 2 nc 2 nc 2 nc 3 nc 3 nc 3 nc 4 nc 4 nc 4 nc 5 nc 5 nc 5 nc 6 nc 6 nc 6 nc 7 nc 7 nc 7...

Page 19: ...ks on header J12 The shorting block positions for connecting each of these signals to the CP2103 are listed in Table 4 To use this interface the USB to UART device drivers should be installed as described in Section 3 2 CP210x USB to UART VCP Driver Installation on page 3 19 nc 19 nc 19 P2 3 A11 20 P2 2 A10 20 P2 1 A9 20 P2 0 A8 21 WR 21 RD 21 P0 2H 22 P2 3 A11 22 P2 2 A10 22 P2 1 A9 23 P2 0 A8 23...

Page 20: ...ge Reference is optional since F93x F92x devices have an on chip High Speed Voltage Reference The shorting block J14 allows P0 1 AGND to be connected to ground This provides a noise free ground reference to the analog to digital Converter The use of this dedicated analog ground is optional 7 12 C2 Pin Sharing On the C8051F930 the debug pins C2CK and C2D are shared with the pins RST and P2 7 respec...

Page 21: ...Liquid Crystal Display LCD U1 CP2400 1 LCD Controller J1 CP2400 1 Port I O headers provide access to Port I O pins on CP2400 1 J2 Creates an open in the power supply path to allow supply current measurement J3 Provides an easily accessible ground clip J4 Connects the LED signal from the C8051F9xx Target Board to the LED on the CP2400 1 Development Board J5 Enable Disable CP2400 1 Power LED D1 LED ...

Page 22: ...orting blocks on many headers Figure 14 shows the positions of the factory default shorting blocks Figure 14 CP2400 AB LCD Development Board Shorting Blocks Factory Defaults P1 CP2400 U1 J5 J1 D2 D1 J2 IMEASURE J5J4 LED PWR SILICON LABS www silabs com CP2400 GQ LCD DEVELOPMENT BOARD Downloaded from Elcodis com electronic components distributor ...

Page 23: ...ted to on the target board Headers are provided on the AB board to allow for the LEDs to be physically disconnected from the circuit Placing a jumper on the header J4 will connect the PWR LED to ground which will allow it to turn on when a voltage is applied on the CP2400 1 s VDD pin Placing a jumper on the header J5 will connect LED labeled LED to the LED signal on the attached Target Board Table...

Page 24: ...nc 3 nc 3 nc 3 nc 4 nc 4 nc 4 nc 5 nc 5 nc 5 nc 6 nc 6 nc 6 nc 7 nc 7 nc 7 nc 8 nc 8 nc 8 nc 9 nc 9 nc 9 nc 10 nc 10 nc 10 nc 11 nc 11 nc 11 nc 12 nc 12 INT_H 12 RST_H 13 LED_H 13 nc 13 nc 14 CLK_H 14 NSS_H PWR_H 14 MOSI_H 15 MISO_H SCL_H 15 SCK_H SDA_H 15 nc 16 nc 16 nc 16 nc 17 nc 17 nc 17 nc 18 nc 18 nc 18 nc 19 nc 19 nc 19 nc 20 nc 20 nc 20 nc 21 nc 21 nc 21 nc 22 nc 22 nc 22 nc 23 nc 23 nc 23...

Page 25: ...CP2400 1 DK Rev 0 1 25 9 Schematics Figure 15 CP2400 LCD Development Board Schematic Page 1 of 2 Downloaded from Elcodis com electronic components distributor ...

Page 26: ...CP2400 1 DK 26 Rev 0 1 Figure 16 CP2400 LCD Development Board Schematic Page 2 of 2 Downloaded from Elcodis com electronic components distributor ...

Page 27: ...CP2400 1 DK Rev 0 1 27 Figure 17 CP2401 LCD Development Board Schematic Page 1 of 2 Downloaded from Elcodis com electronic components distributor ...

Page 28: ...CP2400 1 DK 28 Rev 0 1 Figure 18 CP2401 LCD Development Board Schematic Page 2 of 2 Downloaded from Elcodis com electronic components distributor ...

Page 29: ...CP2400 1 DK Rev 0 1 29 Figure 19 C8051F930 Target Board Schematic Page 1 of 3 Downloaded from Elcodis com electronic components distributor ...

Page 30: ...CP2400 1 DK 30 Rev 0 1 Figure 20 C8051F930 Target Board Schematic Page 2 of 3 Downloaded from Elcodis com electronic components distributor ...

Page 31: ...CP2400 1 DK Rev 0 1 31 Figure 21 C8051F930 Target Board Schematic Page 3 of 3 Downloaded from Elcodis com electronic components distributor ...

Page 32: ... 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 specif...

Reviews: