16 SEVEN-SEGMENT LED CONTROLLER (LEDC)
16-6
Seiko Epson Corporation
S1C17M12/M13 TECHNICAL MANUAL
(Rev. 1.2)
16.5 Interrupt
The LEDC has a function to generate the interrupt shown in Table 16.5.1.
Table 16.5.1 LEDC Interrupt Function
Interrupt
Interrupt flag
Set condition
Clear condition
COM0 lighting
LEDCINTF.COM0LTIF
When COM0 is lit
*
Writing 1
*
The first COM0 lighting immediately after 1 is written to the LEDCCTL.DSPON bit does not set the interrupt flag.
The LEDC provides an interrupt enable bit corresponding to the interrupt flag. An interrupt request is sent to the
interrupt controller only when the interrupt flag is set while the interrupt has been enabled by the interrupt enable bit.
For more information on interrupt control, refer to the “Interrupt Controller” chapter.
COM0
COMx
Start display (DSPON = 1)
Figure 16.5.1 COM0 Lighting Interrupt Timings (Anode Common)
16.6 Control Registers
LEDC Clock Control Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
LEDCCLK
15–9 –
0x00
–
R
–
8
DBRUN
1
H0
R/W
7
–
0
–
R
6–4 CLKDIV[2:0]
0x0
H0
R/W
3–2 –
0x0
–
R
1–0 CLKSRC[1:0]
0x0
H0
R/W
Bits 15–9 Reserved
Bit 8
DBRUN
This bit sets whether the LEDC operating clock is supplied in DEBUG mode or not.
1 (R/W): Clock supplied in DEBUG mode
0 (R/W): No clock supplied in DEBUG mode
Bit 7
Reserved
Bits 6–4
CLKDIV[2:0]
These bits select the division ratio of the LEDC operating clock.
Bits 3–2
Reserved
Bits 1–0
CLKSRC[1:0]
These bits select the clock source of the LEDC.
Table 16.6.1 Clock Source and Division Ratio Settings
LEDCCLK.
CLKDIV[2:0] bits
LEDCCLK.CLKSRC[1:0] bits
0x0
0x1
0x2
0x3
IOSC
OSC1
OSC3
EXOSC
0x7, 0x6
Reserved
Reserved
Reserved
Reserved
0x5
1/512
1/512
0x4
1/256
1/256
0x3
1/128
1/128
0x2
1/64
1/64
0x1
1/32
1/32
0x0
1/16
1/1
1/16
1/1
(Note) The oscillation circuits/external input that are not supported in this IC cannot be
selected as the clock source.
Note: The LEDCCLK register settings can be altered only when the LEDCCTL.MODEN bit = 0.