Table 2.1.2 Key-On Wakeup Control Register K0; Table 2.1.3 A-D Control Register Q2 - Renesas 4513 User Manual

4500 series 4-bit single-chip microcomputer
Table of Contents

Advertisement

(2) Key-on wakeup control register K0
Register K0 controls the ON/OFF of the key-on wakeup function of ports P0
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
Ports P1
, P1
2
K0
3
key-on wakeup control bit
Ports P1
, P1
0
K0
2
key-on wakeup control bit
Ports P0
, P0
2
K0
1
key-on wakeup control bit
Ports P0
, P0
0
K0
0
key-on wakeup control bit
Note: "R" represents read enabled, and "W" represents write enabled.
(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
Q2
A-D operation mode control bit
3
P4
/A
, P4
3
IN7
Q2
2
selection bit (Note 3)
P4
/A
pin function selection bit
1
IN5
Q2
1
(Note 3)
P4
/A
pin function selection bit
0
IN4
Q2
0
(Note 3)
Notes 1: "R" represents read enabled, and "W" represents write enabled.
2: Select A
–A
IN4
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, Q2
at reset : 0000
3
1
3
1
at reset : 0000
/A
pin function
2
IN6
with register Q1 after setting register Q2.
IN7
is not used.
3
4513/4514 Group User's Manual
at RAM back-up : state retained
2
Key-on wakeup not used
0
Key-on wakeup used
1
Key-on wakeup not used
0
Key-on wakeup used
1
Key-on wakeup not used
0
Key-on wakeup used
1
Key-on wakeup not used
0
Key-on wakeup used
1
at RAM back-up : state retained
2
A-D conversion mode
0
Comparator mode
1
P4
, P4
(I/O) (Note 4)
0
3
2
A
, A
/P4
, P4
1
IN7
IN6
3
P4
(I/O) (Note 4)
0
1
A
/P4
(Output) (Note 4)
1
IN5
1
P4
(I/O) (Note 4)
0
0
A
/P4
(Output) (Note 4)
1
IN4
0
APPLICATION
–P0
0
3
(Output) (Note 4)
2
2.1 I/O pins
and P1
–P1
.
0
3
R/W
R/W
2-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

4514

Table of Contents