|
UPD78F9234MC-5A4-A Datasheet, PDF (71/419 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents | |||
|
◁ |
CHAPTER 4 PORT FUNCTIONS
(3) Port mode control register 2 (PMC2)
This register specifies the port mode or A/D converter mode.
Each bit of the PMC2 register corresponds to each pin of port 2 and can be specified in 1-bit units.
PMC2 is set by using a 1-bit or 8-bit memory manipulation instruction.
Generation of reset signal sets PMC2 to 00H.
Figure 4-17. Format of Port Mode Control Register 2
Address: FF84H After reset: 00H R/W
Symbol
7
6
5
PMC2
0
0
0
4
3
2
1
0
0
PMC23
PMC22
PMC21
PMC20
PMC2n
0
1
Port mode
A/D converter mode
Specification of operation mode (n = 0 to 3)
Caution When PMC20 to PMC23 are set to 1, the P20/ANI0 to P23/ANI3 pins cannot be used as port
pins. Moreover, be sure to set the pull-up resistor option registers (PU20 to PU23) to 0 for
the pins set to A/D converter mode.
Table 4-3. Setting of Port Mode Register, Port Register (Output Latch), and Port Mode Control Register
When Alternate Function Is Used
Port Name
Alternate-Function Pin
Name
I/O
PMÃÃ
PÃÃ
PMC2n
(n = 0 to 3)
P20 to P23
ANI0 to ANI3
Input
1
Ã
1
P30
TI000
Input
1
Ã
â
INTP0
Input
1
Ã
â
P31
TO00
Output
0
0
â
TI010
Input
1
Ã
â
INTP2
Input
1
Ã
â
P41
INTP3
Input
1
Ã
â
P42
TOH1
Output
0
0
â
P43
TxD6
Output
0
1
â
INTP1
Input
1
Ã
â
P44
RxD6
Input
1
Ã
â
Remark
Ã:
donât care
PMÃÃ: Port mode register, PÃÃ: Port register (output latch of port)
PMC2Ã: Port mode control register
Userâs Manual U17446EJ5V0UD
69
|
▷ |