I/O Memory Of Output Ports - Epson S1C63454 Technical Manual

Table of Contents

Advertisement

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.
Register
Address
D3
D2
FOUTE
0
FOFQ1 FOFQ0
FF06H
R/W
R
R03HIZ R02HIZ R01HIZ R00HIZ
FF30H
R/W
R03
R02
FF31H
R/W
CHSEL PTOUT CKSEL1 CKSEL0
FFC1H
R/W
*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
the output port terminal goes low (V
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".
34
Table 4.5.5.1 Control bits of output ports
∗1
D1
D0
Name Init
FOUTE
0
∗3
∗2
0
FOFQ1
0
R/W
FOFQ0
0
R03HIZ
0
R02HIZ
0
R01HIZ
0
R00HIZ
0
R03
1
R01
R00
R02
1
R01
1
R00
1
CHSEL
0
PTOUT
0
CKSEL1
0
CKSEL0
0
).
SS
1
0
Enable Disable FOUT output enable
Unused
FOUT
frequency
selection
High-Z
Output
R03 output high impedance control (FOUTE=0)
FOUT output high impedance control (FOUTE=1)
High-Z
Output
R02 output high impedance control (PTOUT=0)
TOUT output high impedance control (PTOUT=1)
High-Z
Output
R01 output high impedance control
High-Z
Output
R00 output high impedance control
High
Low
R03 output port data (FOUTE=0) Fix at "1" when FOUT is used
High
Low
R02 output port data (PTOUT=0) Fix at "1" when TOUT is used
High
Low
R01 output port data
High
Low
R00 output port data
Timer1
Timer0
TOUT output channel selection
On
Off
TOUT output control
OSC3
OSC1
Prescaler 1 source clock selection
OSC3
OSC1
Prescaler 0 source clock selection
EPSON
Comment
[FOFQ1, 0]
0
1
Frequency
f
/64
f
/8
OSC1
OSC1
), and when "0" is written,
DD
S1C63454 TECHNICAL MANUAL
2
3
f
f
OSC1
OSC3

Advertisement

Table of Contents
loading

Table of Contents