S1C60N16 TECHNICAL MANUAL
EPSON
27
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Output Ports)
4.5.3 Control of output ports
Table 4.5.3.1 lists the output ports' control bits and their addresses.
Table 4.5.3.1 Control bits of output ports
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
10
2EBH
R03
R02
R01
R00
R/W
R03
R02
R01
R00
0
High
Low
Output port (R03)
Output port (R02)
Output port (R01)
Output port (R00)
2ECH
R13
R12
R11
SIOF
R10
R/W
R
R/W
R13
R12
R11
SIOF
R10
0
High/On
High
Run
High/On
Low/Off
Low
Stop
Low/Off
Output port (R13)/BZ output control
Output port (R12)/FOUT output control
Output port (R11)
Output port (SIOF)
Output port (R10)/BZ output 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
5 Undefined
R00–R03, R10–R13 (when DC output): Output port data (2EBH, 2ECH)
Sets the output data for the output ports.
When "1" is written : High output
When "0" is written : Low output
Read-out : Valid
The output port terminals output the data written in the corresponding registers (R00–R03, R10–R13)
without changing it. When "1" is written in the register, the output port terminal goes high (VDD), and
when "0" is written, the output port terminal goes low (VSS).
At initial reset, all registers are set to "0".
R10, R13 (when BZ and BZ output is selected): Buzzer output control (2ECHD0 and D3)
These bits control the output of the buzzer signals (BZ, BZ).
When "1" is written : Buzzer signal is output
When "0" is written : Low level (DC) is output
Read-out : Valid
BZ is output from terminal R13. With the mask option, selection can be made perform this output control
by R13, or to perform output control simultaneously with BZ by R10.
When R13 controls BZ output
BZ output and BZ output can be controlled independently. BZ output is controlled by writing data to
R10, and BZ output is controlled by writing data to R13.
When R10 controls BZ output
BZ output and BZ output can be controlled simultaneously by writing data to R10 only. For this case,
R13 can be used as a one-bit general register having both read and write functions, and data of this
register exerts no affect on BZ output (output from the R13 pin).
At initial reset, registers R10 and R13 are set to "0".
R11 (when SIOF output is selected): Serial interface status (2ECHD1)
Indicates the running status of the serial interface.
When "1" is read out : RUN
When "0" is read out : STOP
Writing : Valid
See Section 4.7, "Serial Interface", for details of SIOF.
This bit is exclusively for reading out, so data cannot be written to it.