Related Registers; Table 2.5.1 A-D Control Register Q1; Table 2.5.2 A-D Control Register Q2 - Renesas 4513 User Manual

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

Advertisement

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
Q1
Not used
3
Q1
2
Analog input pin selection bits
Q1
1
(Note 2)
Q1
0
Notes 1: "R" represents read enabled, and "W" represents write enabled.
2: Select A
–A
IN4
(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
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: In the 4513 Group, these bits are not used.
4: In the 4513 Group, only read/write of these bits is enabled.
2-50
Q1
0
0
0
0
1
1
1
1
with register Q1 after setting register Q2.
IN7
/A
pin function
2
IN6
with register Q1 after setting register Q2.
IN7
4513/4514 Group User's Manual
at reset : 0000
at power down : state retained
2
0
This bit has no function, but read/write is enabled.
1
Q1
Q1
2
1
0
0
0
A
IN0
0
1
A
IN1
1
0
A
IN2
1
1
A
IN3
0
0
A
(Not available for 4513 Group)
IN4
0
1
A
(Not available for 4513 Group)
IN5
1
0
A
(Not available for 4513 Group)
IN6
1
1
A
(Not available for 4513 Group)
IN7
at reset : 0000
at power down : 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
Selected pin
(Output) (Note 4)
2
R/W
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

4514

Table of Contents