
S1C621C0 TECHNICAL MANUAL
EPSON
17
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Input Ports)
4.4 Input Ports (K00–K03, K10–K13)
4.4.1 Configuration of input ports
The S1C621C0 has 8 bits (4-bit
× 2) general-purpose input ports. Each of the input port terminals (K00–K03,
K10–K13) provides internal pull up resistor. Pull up resistor can be selected for each bit with the mask
option.
Figure 4.4.1.1 shows the configuration of input port.
Fig. 4.4.1.1 Configuration of input port
Each of the input port terminals is directly connected to the data bus via a 3-state buffer, and the status of
the input signal at the time of the input port reading is loaded as an input data.
4.4.2 Mask option
Internal pull up resistor can be selected for each of the 8 bits of the input ports (K00–K03, K10–K13) with
the input port mask option.
Selection of "With pull up resistor" with the mask option suits input from the push switch, key matrix, and
so forth.
When input ports are changed from low to high by pull up resistor, the rise of the waveform is delayed on
account of the time constant of the pull up resistor and input gate capacitance. Hence, when fetching input
ports, set an appropriate wait time.
Particular care needs to be taken of the key scan during key matrix configuration.
Make this waiting time the amount of time or more calculated by the following expression.
Waiting time = RIN
× (CIN + load capacitance on board) × 1.6 [sec]
RIN: pull up resistance (Max. value)
CIN: terminal capacitance (Max. value)
When "Gate direct" is selected, the port can be used for slide switch input and interfacing with other LSIs.
In this case, take care that the floating status does not occur for the input.
Select "With pull up resistor" for input ports that are not being used.
Input interrupt
circuit
VDD
VSS
Data
bus
Kxx
Address
Mask
option