English
Language : 

4513_03 Datasheet, PDF (108/210 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.1 I/O pins
(2) Key-on wakeup control register K0
Register K0 controls the ON/OFF of the key-on wakeup function of ports P00–P03 and P10–P13.
Set the contents of this register through register A with the TK0A instruction.
The contents of register K0 is transferred to register A with the TAK0 instruction.
Table 2.1.2 shows the key-on wakeup control register K0.
Table 2.1.2 Key-on wakeup control register K0
Key-on wakeup control register K0
at reset : 00002 at RAM back-up : state retained
Ports P12, P13
K03
key-on wakeup control bit
0 Key-on wakeup not used
1 Key-on wakeup used
Ports P10, P11
K02
key-on wakeup control bit
0 Key-on wakeup not used
1 Key-on wakeup used
Ports P02, P03
K01
key-on wakeup control bit
0 Key-on wakeup not used
1 Key-on wakeup used
Ports P00, P01
K00
key-on wakeup control bit
0 Key-on wakeup not used
1 Key-on wakeup used
Note: “R” represents read enabled, and “W” represents write enabled.
R/W
(3) A-D control register Q2
Bits 0 to 2 of register Q2 controls the pin function selection bits.
Set the contents of this register through register A with the TQ2A instruction.
The contents of register Q2 is transferred to register A with the TAQ2 instruction.
Table 2.1.3 shows the A-D control register Q2.
Table 2.1.3 A-D control register Q2
A-D control register Q2
at reset : 00002 at RAM back-up : state retained
Q23 A-D operation mode control bit
0 A-D conversion mode
1 Comparator mode
P43/AIN7, P42/AIN6 pin function
Q22
selection bit (Note 3)
0 P43, P42 (I/O) (Note 4)
1 AIN7, AIN6/P43, P42 (Output) (Note 4)
P41/AIN5 pin function selection bit 0 P41 (I/O) (Note 4)
Q21
(Note 3)
1 AIN5/P41 (Output) (Note 4)
P40/AIN4 pin function selection bit 0 P40 (I/O) (Note 4)
Q20
(Note 3)
1 AIN4/P40 (Output) (Note 4)
Notes 1: “R” represents read enabled, and “W” represents write enabled.
2: Select AIN4–AIN7 with register Q1 after setting register Q2.
3: For the 4513 Group, these bits are not used.
4: For the 4513 Group, only read/write of these bits is enabled.
5: When setting ports, Q23 is not used.
R/W
4513/4514 Group User’s Manual
2-5