Epson S1C88655 Technical Manual page 122

Cmos 8-bit single chip microcomputer
Table of Contents

Advertisement

13 PROGRAMMABLE TIMER
PSET0: 00FF30H•D1
PSET1: 00FF31H•D1
PSET2: 00FF38H•D1
PSET3: 00FF39H•D1
PSET4: 00FF80H•D1
PSET5: 00FF81H•D1
PSET6: 00FF88H•D1
PSET7: 00FF89H•D1
Presets the reload data to the counter.
When "1" is written: Preset
When "0" is written: Invalid
Reading:
Writing "1" to PSETx presets the reload data in the
RDRx register to the counter of Timer x. When the
counter of Timer x is in RUN status, the counter
restarts immediately after presetting.
In the case of STOP status, the counter maintains
the preset data.
No operation results when "0" is written.
In the 16-bit mode, writing "1" to PSET(H) is
invalid because 16-bit data is preset by PSET(L)
only.
PSETx is only for writing, and it is always "0"
during reading.
PTRUN0: 00FF30H•D2
PTRUN1: 00FF31H•D2
PTRUN2: 00FF38H•D2
PTRUN3: 00FF39H•D2
PTRUN4: 00FF80H•D2
PTRUN5: 00FF81H•D2
PTRUN6: 00FF88H•D2
PTRUN7: 00FF89H•D2
Controls the RUN/STOP of the counter.
When "1" is written: RUN
When "0" is written: STOP
Reading:
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).
114
Always "0"
Valid
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:
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 P20 port terminal.
When PTOUT2 or PTOUT3 is set to "1", the TOUT2
or TOUT3 signal is output from the P21 port
terminal. When "0" is set, P20/P21 is set for DC
output.
At this time, settings of the I/O control register
IOC20/IOC21 and data register P20D/P21D
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:
When "0" is written: DC output
Reading:
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 P23
port terminal. When "0" is set, P23 is set for DC
output.
At this time, settings of the I/O control register
IOC23 and data register P23D 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.
EPSON
Valid
_________
_________
TOUT signal output
Valid
S1C88655 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents