Epson S1C88650 Computer Hardware User Manual


 
S1C88650 TECHNICAL MANUAL EPSON 105
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Programmable Timer)
PTRUN0: 00FF30H•D2
PTRUN1: 00FF31H•D2
PTRUN2: 00FF38H•D2
PTRUN3: 00FF39H•D2
PTRUN4: 00FFB0H•D2
PTRUN5: 00FFB1H•D2
PTRUN6: 00FFB8H•D2
PTRUN7: 00FFB9H•D2
Controls the RUN/STOP of the counter.
When "1" is written: RUN
When "0" is written: STOP
Reading: Valid
The counter of Timer x starts down-counting by
writing "1" to the PTRUNx register and stops by
writing "0".
In STOP status, the counter data is maintained
until it is preset or the counter restarts. When
STOP status changes to RUN status, the counter
resumes counting from the data maintained.
In the 16-bit mode, the timers are controlled with
the PTRUN(L) register, and the PTRUN(H) register
is fixed at "0".
At initial reset, this register is set to "0" (STOP).
PTOUT0: 00FF30H•D3
PTOUT1: 00FF31H•D3
PTOUT2: 00FF38H•D3
PTOUT3: 00FF39H•D3
Controls the output of the TOUT signal.
When "1" is written: TOUT signal output
When "0" is written: DC output
Reading: Valid
The PTOUTx is the output control register for the
TOUTx signal (Timer x output clock). When
PTOUT0 or PTOUT1 is set to "1", the TOUT0 or
TOUT1 signal is output from the P14 port terminal.
When PTOUT2 or PTOUT3 is set to "1", the TOUT2
or TOUT3 signal is output from the P15 port
terminal. When "0" is set, P14/P15 is set for DC
output.
At this time, settings of the I/O control register
IOC14/IOC15 and data register P14D/P15D
become invalid.
In the 16-bit mode, the timers are controlled with
the PTOUT(H) register, and the PTOUT(L) register
is fixed at "0".
At initial reset, this register is set to "0" (DC
output).
Note: If PTOUT0 and PTOUT1 are set to "1" at the
same time, PTOUT1 is effective. Similarly, if
PTOUT2 and PTOUT3 are set to "1",
PTOUT3 is effective. Furthermore, if the
programmable timer is set in 16-bit mode,
the TOUT0 and TOUT2 signals cannot be
output.
RPTOUT2: 00FF38H•D4
RPTOUT3: 00FF39H•D4
_________
Controls the output of the TOUT signal.
When "1" is written:
_________
TOUT signal output
When "0" is written: DC output
Reading: Valid
The RPTOUTx is the output control register for the
___________
TOUTx signal (Timer x inverted output clock).
When RPTOUT2 or RPTOUT3 is set to "1", the
___________ ___________
TOUT2 or TOUT3 signal is output from the P17
port terminal. When "0" is set, P17 is set for DC
output.
At this time, settings of the I/O control register
IOC17 and data register P17D become invalid.
In the 16-bit mode, the timers are controlled with
the RPTOUT3 register, and the RPTOUT2 register is
fixed at "0".
At initial reset, this register is set to "0" (DC
output).
Note: If RPTOUT2 and RPTOUT3 are set to "1" at
the same time, RPTOUT3 is effective.
PPT0, PPT1: 00FF21H•D2, D3
PPT2, PPT3: 00FF21H•D4, D5
PPT4, PPT5: 00FF2AH•D0, D1
PPT6, PPT7: 00FF2AH•D2, D3
Sets the priority level of the programmable timer
interrupt.
PPT0–PPT1, PPT2–PPT3, PPT4–PPT5, and PPT6–
PPT7 are the interrupt priority register
corresponding to Timers 0–1, Timers 2–3, Timers 4–
5, and Timers 6–7, respectively.
Table 5.10.9.2 shows the interrupt priority level
which can be set by this register.
Table 5.10.9.2 Interrupt priority level settings
PPT7
PPT5
PPT3
PPT1
PPT6
PPT4
PPT2
PPT0
Interrupt priority level
1
1
0
0
1
0
1
0
Level 3 (IRQ3)
Level 2 (IRQ2)
Level 1 (IRQ1)
Level 0 (None)
At initial reset, this register is set to "0" (level 0).