Function; Resolution Select Function; Sample And Hold; Extended Analog Input Pins - Renesas M16C/62P Hardware Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)

18.2 Function

18.2.1 Resolution Select Function

The desired resolution can be selected using the BITS bit in the ADCON1 register. If the BITS bit is set to
"1" (10-bit conversion accuracy), the A/D conversion result is stored in the bit 0 to bit 9 in the ADi register
(i = 0 to 7). If the BITS bit is set to "0" (8-bit conversion accuracy), the A/D conversion result is stored in
the bit 0 to bit 7 in the ADi register.

18.2.2 Sample and Hold

If the SMP bit in the ADCON2 register is set to "1" (with sample-and-hold), the conversion speed per pin
is increased to 28 ØAD cycles for 8-bit resolution or 33 ØAD cycles for 10-bit resolution. Sample and
Hold is effective in all operation modes. Select whether or not to use the Sample and Hold function before
starting A/D conversion.

18.2.3 Extended Analog Input Pins

In one-shot and repeat modes, the ANEX0 and ANEX1 pins can be used as analog input pins. Use the
OPA1 to OPA0 bits in the ADCON1 register to select whether or not use ANEX0 and ANEX1.
The A/D conversion results of ANEX0 and ANEX1 inputs are stored in the AD0 and AD1 registers, re-
spectively.

18.2.4 External Operation Amplifier (Op-Amp) Connection Mode

Multiple analog inputs can be amplified using a single external op-amp via the ANEX0 and ANEX1 pins.
Set the OPA1 to OPA0 bits in the ADCON1 register to "11b" (external op-amp connection mode). The
inputs from ANi (i = 0 to 7)
before sending it back to the ANEX1 pin. The A/D conversion result is stored in the corresponding ADi
register. The A/D conversion speed depends on the response characteristics of the external op-amp.
Figure 18.9 shows an example of how to connect the pins in external operation amp.
NOTES:
1. AN0_i and AN2_i can be used the same as ANi. However, if VCC2 < VCC1, do not use AN0_i
and AN2_i as analog input pins.
External op-
page 221
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
(1)
are output from the ANEX0 pin. Amplify this output with an external op-amp
ADGSEL1 to ADGSEL0 bits in ADCON2 register = 00b
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
ADGSEL1 to ADGSEL0 bits =10b
AN0_0
AN0_1
AN0_2
AN0_3
AN0_4
AN0_5
AN0_6
AN0_7
AN2_0
AN2_1
AN2_2
ANEX0
ANEX1
f o
3
6
4
Successive conversion
register
Comparator
18. A/D Converter

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents