參數(shù)資料
型號: m789436
廠商: NEC Corp.
元件分類: 8位微控制器
英文描述: 8-Bit Single-Chip Microcontrollers
中文描述: 8位單芯片微控制器
文件頁數(shù): 5/144頁
文件大?。?/td> 1378K
代理商: M789436
CHAPTER 4 PORT FUNCTIONS
102
User’s Manual U15075EJ1V0UM00
4.4 Port Function Operation
The operation of a port differs depending on whether the port is set in the input or output mode, as described
below.
4.4.1 Writing to I/O port
(1)
In output mode
A value can be written to the output latch of a port by using a transfer instruction. The contents of the output
latch can be output from the pins of the port.
Data once written to the output latch is retained until new data is written to the output latch.
(2)
In input mode
A value can be written to the output latch by using a transfer instruction. However, the status of the port pin
is not changed because the output buffer is OFF.
Data once written to the output latch is retained until new data is written to the output latch.
Caution
A 1-bit memory manipulation instruction is executed to manipulate 1 bit of a port.
However, this instruction accesses the port in 8-bit units.
When this instruction is
executed to manipulate a bit of an input/output port, therefore, the contents of the output
latch of the pin that is set in the input mode and not subject to manipulation become
undefined.
4.4.2 Reading from I/O port
(1)
In output mode
The status of an output latch can be read by using a transfer instruction. The contents of the output latch
are not changed.
(2)
In input mode
The status of a pin can be read by using a transfer instruction. The contents of the output latch are not
changed.
4.4.3 Arithmetic operation of I/O port
(1)
In output mode
An arithmetic operation can be performed with the contents of the output latch. The result of the operation is
written to the output latch. The contents of the output latch are output from the port pins.
Data once written to the output latch is retained until new data is written to the output latch.
(2)
In input mode
The contents of the output latch become undefined. However, the status of the pin is not changed because
the output buffer is OFF.
Caution
A 1-bit memory manipulation instruction is executed to manipulate 1 bit of a port.
However, this instruction accesses the port in 8-bit units.
When this instruction is
executed to manipulate a bit of an input/output port, therefore, the contents of the output
latch of the pin that is set in the input mode and not subject to manipulation become
undefined.
相關(guān)PDF資料
PDF描述
m789446 8-Bit Single-Chip Microcontrollers
m789456 8-Bit Single-Chip Microcontrollers
M7A3P1000-1FG144FG144 FPGA, 1000000 GATES, PBGA144
M7A3P1000-1FG144IFG144 FPGA, 1000000 GATES, PBGA144
M7A3P1000-1FG256FG256 FPGA, 1000000 GATES, PBGA256
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M7899-E 制造商:Leviton Manufacturing Co 功能描述:
M7899-HG0 制造商:Leviton Manufacturing Co 功能描述:
M-78B2.5-NZ 制造商:MAKE-PS 制造商全稱:Make-Ps 功能描述:Single Output DC/DC Converter
M-78B3.3-NZ 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Single Output DC/DC Converter,Series M-78B-NZ Up to 9.75 Watt
M-78B5.0-NZ 制造商:MAKE-PS 制造商全稱:Make-Ps 功能描述:Single Output DC/DC Converter