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

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

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
0
0
FF32H
R
R13
R12
FF33H
R/W
0
0
FF34H
R
R23
R22
FF35H
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)
R1HIZ:
R1 port high impedance control register (FF32H•D0)
R2HIZ:
R2 port high impedance control register (FF34H•D0)
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".
S1C6P366 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Output Ports)
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
∗3
∗2
0
0
R1HIZ
∗3
∗2
0
∗3
∗2
0
R/W
R1HIZ
0
R13
1
R11
R10
R12
1
R11
1
R10
1
∗3
∗2
0
0
R2HIZ
∗3
∗2
0
∗3
∗2
0
R/W
R2HIZ
0
R23
1
R21
R20
R22
1
R21
1
R20
1
CHSEL
0
PTOUT
0
CKSEL1
0
CKSEL0
0
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
Unused
Unused
Unused
High-Z
Output
R1 output high impedance control
High
Low
High
Low
R10–R13 output port data
High
Low
High
Low
Unused
Unused
Unused
High-Z
Output
R2 output high impedance control
High
Low
High
Low
R20–R23 output port data
High
Low
High
Low
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
2
3
f
f
OSC1
OSC3
37

Advertisement

Table of Contents
loading

Table of Contents