CHAPTER 28:LCD Controller
1086
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
Setting procedure 3
Program 3
With the 1/4 duty drive method, make the LCD display a four-digit number,
"0 1 2 3 ".
void LCD_sample_3(void)
{
Initial setting (LCD)
LCD_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-VRAM03
IO_VRAM00 = 0x9F;
IO_VRAM01 = 0x88;
IO_VRAM02 = 0xB6;
IO_VRAM03 = 0xBC;
3.
- Setting of control register
registername . bit 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 = 0x0C;
/* Setting value =0000_1100 */
/* 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 = 11 MS[1:0] 1/4 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.
Summary of Contents for S6J3200 Series
Page 1041: ...CHAPTER 28 LCD Controller 1040 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Page 1044: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1043...
Page 1047: ...CHAPTER 28 LCD Controller 1046 S6J3200 Series Hardware Manual Document Number 002 04852 Rev G...
Page 1050: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1049...
Page 1084: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1083...
Page 1086: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1085...
Page 1088: ...CHAPTER 28 LCD Controller S6J3200 Series Hardware Manual Document Number 002 04852 Rev G 1087...