
151
CHAPTER 5 I/O PORTS
5.2
Block Diagram of Basic I/O Port
This section provides a block diagram of a basic I/O port.
■
Block diagram of basic I/O port
Figure 5.2-1 "Block diagram of I/O ports" shows the basic configuration of the I/O ports.
Figure 5.2-1 Block diagram of I/O ports
I/O ports contain a port data register (PDR) and a data direction register (DDR).
•
Input mode (DDR = 0):
PDR read: The level of the corresponding external pin is read.
PDR write: The setting value is written to the PDR.
•
Output mode (DDR = 1):
PDR read: The value of the PDR is read.
PDR write: The value of the PDR is output to the corresponding pin.
The ports that have these functions are P20 to P27, P30 to P37, P40 to P47, P50 to P57, P80 to
P86, PE0 to PE7, PF0 to PF4, PG0 to PG5, PK0 to PK7, and PL0 to PL7.
Note:
•
The analog input control register of port-K (AICK) is used for control of switching between
using the analog pins (A/D) as resources or ports. AICK controls whether port K is used for
analog input or as general-purpose port.
0: General-purpose port
1: Analog input (A/D)
Data Bus
pin
PDR : Port Data Register
DDR : Data Direction Register
PDR read
Resource input
Resource output
Resource output
enabled
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......