CHAPTER 28:LCD Controller
1084
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
Setting procedure
2
Program 2
With the1/3 duty drive method, make the LCD display a four-digit number ,
"0 1 2 3 ".
void LCD_sample_2(void)
{
Initial setting (LCDC)
LCDC_initial();
}
<Initial setting>
void LCDC_initial(void)
1.
- Port
Register name
{
COM, SEG output setting for the
port
See 6.8. and 6.9.
PORT_SETTING_LCDC_OUT();
/* Set the LCD controller pin to */
/* peripheral output. */
2.
- Setting of VRAM
Register name
Setting of VRAM
VRAM00-VRAM05
IO_VRAM00 = 0x53;
IO_VRAM01 = 0x03;
IO_VRAM02 = 0x30;
IO_VRAM03 = 0x72;
IO_VRAM04 = 0x01;
IO_VRAM05 = 0x37;
3.
- Setting of control register
Register name
Fixed value
LCR1
IO_LCR1.byte = 0xFF;
/* Set to FF. */
Bias setting
LCDCMR
IO_LCDCMR. byte = 0x00;
/* 1/3 bias */
Setting of control register
LCR0
IO_LCR0.byte = 0x08;
/* Setting value =0000_1000 */
/* bit7 = 0 Clock selection Main clock */
.
LCEN
/* bit6 = 0 LCEN Display stopped with PSS mode */
.
VSEL
/* bit5 = 0 VSEL Internal division resistor disconnected */
.
BK
/* bit4 = 0 BK Blanking selection bit */
.
MS[1:0]
/* bit3-2 = 10 MS[1:0] 1/3 duty mode */
.
FP[1:0]
/* bit1-0 = 00 FP[1:0] */
}
<Others>
(Note)
Clock-related setting and setting of _set_il (numerical value)
in advance are required. See chapter of "CLOCK SYSTEM"
and chapter of "INTERRUPT CONTROLLER" for details.
Содержание S6J3200 Series
Страница 1041: ...CHAPTER 28 LCD Controller 1040 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Страница 1044: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1043...
Страница 1047: ...CHAPTER 28 LCD Controller 1046 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Страница 1050: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1049...
Страница 1084: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1083...
Страница 1086: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1085...
Страница 1088: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1087...