
36
EPSON
S1C63808 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
10
FF06H
FOUTE SWDIR FOFQ1 FOFQ0
R/W
FOUTE
SWDIR
FOFQ1
FOFQ0
0
Enable
Disable FOUT output enable
Stopwatch direct input switch
0: K00=Run/Stop, K01=Lap
1: K00=Lap, K01=Run/Stop
FOUT
frequency
selection
0
fOSC1/64
1
fOSC1/8
2
fOSC1
3
fOSC3
[FOFQ1, 0]
Frequency
FF32H
000
R1HIZ
RR/W
0 3
R1HIZ
– 2
0Hi-Z
Output
Unused
R10–R13 Hi-Z control
FF33H
R13
R12
R11
R10
R/W
R13
R12
R11
R10
0
High
Low
R10–R13 output port data
CHSEL0
PTOUT
CKSEL1
CKSEL0
0
Timer 1
On
OSC3
Timer 0
Off
OSC1
TOUT output selection
TOUT output control
Prescaler 1 source clock selection
Prescaler 0 source clock selection
R/W
FFC1H
CHSEL0 PTOUT CKSEL1 CKSEL0
FF6CH
ENRTM ENRST
ENON
BZE
R/W
W
R/W
ENRTM
ENRST3
ENON
BZE
0
Reset
0
1 sec
Reset
On
Enable
0.5 sec
Invalid
Off
Disable
Envelope releasing time selection
Envelope reset (writing)
Envelope On/Off
Buzzer output enable
FF6DH
0
BZSTP BZSHT SHTPW
RW
R/W
0 3
BZSTP3
BZSHT
SHTPW
– 2
0
Stop
Trigger
Busy
125 msec
Invalid
Ready
31.25 msec
Unused
1-shot buzzer stop (writing)
1-shot buzzer trigger (writing)
1-shot buzzer status (reading)
1-shot buzzer pulse width setting
FF30H
R03HIZ R02HIZ R01HIZ R00HIZ
R/W
R03HIZ
R02HIZ
R01HIZ
R00HIZ
0
Hi-Z
Output
R03 (FOUTE=0)/FOUT (FOUTE=1) Hi-Z control
R02 (PTOUT=0)/TOUT (PTOUT=1) Hi-Z control
R01 (BZE=0)/BZ (BZE=1) Hi-Z control
R00 Hi-Z control
FF31H
R03
R02
R01
R00
R/W
R03
R02
R01
R00
0
High
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 (BZE=0) Fix at "1" when BZ is used.
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)
R1HIZ: R1 port high impedance control register (FF32HD0)
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 R01, R02 and R03 are used for special output (BZ, TOUT, FOUT), fix the R01HIZ
register, R02HIZ register and the R03HIZ register at "0" (data output).
At initial reset, these registers are set to "0".