C P 2 4 0 0 / 1 - D K
12
Rev. 0.1
If using a CP2400, this line should say:
#define BUS_INTERFACE SPI
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, digit display example, and several current measurement
examples. A list of available examples is included in the file, app_config.h. The following line of code would select
the digit display example:
#define EXAMPLE DISPLAY_DIGITS
The display digits example will first show the numbers “01234567”, clear the LCD, and then show “76543210”. For
the voltage display example, the channel being 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 J15[2-3] on the C8501F930 Target Board. The potentiometer voltage will now be
displayed on the LCD.
The various current measurement examples can also be selected in app_config.h. These examples place the
CP240x in various power modes. The file, lcd_lib_config.h, has parameters that can be modified that will affect the
current draw, such as the LCD refresh rate, the mux mode, and the bias mode.
electronic components distributor