S1C88348/317/316/308 TECHNICAL HARDWARE
EPSON
I-111
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Programmable Timer)
Table 5.11.10.1(c) Programmable timer control bits
MODE16: 00FF30HD4
Selects the 8/16-bit mode.
When "1" is written: 16 bits
× 1 channel
When "0" is written: 8 bits
× 2 channels
Reading:
Valid
Select whether timer 0 and timer 1 will be used as 2
channel independent 8-bit timers or as a 1 channel
combined 16-bit timer. When "0" is written to
MODE16, 8-bit
× 2 channels is selected and when
"1" is written, 16-bit
× 1 channel is selected.
At initial reset, MODE16 is set to "0" (8-bit
× 2
channels).
CKSEL0, CKSEL1: 00FF30HD0, D1
Select the source clock of the prescaler.
When "1" is written: OSC3 clock
When "0" is written: OSC1 clock
Reading:
Valid
Select whether the source clock of prescaler 0 will
be set to OSC1 or OSC3. When "0" is written to
CKSEL0, OSC1 is selected and when "1" is written,
OSC3 is selected.
In the same way, the source clock of prescaler 1 is
selected by CKSEL1.
When event counter mode has been selected, the
setting of the CKSEL0 becomes invalid. In the same
way, the CKSEL1 setting becomes invalid when 16-
bit mode has been selected.
At initial reset, this register is set to "0" (OSC1
clock).
Address Bit
Name
SR R/W
Function
Comment
10
00FF21 D7
D6
D5
D4
D3
D2
D1
D0
–
PPT1
PPT0
PK11
PK10
–
Programmable timer interrupt priority register
K10 and K11 interrupt priority register
Constantly "0" when
being read
–
0
R/W
–
PPT1
PK11
1
0
PPT0
PK10
1
0
1
0
Priority
level
Level 3
Level 2
Level 1
Level 0
D7
D6
D5
D4
D3
D2
D1
D0
00FF25 D7
D6
D5
D4
D3
D2
D1
D0
FPT1
FPT0
FK1
FK0H
FK0L
FSERR
FSREC
FSTRA
Programmable timer 1 interrupt factor flag
Programmable timer 0 interrupt factor flag
K10 and K11 interrupt factor flag
K04–K07 interrupt factor flag
K00–K03 interrupt factor flag
Serial I/F (error) interrupt factor flag
Serial I/F (receiving) interrupt factor flag
Serial I/F (transmitting) interrupt factor flag
0
R/W
(R)
Interrupt
factor is
generated
(W)
Reset
(R)
No interrupt
factor is
generated
(W)
No operation
00FF23
EPT1
EPT0
EK1
EK0H
EK0L
ESERR
ESREC
ESTRA
Programmable timer 1 interrupt enable register
Programmable timer 0 interrupt enable register
K10 and K11 interrupt enable register
K04–K07 interrupt enable register
K00–K03 interrupt enable register
Serial I/F (error) interrupt enable register
Serial I/F (receiving) interrupt enable register
Serial I/F (transmitting) interrupt enable register
0
R/W
Interrupt
enable
Interrupt
disable