
S1C88848 TECHNICAL MANUAL
EPSON
35
5 PERIPHERAL CIRCUITS AND THEIR OPERATIO (Output Ports)
5.5 Output Ports (R ports)
5.5.1 Configuration of output ports
The S1C88848 is equipped with 5 bits of output
ports (R26, R27, R34, R50 and R51).
Furthermore, the terminals within SEG40–SEG50
that are not used for driving an LCD can be
configured as DC output ports by mask option.
Figure 5.5.1.1 shows the basic structure (excluding
special output circuits) of the output ports.
The output specification of each port is fixed at
complementary output.
VDD
VSS
Data
bus
Rxx
Address
Data register
Address
High impedance
control register
Fig. 5.5.1.1 Structure of output ports
Each output port can be set into high impedance
state by software.
Besides normal DC output, the output ports have
special output functions. The R27, R34 and R50
functions can be selected by software and the R26
and R51 functions can be selected by mask option.
5.5.2 Mask option
R26 and R51 output port specifications
R26 .......... ■
■ DC output
_________
■
■ TOUT output
■
■ REM output
R51 .......... ■
■ DC output
_____
■
■ BZ output
SEG40–SEG50 output port specifications
SEG40 ..... ■
■ DC output
■
■ SEG output
SEG41 ..... ■
■ DC output
■
■ SEG output
SEG42 ..... ■
■ DC output
■
■ SEG output
SEG43 ..... ■
■ DC output
■
■ SEG output
SEG44 ..... ■
■ DC output
■
■ SEG output
SEG45 ..... ■
■ DC output
■
■ SEG output
SEG46 ..... ■
■ DC output
■
■ SEG output
SEG47 ..... ■
■ DC output
■
■ SEG output
SEG48 ..... ■
■ DC output
■
■ SEG output
SEG49 ..... ■
■ DC output
■
■ SEG output
SEG50 ..... ■
■ DC output
■
■ SEG output
The mask option allows selection of special outputs
for the R26 and R51 output ports as well as the DC
output.
_________
The R26 port can be configured as the TOUT output
port (TOUT signal inverted output) or REM output
(remote-control carrier output). The R51 port can be
_____
set as the BZ output port (buzzer signal inverted
output).
SEG40 to SEG50 can also be configured as general-
purpose DC output ports or LCD segment output
ports.
5.5.3 High impedance control
The output port can be high impedance controlled
in software.
A high impedance control register is set for each
output port terminal as shown below. Either
complementary output and high impedance state
can be selected with this register.
HZR26: R26 high impedance control register
HZR27: R27 high impedance control register
HZR34: R34 high impedance control register
HZR50: R50 high impedance control register
HZR51: R51 high impedance control register
HZR20: SEG50 high impedance control register
HZR21: SEG49 high impedance control register
HZR22: SEG48 high impedance control register
HZR23: SEG47 high impedance control register
HZR30: SEG46 high impedance control register
HZR31: SEG45 high impedance control register
HZR32: SEG44 high impedance control register
HZR33: SEG43 high impedance control register
HZR35: SEG42 high impedance control register
HZR36: SEG41 high impedance control register
HZR37: SEG40 high impedance control register
These registers function as a high-impedance
control register only when the corresponding
SEG terminal is configured for general-purpose
DC output. When the SEG terminal is configured
for LCD segment output, the corresponding
register becomes a general-purpose register.
When a high impedance control register HZRxx is
set to "1", the corresponding output port terminal
becomes high impedance state and when set to "0",
it becomes complementary output.
5.5.4 DC output
As Figure 5.5.1.1 shows, when "1" is written to the
output port data register, the output terminal
switches to HIGH (VDD) level and when "0" is
written it switches to LOW (VSS) level. When
output is in a high impedance state, the data
written to the data register is output from the
terminal at the instant when output is switched to
complementary.