16 lCD DRiVeR (lCD)
S1C17153 TeChniCal Manual
Seiko epson Corporation
16-9
(Rev. 1.0)
lCD interrupt
16.7
The LCD module includes a function for generating interrupts using the frame signal.
Frame interrupt
This cause of interrupt occurs every frame and sets the interrupt flag IFRMFLG/LCD_IFLG register in the
LCD module to 1. See Figures 16.4.2.1 to 16.4.2.4 for interrupt timings.
To use this interrupt, set IFRMEN/LCD_IMSK register to 1. When IFRMEN is set to 0 (default), interrupt re-
quests for this interrupt cause are not sent to the interrupt controller (ITC).
If IFRMFLG is set to 1 while IFRMEN is set to 1 (interrupt enabled), the LCD module outputs an interrupt re-
quest to the ITC. An interrupt is generated if the ITC and S1C17 Core interrupt conditions are satisfied.
For more information on interrupt processing, see the “Interrupt Controller (ITC)” chapter.
notes
: • To prevent interrupt recurrences, the LCD module interrupt flag IFRMFLG must be reset in the
interrupt handler routine after an LCD interrupt has occurred.
• To prevent unwanted interrupts, IFRMFLG should be reset before enabling LCD interrupts with
IFRMEN.
Control Register Details
16.8
8.1 List of LCD Registers
Table 16.
address
Register name
Function
0x5070
LCD_TCLK
LCD Clock Select Register
Selects the LCD clock.
0x50a0
LCD_DCTL
LCD Display Control Register
Controls the LCD display.
0x50a2
LCD_CCTL
LCD Clock Control Register
Controls the LCD drive duty.
0x50a3
LCD_VREG
LCD Voltage Regulator Control Register
Controls the LCD drive voltage regulator.
0x50a5
LCD_IMSK
LCD Interrupt Mask Register
Enables/disables interrupts.
0x50a6
LCD_IFLG
LCD Interrupt Flag Register
Indicates/resets interrupt occurrence status.
The LCD module registers are described in detail below.
note
: When data is written to the registers, the “Reserved” bits must always be written as 0 and not 1.
lCD Timing Clock Select Register (lCD_TClK)
Register name address
Bit
name
Function
Setting
init. R/W
Remarks
lCD Timing
Clock Select
Register
(lCD_TClK)
0x5070
(8 bits)
D7–6
–
reserved
–
–
–
0 when being read.
D5–4
lCDTClKD
[1:0]
LCD clock division ratio select
LCDTCLKD
[1:0]
Division ratio
0x0 R/W
OSC3B OSC1A
0x3
0x2
0x1
0x0
1/8192
1/4096
1/2048
1/1024
1/64
1/64
1/64
1/64
D3–2
lCDTClK
SRC[1:0]
LCD clock source select
LCDTCLK
SRC[1:0]
Clock source
0x0 R/W
0x3, 0x2
0x1
0x0
reserved
OSC1A
OSC3B
D1
–
reserved
–
–
–
0 when being read.
D0
lCDTClKe
LCD clock enable
1 Enable
0 Disable
0
R/W
D[7:6]
Reserved
D[5:4]
lCDTClKD[1:0]: lCD Clock Division Ratio Select Bits
Selects the division ratio when OSC3B is selected as the LCD clock source.