|
3807_03 Datasheet, PDF (165/247 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.5 A-D converter
Control procedure : By setting the related registers as shown in Figure 2.5.8, the analog input
voltage input from the sensor are converted into digital values.
ADCON (Address : 3416) X0X100012
P7D (Address : 0F16) XXX0XXXX2
ADCON (Address : 3416), bit4 0
qX : This bit is not used in this application.
Set it to â0â or â1.â Itâs value can be disregarded.
⢠Select the P74/AN1 pin as an analog input pin.
External trigger is invalid.
⢠P74/AN1 pin:Input mode
⢠Start A-D conversion.
ADCON (Address : 3416), bit4?
0
1
Read out AD (Address : 3516)
⢠Check the completion of A-D conversion.
⢠Read out the conversion result.
Fig. 2.5.8 Control procedure [Read for analog signal using an internal trigger]
2-84
3807 GROUP USERâS MANUAL
|
▷ |