Renesas 4514 Network Card User Manual


 
APPLICATION
2.5 A-D converter
2-50
4513/4514 Group User’s Manual
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
Not used
Analog input pin selection bits
(Note 2)
Q13
Q12
Q11
Q10
0
1
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
Q12
0
0
0
0
1
1
1
1
Q11
0
0
1
1
0
0
1
1
This bit has no function, but read/write is enabled.
Selected pin
AIN0
AIN1
AIN2
AIN3
AIN4 (Not available for 4513 Group)
AIN5 (Not available for 4513 Group)
AIN6 (Not available for 4513 Group)
AIN7 (Not available for 4513 Group)
Q10
0
1
0
1
0
1
0
1
A-D control register Q2 at reset : 00002 at power down : state retained
R/W
A-D operation mode control bit
P43/AIN7, P42/AIN6 pin function
selection bit (Note 3)
P41/AIN5 pin function selection bit
(Note 3)
P40/AIN4 pin function selection bit
(Note 3)
Q23
Q22
Q21
Q20
0
1
0
1
0
1
0
1
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.
A-D conversion mode
Comparator mode
P43, P42 (I/O) (Note 4)
AIN7, AIN6/P43, P42 (Output) (Note 4)
P41 (I/O) (Note 4)
AIN5/P41 (Output) (Note 4)
P40 (I/O) (Note 4)
AIN4/P40 (Output) (Note 4)