參數(shù)資料
型號: S1C60N04D
元件分類: 微控制器/微處理器
英文描述: 4-BIT, MROM, 2 MHz, MICROCONTROLLER, UUC48
封裝: DIE-48
文件頁數(shù): 15/50頁
文件大?。?/td> 372K
代理商: S1C60N04D
16
EPSON
S1C60N04 TECHNICAL MANUAL
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (I/O Ports)
4.5 I/O Ports (P00–P03)
4.5.1 Configuration of I/O port
The S1C60N04 has a 4-bit general-purpose I/O port. Figure 4.5.1.1 shows the configuration of the I/O
port. The four bits of the I/O port P00–P03 can be set to either input mode or output mode. The mode can
be set by writing data to the I/O control register (IOC).
Address
Register
Input
control
I/O control
register
(IOC)
Data
bus
P0x
Vss
Fig. 4.5.1.1 Configuration of I/O port
4.5.2 I/O control register and I/O mode
Input or output mode can be set for the four bits of I/O port P00–P03 by writing data into I/O control
register IOC.
To set the input mode, 0 is written to the I/O control register. When an I/O port is set to input mode, its
impedance becomes high and it works as an input port. However, the input line is pulled down when
input data is read.
The output mode is set when 1 is written to the I/O control register (IOC). When an I/O port set to
output mode works as an output port, it outputs a high signal (VDD) when the port output data is 1, and
a low signal (VSS) when the port output data is 0.
After an initial reset, the I/O control register is set to 0, and the I/O port enters the input mode.
4.5.3 Mask option
The output specification during output mode (IOC = 1) of the I/O port can be set with the mask option
for either complementary output or Pch open drain output. This setting can be performed for each bit of
the I/O port. However, when Pch open drain output has been selected, voltage in excess of the supply
voltage must not be applied to the port.
4.5.4 I/O memory of I/O port
Table 4.5.4.1 lists the I/O port control bits and their addresses.
Table 4.5.4.1 I/O port control bits
Address
Comment
D3
D2
Register
D1
D0
Name
Init 1
10
0FCH
000
IOC
RR/W
0 3
IOC
2
0
Output
Input
Unused
I/O port I/O control
0F6H
P03
P02
P01
P00
R/W
P03
P02
P01
P00
2
High
Low
P0 I/O port data
1
2
Initial value at initial reset
Not set in the circuit
3
4
Always "0" being read
Reset (0) immediately after being read
相關(guān)PDF資料
PDF描述
S1C60N08D 4-BIT, MROM, 0.032768 MHz, MICROCONTROLLER, UUC96
S1C60N08F0A0100 MICROCONTROLLER, PQFP100
S1C621C0D 4-BIT, MROM, 1.3 MHz, MICROCONTROLLER, UUC74
S1C62480D 4-BIT, MROM, 2.3 MHz, MICROCONTROLLER, UUC135
S1C62440F 4-BIT, MROM, 2.3 MHz, MICROCONTROLLER, PQFP128
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
S1C60N05 制造商:EPSON 制造商全稱:EPSON 功能描述:4-bit Single Chip Microcomputer
S1C60N08 制造商:EPSON 制造商全稱:EPSON 功能描述:4-bit Single Chip Microcomputer
S1C60N16 制造商:EPSON 制造商全稱:EPSON 功能描述:4-bit Single Chip Microcomputer
S1C60R08 制造商:EPSON 制造商全稱:EPSON 功能描述:4-bit Single Chip Microcomputer
S1C63004 制造商:EPSON 制造商全稱:EPSON 功能描述:CMOS 4-bit Single Chip Microcontroller