English
Language : 

4513_03 Datasheet, PDF (153/210 Pages) Renesas Technology Corp – 4-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.5 A-D converter
2.5.1 Related registers
(1) A-D control register Q1
Analog input pin selection bits are assigned to register Q1.
Set the contents of this register through register A with the TQ1A instruction. The TAQ1 instruction
can be used to transfer the contents of register Q1 to register A.
Table 2.5.1 shows the A-D control register Q1.
Table 2.5.1 A-D control register Q1
A-D control register Q1
at reset : 00002 at power down : state retained R/W
Q13 Not used
0
This bit has no function, but read/write is enabled.
1
Q12 Q11 Q10
Selected pin
Q12
0 0 0 AIN0
0 0 1 AIN1
0 1 0 AIN2
Q11 Analog input pin selection bits 0 1 1 AIN3
(Note 2)
1 0 0 AIN4 (Not available for 4513 Group)
1 0 1 AIN5 (Not available for 4513 Group)
Q10
1 1 0 AIN6 (Not available for 4513 Group)
1 1 1 AIN7 (Not available for 4513 Group)
Notes 1: “R” represents read enabled, and “W” represents write enabled.
2: Select AIN4–AIN7 with register Q1 after setting register Q2.
(2) A-D control register Q2
Analog input pin selection bits and A-D operation mode control bit are assigned to register Q2.
Set the contents of this register through register A with the TQ2A instruction. The TAQ2 instruction
can be used to transfer the contents of register Q2 to register A.
Table 2.5.2 shows the A-D control register Q2.
Table 2.5.2 A-D control register Q2
A-D control register Q2
at reset : 00002 at power down : state retained
Q23 A-D operation mode control bit
0 A-D conversion mode
1 Comparator mode
P43/AIN7, P42/AIN6 pin function
Q22
0
P43, P42 (I/O) (Note 4)
selection bit (Note 3)
1 AIN7, AIN6/P43, P42 (Output) (Note 4)
P41/AIN5 pin function selection bit
Q21
0
P41 (I/O) (Note 4)
(Note 3)
1 AIN5/P41 (Output) (Note 4)
P40/AIN4 pin function selection bit
Q20
0
P40 (I/O) (Note 4)
(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: In the 4513 Group, these bits are not used.
4: In the 4513 Group, only read/write of these bits is enabled.
R/W
2-50
4513/4514 Group User’s Manual