
S1C6N3B0 TECHNICAL MANUAL
EPSON
23
CHAPTER 4: PERIPHERAL CIARCUITS AND OPERATION (Output Ports)
4.4.4 Control of output ports
Table 4.4.4.1 shows the output port control bits and their addresses.
Table 4.4.4.1 I/O memory (Output port)
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
10
0F3H
R03
R02
R01
BUZZER
R00
FOUT
BUZZER
R/W
R03
R02
R01
BUZZER
R00
FOUT
BUZZER
1
High
Off
High
Off
Low
On
Low
On
R03 output port data
R02 output port data
R01 output port data
Buzzer output On/Off control
R00 output port data
FOUT output On/Off control
Buzzer inverted output On/Off control
0FDH
XBZR
0
XFOUT1 XFOUT0
R/W
R
R/W
XBZR
0 3
XFOUT1
XFOUT0
0
– 2
0
fBZL
–
fBZH
–
Buzzer frequency control (in 32 kHz: fBZL=2 kHz, fBZH=4 kHz)
Unused
FOUT frequency control
0: F1, 1: F2, 2: F3, 3: F4
1
2
Initial value at initial reset
Not set in the circuit
3
4
Always "0" being read
Reset (0) immediately after being read
R00–R03: Output port data (0F3H)
Sets the output data for the output ports.
When "1" is written: High output
When "0" is written: Low output
Reading: Valid
The output port terminals output the data written to the corresponding registers (R00–R03) without
changing it. When "1" is written to the register, the output port terminal goes high (VDD), and when "0" is
written, the output port terminal goes low (VSS).
At initial reset, these registers are all set to "1".
R00 (when FOUT is selected): Special output control (0F3H D0)
Controls the FOUT (clock) output.
When "1" is written: High level (DC) output
When "0" is written: Clock output
Reading: Valid
When "0" is written to the FOUT (R00) register, the FOUT (R00) terminal outputs the FOUT signal.
At initial reset, this register is set to "1".
XFOUT0, XFOUT1: FOUT frequency control (0FDH D0 and D1)
Selects the output frequency when the R00 port is set for FOUT output.
Table 4.4.4.2 FOUT frequency selection
XFOUT1
0
1
XFOUT0
0
1
0
1
Frequency selected
F1
F2
F3
F4
At initial reset, these registers are set to "0".