Fujitsu F2MCTM-16LX Hardware Manual page 187

16-bit microcontroller
Table of Contents

Advertisement

Reading the port data register
The value obtained when reading the port data register (PDR) depends on the status of the port direction
register (DDR) and status of the peripheral function connected to the pin.
The following shows the value obtained by each combination.
Value of DDR
0 (input)
1 (output)
0 (input)
1 (output)
Further, when using as input by peripheral function, set the DDR of the connected pin to "0" (input).
Output state of peripheral
function
Enabled
Enabled
Disabled
Disabled
CHAPTER 10 I/O PORTS
Reading value
Output value from peripheral
function
Output value from peripheral
function
Pin state
Value of output latch
171

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents