
169
Chapter 4
Port Functions
User’s Manual U16702EE3V2UD00
4.4 Port Function Operation
The port operation differs according to the I/O mode settings, as follows.
4.4.1 Write to I/O ports
(1)
Output mode
Values are written to output latches using transfer instructions. Moreover, the output latch contents
are output to the pin. Once data has been written to an output latch, it is held until data is newly
written to that output latch.
(2)
Input mode
Values are written to output latches using transfer instructions. However, since the output buffer is
off, the status of the pin does not change.
Once data has been written to an output latch, it is held until data is newly written to that output
latch.
Caution:
In the case of a 1-bit memory manipulation instruction, the manipulation target is 1
bit, but the port is accessed in 8-bit units. Therefore, for ports where input and output
are mixed, the contents of output latches of pins specified for input other than the
manipulation target bit become undefined.
4.4.2 Read from I/O port
(1)
Output mode
The contents of the output latch are read using a transfer instruction. The contents of the output
latch do not change.
(2)
Input mode
The pin status is read using a transfer instruction. The contents of the output latch do not change.
4.4.3 I/O
port
calculation
(1)
Output port
Calculation for the output latch contents is performed and the result is written to the output latch.
The output latch contents are output to the pin.
Once data has been written to an output latch, it is held until data is newly written to that output
latch.
(2)
Input mode
The output latch contents become undefined. However, since the output buffer is off, the pin status
does not change.
Caution:
In the case of a 1-bit memory manipulation instruction, the manipulation target is 1
bit, but the port is accessed in 8-bit units. Therefore, for ports where input and output
are mixed, the contents of output latches of pins specified for input other than the
manipulation target bit become undefined.
electronic components distributor
Содержание V850E/RS1
Страница 6: ...6 User s Manual U16702EE3V2UD00 Downloaded from Elcodis com electronic components distributor...
Страница 206: ...206 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 232: ...232 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 366: ...366 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 402: ...402 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 684: ...684 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 766: ...766 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 798: ...798 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 832: ...832 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 834: ...834 User s Manual U16702EE3V2UD00 MEMO Downloaded from Elcodis com electronic components distributor...
Страница 848: ...848 User s Manual U16702EE3V2UD00 Downloaded from Elcodis com electronic components distributor...
Страница 852: ...Downloaded from Elcodis com electronic components distributor...