
150
CHAPTER 5 I/O PORTS
5.1
Overview of I/O Ports
This section provides I/O port block diagrams for the device and an outline of
registers.
■
I/O port block diagrams
The MB91150 supports using a pin as an I/O port when the pin is not set to be used for input or
output of the resource corresponding to the pin.
When a pin is set to be used as input port, the level of the pin is read as the read value of the
port (PDR). When a pin is set to be used as output port, the value of a data register is used as
read value. This applies also to the read value for read modify write operations.
Before the pin setting is changed from input to output, the output data must be specified in
advance in the respective data register. Note that if an instruction of the read modify write
system (such as a bit set) is used in this situation, the data to be read is input data from a pin
instead of the latch value of the data register.
The MB91150 has the following types of I/O ports:
•
Basic I/O port
•
I/O port with pull-up resistor
•
I/O port with open-drain output function and pull-up resistor
•
I/O port with open-drain output function
■
I/O port registers
The I/O ports are configured with the following registers:
•
Port data register (PDR)
•
Data direction register (DDR)
•
Pull-up resistor control register (PCR)
•
Open-drain control register (ODCR)
•
Analog input control register (AICR)
Summary of Contents for MB91150 Series
Page 1: ......
Page 2: ......
Page 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Page 4: ......
Page 10: ...vi ...
Page 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Page 178: ...162 CHAPTER 5 I O PORTS ...
Page 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Page 240: ...224 CHAPTER 8 PPG TIMER ...
Page 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Page 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Page 362: ...346 CHAPTER 15 UART ...
Page 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Page 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Page 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 510: ...494 INDEX ...
Page 512: ......