![Epson S1C63666 Скачать руководство пользователя страница 98](http://html.mh-extra.com/html/epson/s1c63666/s1c63666_technical-manual_106916098.webp)
88
EPSON
S1C63666 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Programmable Timer)
CHSEL0, CHSEL1: TOUT output channel selection register (FFC1H•D1, D2)
Selects the channel used for TOUT signal output.
Table 4.11.9.3 Selecting a timer for TOUT output
CHSEL1
1
0
0
CHSEL0
∗
1
0
TOUT output timer
Timer 2
Timer 1
Timer 0
At initial reset, this register is set to "0".
PTOUT: TOUT output control register (FFC1H•D0)
Turns TOUT signal output on and off.
When "1" is written: On
When "0" is written: Off
Reading: Valid
PTOUT is the output control register for the TOUT signal. When "1" is written to the register, the TOUT
signal is output from the output port terminal R02 and when "0" is written, the terminal goes to a high
(V
DD
) level. However, the data register R02 must always be "1" and the high impedance control register
R02HIZ must always be "0" (data output state).
At initial reset, this register is set to "0".
EIPT0: Timer 0 interrupt mask register (FFE1H•D0)
EIPT1: Timer 1 interrupt mask register (FFE1H•D1)
EIPT2: Timer 2 interrupt mask register (FFE1H•D2)
These registers are used to select whether to mask the programmable timer interrupt or not.
When "1" is written: Enabled
When "0" is written: Masked
Reading: Valid
The timer x interrupt can be masked individually by the interrupt mask registers EIPTx.
At initial reset, these registers are set to "0".
IPT0: Timer 0 interrupt factor flag (FFF1H•D0)
IPT1: Timer 1 interrupt factor flag (FFF1H•D1)
IPT2: Timer 2 interrupt factor flag (FFF1H•D2)
These flags indicate the status of the programmable timer interrupt.
When "1" is read: Interrupt has occurred
When "0" is read: Interrupt has not occurred
When "1" is written: Flag is reset
When "0" is written: Invalid
The interrupt factor flags IPTx correspond to the timer x interrupt. The software can judge from these
flags whether there is a programmable timer interrupt. However, even if the interrupt is masked, the flags
are set to "1" by the underflows of the corresponding counters.
These flags are reset to "0" by writing "1" to them.
After an interrupt occurs, the same interrupt will occur again if the interrupt enabled state (I flag = "1") is
set or the RETI instruction is executed unless the interrupt factor flag is reset. Therefore, be sure to reset
(write "1" to) the interrupt factor flag in the interrupt service routine before shifting to the interrupt
enabled state.
At initial reset, these flags are set to "0".
Содержание S1C63666
Страница 1: ...Technical Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63666 Technical Hardware S1C63666 ...
Страница 4: ......
Страница 6: ......