CHAPTER 4 I/O PORTS

4.2Port 0

Port 0 is a general-purpose I/O port and may also serve as peripheral inputs. The pins of this port can be used for peripherals or normal port function that can be selected according to the setting of a bit corresponding to the pin on a specific register.

This section mainly explains the general-purpose I/O function of the port.

This section also describes the structure, pins, and associated registers of port 0 and provides a block diagram of pins.

Structure of Port 0

Port 0 comprises the following four elements:

General-purpose I/O pins, external interrupt 2, and analog input pins (P00/INT20/AN4 to P07/INT27)

Port 0 data register (PDR0)

Port 0 data direction register (DDR0)

Port 0 pull-up setting register (PUL0)

Pins of Port 0

Port 0 has eight general-purpose I/O pins. When used as input pins at the same time, these pins can be also used as external interrupt input pins.

Table 4.2-1 lists the pins of port 0.

Table 4.2-1 Pins of Port 0

Port

Pin name

Function

 

Peripherals for which a pin

Input and output form

Circuit

 

 

 

name

 

 

may serve

Input

Output

type

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P00 general-

 

 

: external interrupt input 20

 

 

 

 

 

 

 

 

 

INT20

 

 

 

 

P00/INT20/AN4

 

 

 

 

purpose I/O

 

AN4

: analog input 4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P01 general-

 

 

: external interrupt input 21

 

 

 

 

 

 

 

 

 

INT21

 

 

 

 

P01/INT21/AN5

 

 

 

 

purpose I/O

 

AN5

: analog input 5

Analog CMOS

 

 

 

 

 

 

 

 

 

 

G

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

hysteresis

 

 

 

 

 

 

 

P02 general-

 

INT22

: external interrupt input 22

 

 

 

P02/INT22/AN6

 

 

 

 

 

purpose I/O

 

AN6

: analog input 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P03 general-

 

 

: external interrupt input 23

 

 

 

 

 

 

 

 

 

INT23

 

 

 

 

P03/INT23/AN7

 

 

 

 

purpose I/O

 

AN7

: analog input 7

 

 

 

Port 0

 

 

 

 

 

 

 

CMOS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P04 general-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P04/INT24

INT24 : external interrupt input 24

 

 

 

 

purpose I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P05 general-

 

 

 

 

 

 

 

P05/INT25

INT25 : external interrupt input 25

 

 

 

 

purpose I/O

 

CMOS

 

 

 

 

 

 

 

 

 

 

 

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P06 general-

 

 

 

hysteresis

 

 

 

 

 

 

 

 

 

 

 

 

 

P06/INT26

 

INT26 : external interrupt input 26

 

 

 

 

purpose I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P07 general-

 

 

 

 

 

 

 

P07/INT27

INT27 : external interrupt input 27

 

 

 

 

purpose I/O

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

For circuit type, see Section "1.7 Pin Functions Description " and "1.8 I/O Circuit Types ".

For pin operation when used as analog input, see "CHAPTER 12 A/D CONVERTER ".

78

Page 94
Image 94
Fujitsu MB89202, F202RA manual Pins of Port

F202RA, MB89202 specifications

The Fujitsu MB89202 and F202RA microcontrollers are part of the 16-bit microcontroller family, renowned for their robust performance and versatility in a variety of embedded system applications. These devices are tailored for high-efficiency operation across diverse industries, including automotive, consumer electronics, and industrial automation.

One of the main features of the MB89202 is its powerful CPU core, which operates at a clock speed of up to 20 MHz. This enables the microcontroller to perform complex calculations and consumer-grade applications seamlessly. The architecture is designed to handle multiple tasks effectively, making it suitable for real-time operations.

Memory capacity is a vital characteristic of the MB89202, featuring on-chip RAM and ROM configurations. The microcontroller can accommodate different memory variants, providing developers with flexibility in memory allocation based on their application requirements. This adaptability facilitates applications ranging from simple control systems to complex data processing tasks.

The F202RA variant extends the capabilities of the MB89202 by integrating advanced peripheral functions. It includes built-in timers, A/D converters, and serial communication interfaces, which are essential for interfacing with other hardware components or sensors. The availability of these peripherals reduces the need for additional external circuits, thus contributing to a more compact and cost-effective design.

In terms of power management, the MB89202 series employs advanced power-saving technologies. The microcontroller offers various low-power modes, enabling devices to conserve energy during idle times, making it highly suitable for battery-operated applications. This characteristic not only enhances the efficiency of devices but also extends their operational lifespan.

Moreover, the Fujitsu MB89202 series incorporates robust protection features, including watchdog timers and failure detection mechanisms. These safety features ensure reliable operation in critical systems, making them a preferred choice in applications where failure is not an option.

The MB89202 and F202RA microcontrollers also support a range of development tools and environments, including integrated development environments (IDEs) and software libraries, which facilitate rapid application development. With these tools, developers can efficiently prototype, debug, and optimize their applications.

In summary, the Fujitsu MB89202 and F202RA microcontrollers stand out with their efficient performance, extensive memory options, integrated peripherals, and power-saving capabilities, making them ideal for a wide array of embedded applications. Their reliability and robustness further enhance their attractiveness for designers seeking advanced microcontroller solutions.