BOARD EVAL SPI LCD DRIVER CP2400

CP2400AB

Manufacturer Part NumberCP2400AB
DescriptionBOARD EVAL SPI LCD DRIVER CP2400
ManufacturerSilicon Laboratories Inc
CP2400AB datasheets
 

Specifications of CP2400AB

Main PurposeLCD DevelopmentEmbeddedNo
Utilized Ic / PartCP2400Primary AttributesI²C, SMBus Interfaces
Secondary AttributesUp to 128 segmentsProductMicrocontroller Accessories
Core ProcessorCP2400Clock Speed20 MHz
Interface TypeSPITimers2
Operating Supply Voltage1.8 V to 3.6 VCpu CoreCP2400
Lead Free Status / RoHS StatusContains lead / RoHS non-compliantOther names336-1857
1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
9
Page 9
10
Page 10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Page 1/32

Download datasheet (2Mb)Embed
Next
CP2400/1-DK
CP2400
C P 2 4 0 1 D
K
U
G
A N D
EVELOPMENT
IT
S E R
S
U I D E
1. Overview
The LCD Development Kits (CP2400-DK and CP2401-DK) provide all the hardware and software required to
develop and test LCD applications. The CP240x LCD Firmware Library is included to aid in the code development
process and handle the communication between the C8051F9xx MCU and the CP2400/1 LCD controller. The LCD
library can be used to communicate with the LCD controller through the SPI interface (CP2400-DK) or the SMBus
interface (CP2401-DK). Example code using the LCD library is included with both development kits.
The LCD development kit hardware includes a C8051F930 target board, CP2400 or CP2401 LCD Development
Board, USB Debug adapter, and an ac to dc power adapter. The C8051F930 Target Board features the 25 MIPS,
64 kB Flash, 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
interface (CP2401-DK) on the C8051F930 to control the LCD using the LCD library.
The Silicon Labs’ IDE supports full-speed, non-intrusive MCU debugging and is bundled with an evaluation version
of the Keil C51 Toolchain allowing immediate application code evaluation in C. Projects with up to 4 kB of object
code and unlimited library code can be developed using the included toolset. Numerous application code examples
are included in the development kit and a walkthrough of an LCD example is included in 6. "Example Source
Code‚" on page 11.
Figure 1. C8051F912-TB Target Board and CP2400 LCD Development Board
Rev. 0.1 10/09
Copyright © 2009 by Silicon Laboratories
CP2400/1-DK

