90
CHAPTER 4 I/O PORTS
4.4
Port 4
Port 4 is a type of I/O port that is switched between CMOS push-pull and N-ch open-
drain and may also serve analog inputs. Each pin of this port can be used for
peripherals or normal port function that can be selected according to the setting of the
bit corresponding to the pin on a specific register.
This section explains the I/O port function of CMOS push-pull/ N-ch open-drain type.
This section also describes port 4 concerning to the structure, pins, a block diagram of
pins, and associated registers.
■
Structure of Port 4
Port 4 comprises the following four elements:
•
Type of I/O pins that are switched between CMOS push-pull and N-ch open-drain and analog input pins
(P40/AN0 to P43/AN3)
•
Port 4 data register (PDR4)
•
Port 4 data direction register (DDR4)
•
Port 4 output format setting register (OUT4)
■
Pins of Port 4
Port 4 has four I/O pins of CMOS push-pull/N-ch open-drain.
These pins can also be used as analog input pins.
Those pins that are used for analog inputs cannot be used as a general-purpose I/O port. Table 4.4-1 lists
the pins of port 4.
For circuit type, see Section "1.7 Pin Functions Description " and "1.8 I/O Circuit Types ".
Table 4.4-1 Pins of Port 4
Port
name
Pin
name
Function
Peripherals for
which the pin
may serve
Input and output form
Circuit
type
Input
Output
Port 4
P40/AN0
P40 I/O
AN0 analog input 0
CMOS
analog
CMOS push-
pull/N-ch open-
drain
F
P41/AN1
P41 I/O
AN1 analog input 1
P42/AN2
P42 I/O
AN2 analog input 2
P43/AN3
P43 I/O
AN3 analog input 3
Summary of Contents for F2MC-8L F202RA
Page 2: ......
Page 4: ......
Page 32: ...16 CHAPTER 1 OVERVIEW ...
Page 90: ...74 CHAPTER 3 CPU ...
Page 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Page 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Page 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Page 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Page 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Page 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Page 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Page 390: ...374 CHAPTER 17 FLASH MEMORY ...
Page 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 434: ...418 INDEX ...
Page 436: ......