
164
CHAPTER 9 I/O PORT
9.1
Overview of I/O Port
An I/O port can be used as a general-purpose I/O port (parallel I/O port). The MB90460/
465 series has 7 ports (51 lines). The ports are also used for resource I/O pins
(peripheral function I/O pins).
■
I/O Port Functions
Each I/O port outputs data from the CPU to the I/O pins or inputs signals from the I/O pins to the CPU as
directed by the port data register (PDR). Each I/O port can also designate the direction of a data flow
(input or output) at the I/O pins in bit units using the port data direction register (DDR). The function of
each port and the resources using it are described below:
•
Port 0: General-purpose I/O port/resource (Waveform sequencer*/PWC0*)
•
Port1: General-purpose I/O port/resource (External interrupt/Waveform
sequencer*/Waveform generator/16-bit reload timer 0)
•
Port 2: General-purpose I/O port/resource (16-bit reload timer/PWC1/Input capture)
•
Port 3: General-purpose I/O port/resource (Waveform generator/PPG1*/PPG0)
•
Port 4: General-purpose I/O port/resource (UART0/Waveform sequencer*/PPG2)
•
Port 5: General-purpose I/O port/resource (A/D converter)
•
Port6: General-purpose I/O port/resource (UART1/External interrupt)
Table 9.1-1 summarizes the functions of individual port.
Table 9.1-1 Functions of Individual Port
Port
Pin
Input form
Output
form
Function
bit
15
bit
14
bit
13
bit
12
bit
11
bit
10
bit9
bit8
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Port 0
P00/OPT0
to P07/
PWO0
CMOS
CMOS
pull-up
resistor
selectable
General
I/O port
–
–
–
–
–
–
–
–
P07
P06
P05
P04
P03
P02
P01
P00
Resource
–
–
–
–
–
–
–
–
PWO0* PWI0* OPT5* OPT4* OPT3* OPT2* OPT1* OPT0*
Port 1
P10/INT0/
DTT0 to
P17/FRCK
CMOS
(hysteresis)
General
I/O port
P17
P16
P15
P14
P13
P12
P11
P10
–
–
–
–
–
–
–
–
Resource
FRCK
INT6/
TO0
INT5/
TIN0
INT4
INT3
INT2/
DTTI1*
INT1
INT0/
DTTI0
–
–
–
–
–
–
–
–
Port 2
P20/TIN1
to P27/IN3
CMOS
General
I/O port
–
–
–
–
–
–
–
–
P27
P26
P25
P24
P23
P22
P21
P20
Resource
–
–
–
–
–
–
–
–
IN3
IN2
IN1
IN0
PWO1 PWI1
TO1
TIN1
Port 3
P30/RT00
to P37/PPG0
CMOS
General
I/O port
P37
P36
P35
P34
P33
P32
P31
P30
–
–
–
–
–
–
–
–
Resource
PPG0 PPG1* RTO5
RTO4
RTO3
RTO2
RTO1 RTO0
–
–
–
–
–
–
–
–
Port 4
P40/SIN
to P46/PPG2
CMOS
(hysteresis)
General
I/O port
–
–
–
–
–
–
–
–
–
P46
P45
P44
P43
P42
P41
P40
Resource
–
–
–
–
–
–
–
–
–
PPG2 SNI2* SNI1* SNI0* SCK0 SOT0
SIN0
Port 5
P50/AN0
to P57/AN7
Analog/
CMOS
CMOS
General
I/O port
P57
P56
P55
P54
P53
P52
P51
P50
–
–
–
–
–
–
–
–
Analog
input
AN7
AN6
AN5
AN4
AN3
AN2
AN1
AN0
–
–
–
–
–
–
–
–
Port 6
P60/SIN1
to P63/INT7
CMOS
(hysteresis)
CMOS
General
I/O port
–
–
–
–
–
–
–
–
–
–
–
–
P63
P62
P61
P60
Resource
–
–
–
–
–
–
–
–
–
–
–
–
INT7
SCK1 SOT1
SIN1
*: Pin names not applicable to MB90465 series
Summary of Contents for MB90460 Series
Page 1: ...The following document contains information on Cypress products ...
Page 3: ......
Page 5: ......
Page 9: ...iv ...
Page 41: ...22 CHAPTER 1 OVERVIEW ...
Page 45: ...26 CHAPTER 2 NOTES ON HANDLING DEVICES ...
Page 83: ...64 CHAPTER 3 CPU ...
Page 95: ...76 CHAPTER 4 RESET ...
Page 107: ...88 CHAPTER 5 CLOCK ...
Page 131: ...112 CHAPTER 6 LOW POWER CONSUMPTION MODE ...
Page 175: ...156 CHAPTER 7 INTERRUPT ...
Page 181: ...162 CHAPTER 8 MODE SETTING ...
Page 223: ...204 CHAPTER 9 I O PORT ...
Page 237: ...218 CHAPTER 10 TIME BASE TIMER ...
Page 247: ...228 CHAPTER 11 WATCHDOG TIMER ...
Page 275: ...256 CHAPTER 12 16 BIT RELOAD TIMER ...
Page 373: ...354 CHAPTER 14 MULTI FUNCTIONAL TIMER ...
Page 485: ...466 CHAPTER 16 PWC Timer ...
Page 531: ...512 CHAPTER 17 UART ...
Page 559: ...540 CHAPTER 19 DELAYED INTERRUPT GENERATOR MODULE ...
Page 589: ...570 CHAPTER 20 8 10 BIT A D CONVERTER ...
Page 601: ...582 CHAPTER 21 ROM CORRECTION FUNCTION ...
Page 633: ...614 CHAPTER 23 512K 1024K BIT FLASH MEMORY ...
Page 645: ...626 CHAPTER 24 EXAMPLE OF F2 MC 16LX MB90F462 F462A F463A CONNECTION FOR SERIAL WRITING ...
Page 715: ...696 APPENDIX ...
Page 716: ...697 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Page 739: ......