Chapter 17
LCD
Operation XVII - 25
17.3.6 Setup Examples of REFVOL and BSTVOL
The following example shows how to display "23" on a 8-segment type LCD panel by using SEG0-SEG3 and
COM0-COM3, with the voltage generated with REFVOL and BSTVOL.
The display mode with 1/4 duty output and 1/3 bias is selected.
Setup Procedure Description
(1) Select the boost mode of BSTVOL
LCDMD4 (0x03ECE)
bp0: LCUPMD = 0
(1) Select the three times boost mode.
(2) Activate BSTVOL and REFVOL
LCDMD1 (0x03E81)
bp7: LCVREN = 1
LCDMD0 (0x03E80)
bp7: LCUPEN = 1
(2) Activate BSTVOL and REFVOL.
(3) SEG & COM pins setting
LCCTR0 (0x03E86)
bp7-4: SEGSL3-0 = 1111
bp3-0: COMSL3-0 = 1111
LCDSEL (0x03E8E)
bp3-0: COMSL7-4 = 0000
(3) Select SEG0-3 and COM0-3 pins.
(4) Select a LCDCLK
LCDMD3 (0x3E83)
bp6-3: LCCK3-0 = 0111
bp2-0: LCCKS2-0 = 101
(4) Select "HCLK/2
18
" as a display clock.
(5) Select a display duty.
LCDMD2 (0x03E82)
bp2-0: LCDTY2-0 = 011
(5) Select "1/4" as a display duty.
(6) Set the display data.
LCDATA0 (0x03E90) = 0x0E
LCDATA1 (0x03E91) = 0x05
LCDATA2 (0x03E92) = 0x0C
LCDATA3 (0x03E93) = 0x07
(6) Set the display data, "23" on the segment output latch.
(7) Activate the LCD.
LCDMD2 (0x03E82)
bp7: LCEN = 1
(7) Start the LCD.