Overview Of I/O Ports; Table 4.1-1 Port Function - Fujitsu F2MC-8L Series Hardware Manual

8-bit microcontroller
Hide thumbs Also See for F2MC-8L Series:
Table of Contents

Advertisement

CHAPTER 4 I/O PORTS
4.1

Overview of I/O Ports

The I/O ports consist of five ports (36 pins) including output-only ports and general-
purpose I/O ports (parallel I/O ports).
The ports also serve as resource pins (I/O pins of peripheral functions).
I/O Port Functions
The functions of the I/O ports are to output data from the CPU to the I/O pins and to fetch
signals input to the I/O pins into the CPU. Input and output are performed via the port data
registers (PDR). Also, for certain ports the direction of each I/O pin can be individually set to
either input or output for each bit by the port data direction register (DDR).
The following lists the function of each port and the peripheral with which the ports also serve
as.
Port 0: General-purpose I/O port. (Also serve as external interrupt 2 pins in the MB89120A
series only.)
Port 1: General-purpose I/O port.
Port 2: Output-only port.
Port 3: General-purpose I/O port. Also serves as peripherals (serial I/O, external interrupts,
timer, and buzzer pins).
Port 4: Output-only port.
Table 4.1-1 lists the functions of each port and Table 4.1-2 lists the registers for each port.

Table 4.1-1 Port Function

Port
Pin
Input
name
type
P00 to
P07
(P00/
Port 0
INT20
to P07/
INT27)
2
CMOS*
P10 to
Port 1
P17
P20 to
Port 2
P27
P30/
SCK to
P37/BZ
CMOS
(P30/
Port 3
(hystere
SCK to
sis)
P37/
BZ/
RCO)
98
Output
Function
Bit 7
type
General-
purpose I/O
P07
port
(External
(INT27)
interrupt 2)
General-
purpose I/O
P17
port
CMOS
push-
pull
Output-only
P27
port
General-
purpose I/O
P37
port
BZ
Peripherals
(BZ/
RCO)
Bit 6
Bit 5
P06
P05
(INT26)
(INT25)
P16
P15
P26
P25
P36
P35
INT2
INT0
Bit 4
Bit 3
Bit 2
P04
P03
P02
(INT24)
(INT23)
(INT22)
P14
P13
P12
P24
P23
P22
P34
P33
P32
TO/
EC/
SI
1
INT1
SCO*
Bit 1
Bit 0
P01
P00
(INT21)
(INT20)
P11
P10
P21
P20
P31
P30
SO
SCK

Advertisement

Table of Contents
loading

Table of Contents