
14
EPSON
S1C60N04 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Output Ports)
FOUT (R00)
When output port R00 is set for FOUT output, this port will generate fosc (CPU operating clock fre-
quency) clock.
BUZZER, BUZZER (R01, R00)
Output ports R01 and R00 may be set to BUZZER output and BUZZER output (BUZZER reverse output),
respectively, allowing for direct driving of the piezo-electric buzzer.
BUZZER output (R00) may only be set if R01 is set to BUZZER output. In such case, whether ON/OFF of
the BUZZER output is done through R00 register or is controlled through R01 simultaneously with
BUZZER output is also selected by mask option.
The frequency of buzzer output may be selected by software to be either 2 kHz or 4 kHz.
4.4.3 I/O memory of output port
Table 4.4.3.1 lists the output port control bits and their addresses.
Table 4.4.3.1 Control bits of 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
0
0FDH
XBZR
0
R/W
R
XBZR
0 3
0
– 2
2 kHz
–
4 kHz
–
Buzzer frequency control
Unused
High
On
High
On
Low
Off
Low
Off
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
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 pins output the data written to the corresponding registers (R00–R03) without changing
it. When 1 is written to the register, the output port pin goes high (VDD), and when 0 is written, the
output port pin goes low (VSS).
After an initial reset, all the registers are set to 0.
R00 (when FOUT is selected): Special output port data (0F3HD0)
Controls the FOUT (fosc clock) output.
When 1 is written: Clock output
When 0 is written: Low level (DC) output
Reading: Valid
FOUT output can be controlled by writing data to R00.
After an initial reset, this register is set to 0.
Figure 4.4.3.1 shows the output waveform for FOUT output.