34
EPSON
S1C63454 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Output Ports)
4.5.5 I/O memory of output ports
Table 4.5.5.1 shows the I/O addresses and control bits for the output ports.
Table 4.5.5.1 Control bits of output ports
Address
Comment
D3
D2
Register
D1
D0
Name
Init
∗
1
1
0
FF06H
FOUTE
0
FOFQ1 FOFQ0
R/W
R
R/W
FOUTE
0
∗
3
FOFQ1
FOFQ0
0
–
∗
2
0
0
Enable
Disable
FOUT output enable
Unused
FOUT
frequency
selection
CHSEL
PTOUT
CKSEL1
CKSEL0
0
0
0
0
Timer1
On
OSC3
OSC3
Timer0
Off
OSC1
OSC1
TOUT output channel selection
TOUT output control
Prescaler 1 source clock selection
Prescaler 0 source clock selection
R/W
FFC1H
CHSEL PTOUT CKSEL1 CKSEL0
0
f
OSC1
/64
1
f
OSC1
/8
2
f
OSC1
3
f
OSC3
[FOFQ1, 0]
Frequency
FF30H
R03HIZ R02HIZ R01HIZ R00HIZ
R/W
R03HIZ
R02HIZ
R01HIZ
R00HIZ
0
0
0
0
High-Z
High-Z
High-Z
High-Z
Output
Output
Output
Output
R03 output high impedance control (FOUTE=0)
FOUT output high impedance control (FOUTE=1)
R02 output high impedance control (PTOUT=0)
TOUT output high impedance control (PTOUT=1)
R01 output high impedance control
R00 output high impedance control
FF31H
R03
R02
R01
R00
R/W
R03
R02
R01
R00
1
1
1
1
High
High
High
High
Low
Low
Low
Low
R03 output port data (FOUTE=0) Fix at "1" when FOUT is used
R02 output port data (PTOUT=0) Fix at "1" when TOUT is used
R01 output port data
R00 output port data
*1 Initial value at initial reset
*2 Not set in the circuit
*3 Constantly "0" when being read
R00HIZ–R03HIZ: R0 port high impedance control register (FF30H)
Controls high impedance output of the output port.
When "1" is written: High impedance
When "0" is written: Data output
Reading: Valid
By writing "0" to the high impedance control register, the corresponding output terminal outputs accord-
ing to the data register. When "1" is written, it shifts into high impedance status.
When the output ports R02 and R03 are used for special output (TOUT, FOUT), fix the R02HIZ register
and the R03HIZ register at "0" (data output).
At initial reset, these registers are set to "0".
R00–R03: R0 output port data register (FF31H)
Set the output data for the output ports.
When "1" is written: High level output
When "0" is written: Low level output
Reading: Valid
The output port terminals output the data written in the corresponding data registers without changing
it. When "1" is written to the register, the output port terminal goes high (V
DD
), and when "0" is written,
the output port terminal goes low (V
SS
).
When the output ports R02 and R03 are used for special output (TOUT, FOUT), fix the R02 register and
the R03 register at "1".
At initial reset, these registers are all set to "1".