CHAPTER 28:LCD Controller
1088
S6J3200 Series Hardware Manual Document Number: 002-04852 Rev. *G
Setting procedure
4
Program
4
With the static drive method, make the LCD display an one-digit number.
void LCD_sample_4(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.
- Data setting
Register name
Data setting
LDR0
IO_LDR0.byte = 0x00;
LDR1
IO_LDR1.byte = 0xBC;
3.
- Setting of control register
Register name . 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
LCRS
IO_LCRS.byte = 0x20;
/* Setting value =0001_0000 */
/* bit7 = 0 Clock selection Main clock */
.
LCSEN
/* bit6 = 0 LCSEN Non-display with PSS mode */
.
LCS[3:0]
/* bit5-2 = 1000 LCS[3:0] ST0 to ST8 */
.
FPS[1:0]
/* bit1-0 = 00 FPS[1:0] Frame cycle setting */
}
Example) Values to display 3
LDR0/ LDR1 register
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...