CP2400AB Summary of contents

  • Page 1

    CP2400 Overview The LCD Development Kits (CP2400-DK and CP2401-DK) provide all the hardware and software required to develop and test LCD applications. The CP240x LCD Firmware Library is included ...

  • Page 2

    CP2400/1-DK 2. Kit Contents The CP2400/1 LCD development kit contains the following items:  C8051F930 target board  CP2400 or CP2401 LCD development board  CP240x development kit quick-start guide  Silicon Laboratories IDE and product information CD-ROM. CD content ...

  • Page 3

    Figure 3. CP2400 Development Board 3. Software Overview All software required to develop firmware and communicate with the target microcontroller is included in the CD- ROM. The CD-ROM also includes other useful software. Below is the software necessary for firmware ...

  • Page 4

    CP2400/1-DK 1. Follow the steps to copy the driver files to the desired location. The default directory is C:\Silabs\MCU\CP210x. 2. The final window will give an option to install the driver on the target system. Select the “Launch the CP210x ...

  • Page 5

    Configuration Wizard 2 The Configuration Wizard code generation tool for all of the Silicon Laboratories devices. Code is generated through the use of dialog boxes for each of the device's peripherals. Figure 4. Configuration Wizard 2 ...

  • Page 6

    CP2400/1-DK 3.6. Silicon Labs Battery Life Estimator The Battery Life Estimator is a system design tool for battery operated devices. It allows the user to select the type of battery they are using in the system and enter the supply ...

  • Page 7

    Figure 6. Battery Life Estimator Discharge Profile Editor The Discharge Profile Editor allows the user to modify the profile name and description. The four text entry boxes on the left hand side of the form allow the user to specify ...

  • Page 8

    CP2400/1-DK The wakeup frequency box calculates the period of a single iteration through the four power modes and displays the system wake up frequency. This is typically the "sample rate" in low power analog sensors. Once the battery type and ...

  • Page 9

    Hardware Setup using a USB Debug Adapter The target board is connected running the Silicon Laboratories IDE via the USB Debug Adapter as shown in Figure 9. 1. Connect the LCD development board to the F930 ...

  • Page 10

    CP2400/1-DK 5. Using the Keil Software 8051 Tools with the Silicon Laboratories IDE To perform source-level debugging with the IDE, configure the Keil 8051 tools to generate an absolute object file in the OMF-51 format with object extensions and debug ...

  • Page 11

    Example Source Code Example source code and register definition files are provided in the “SiLabs\MCU\Examples\C8051F93x_92x\” default directory during IDE installation. These files may be used as a template for code development. Example applications include a blinking LED example which ...

  • Page 12

    CP2400/1-DK If using a CP2400, this line should say: #define BUS_INTERFACE 6.4.3. Example Selection The example that is run on the CP2400/1 LCD development board can be selected in the file, app_config.h. The available examples include a voltage display example, ...

  • Page 13

    C8051F930 Target Board The CP2400/1 Development Kit includes a target board with a C8051F930 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 10 ...

  • Page 14

    CP2400/1-DK The following items are located on the bottom side of the board. See Figure 11. BT1 Battery Holder for 1.5 V AAA. Use for one-cell or two-cell mode. BT2 Battery Holder for 1.5 V AAA. Use for two-cell mode ...

  • Page 15

    Target Board Shorting Blocks: Factory Defaults The C8051F930 target board comes from the factory with pre-installed shorting blocks on many headers. Figure 12 shows the positions of the factory default shorting blocks. R15 J16 P1.4 J15 GND PORT2 P1 ...

  • Page 16

    CP2400/1-DK 7.2. Target Board Power Options and Current Measurement The C8051F930 Target Board supports three power options, selectable by the three-way header (J10/J11). The power options vary based on the configuration (one-cell or two-cell mode) selected by SW4. Power to ...

  • Page 17

    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 ...

  • Page 18

    CP2400/1-DK Table 1. Target Board I/O Descriptions Description SW1 SW2 SW3 P2.0 (Touch Sense Switch) P2.1 (Touch Sense Switch) Red LED (P1.5) Yellow LED (P1.6) Red LED (VDD/DC+) Red LED (VBAT) Red LED (USB Power) Red LED (+1 VD Power) ...

  • Page 19

    Table 2. P1 Pin Descriptions (Continued) Row A Description Pin # P2.2/A10 21 /WR 22 P2.3/A11 23 P2.0/ GND 7.7. ...

  • Page 20

    CP2400/1-DK Table 4. Serial Interface Header (J12) Description 7.9. Analog I/O (H1) Several of the C8051F930 target device’s port pins are connected to the H1 terminal block. Refer to Table 5 for the H1 terminal block connections. Table 5. H1 ...

  • Page 21

    CP2400/1 AB LCD Development Board The CP2400 and CP2401 Development Kits include a CP2400 or CP2401 LCD Development Board designed to connect to C8051F9xx target boards. Various input/output (I/O) connectors are provided to facilitate prototyping using the development board. ...

  • Page 22

    CP2400/1-DK 8.1. Target Board Shorting Blocks: Factory Defaults The CP2400/1 target board comes from the factory with pre-installed shorting blocks on many headers. Figure 14 shows the positions of the factory default shorting blocks. DEVELOPMENT BOARD J5 J1 Figure 14. ...

  • Page 23

    AB Board Current Measurement The header (J2) provides a way to measure the total supply current flowing from the power supply source to the CP2400/1. The measured current does not include any current from the LED (D1) or the ...

  • Page 24

    CP2400/1-DK 8.6. Expansion I/O Connector (P1) The 96-pin Expansion I/O connector P1 provides access to all signal pins of the CP2400/1 device. In addition, power supply and ground pins are included. A small through-hole prototyping area is also provided. See ...

  • Page 25

    Schematics CP2400/1-DK Rev. 0.1 25 ...

  • Page 26

    CP2400/1-DK 26 Rev. 0.1 ...

  • Page 27

    CP2400/1-DK Rev. 0.1 27 ...

  • Page 28

    CP2400/1-DK 28 Rev. 0.1 ...

  • Page 29

    CP2400/1-DK Rev. 0.1 29 ...

  • Page 30

    CP2400/1-DK 30 Rev. 0.1 ...

  • Page 31

    CP2400/1-DK Rev. 0.1 31 ...

  • Page 32

    ... 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. 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. ...