CHAPTER 4 I/O PORTS

4.4.1Registers of Port 4 (PDR4)

This section describes the registers associated with port 4.

Functions of Port 4 Registers

Port 4 data register (PDR4)

The PDR4 register indicates the state of the pins. For a pin set to function as an output port, the same value

("0"or "1") as held by the output latch can be read from this register. If the pin is set to function as an input

port, however, its output latch value cannot be read from the register.

Note:

When a bit manipulation instruction (SETB, CLRB) is executed, the output latch values, not the value states of the pins, are read; thus, output latch values, excepting those for bits to be manipulated, do not change.

Table 4.4-3lists the functions of the port 4 registers.

Table 4.4-3

Functions of Port 4 Registers

 

 

 

 

 

 

 

 

 

 

 

 

Register

Data

When being read

When being written

Read/

Address

Initial

name

Write

value

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Output latch of "0" is set and

 

 

 

 

0

Pin state is "L" level.

"L" level is output to the pin

 

 

 

 

 

 

 

in output port mode.

 

 

 

Port 4

 

 

 

 

 

 

 

 

 

 

Output latch of "1" is set and

 

 

 

data

 

 

N-ch open-

 

 

 

 

 

the pin in output port mode

R/W

000FH

----XXXXB

register

 

Pin state

drain type

(PDR4)

 

 

is set at Hi-Z.

 

 

 

1

is "H"

 

 

 

 

 

 

CMOS

Output latch of "1" is set and

 

 

 

 

 

level.

 

 

 

 

 

 

push-pull

"H" level is output to the pin

 

 

 

 

 

 

type

in output port mode.

 

 

 

 

 

 

 

 

 

 

 

Port 4

 

 

 

The pin is set to function as

 

 

 

0

Input port pin

input pin with output

 

 

 

data

 

 

 

transistor operation disabled.

R/W

0010H

 

direction

 

 

 

 

----0000B

 

 

 

The pin is set to function as

register

 

 

 

 

 

 

(DDR4)

1

Output port pin

output pin with output

 

 

 

 

 

 

 

transistor operation enabled.

 

 

 

 

 

 

 

 

 

 

 

Port 4

0

N-ch open-drain type

Output format of the pin is

 

 

 

output

set to N-ch open-drain type.

 

 

 

 

 

 

 

 

 

format

 

 

 

 

R/W

0011H

----0000B

 

 

 

Output format of the pin is

setting

 

 

 

register

1

CMOS push-pull type

set to CMOS push-pull type.

 

 

 

(OUT4)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R/W : Readable and Writable

X : Undefined

92

Page 108
Image 108
Fujitsu MB89202, F202RA manual Registers of Port 4 PDR4, This section describes the registers associated with 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.