|
MC9S12G Datasheet, PDF (116/1160 Pages) Freescale Semiconductor, Inc – Ignores external trigger. Performs one conversion sequence and stops. | |||
|
◁ |
Device Overview MC9S12G-Family
1.17 ADC Result Reference
MCUs of the S12G-Family are able to measure the internal reference voltage VDDF (see Table 1-31). VDDF
is a constant voltage with a narrow distribution over temperature and external voltage supply (see
Table A-29).
A 12-bit left justiï¬ed1 ADC conversion result of VDDF is provided at address 0x0_4022/0x0_4023 in the
NVMâs IFR for reference.The measurement conditions of the reference conversion are listed in
Section A.15, âADC Conversion Result Referenceâ. By measuring the voltage VDDF (see Table 1-31) and
comparing the result to the reference value in the IFR, it is possible to determine the ADCâs reference
voltage VRH in the application environment:
VRH = C-----o-S---n-t--o-v---er--e--r--td--e--R--d---eR---f--ee----fr--ee---r-n--e--c--n-e--c----e- ⢠5V
The exact absolute value of an analog conversion can be determined as follows:
Result = ConvertedADInput ⢠C-----oS----n-t--o-v--r-e--e--r-d-t--e-R---d--e-R--f--e-e---r-f--ee---nr---e-c---ne---c--â¢--e--5--â¢--V---2---n-
With:
ConvertedADInput:
ConvertedReference:
StoredReference:
n:
Result of the analog to digital conversion of the desired pin
Result of channel âInternal_0â conversion
Value in IFR locatio 0x0_4022/0x0_4023
ADC resolution (10 bit)
CAUTION
To assure high accuracy of the VDDF reference conversion, the NVMs must
not be programmed, erased, or read while the conversion takes place. This
implies that code must be executed from RAM. The âConvertedReferenceâ
value must be the average of eight consecutive conversions.
CAUTION
The ADCâs reference voltage VRH must remain at a constant level
throughout the conversion process.
1.18 ADC VRH/VRL Signal Connection
On all S12G devices except for the S12GA192 and the S12GA240 the external VRH signal is directly
connected to the ADCâs VRH signal input. The ADCâs VRL input is connected to VSSA. (see
Figure 1-21).
1. The format of the stored VDDF reference value is still subject to change.
MC9S12G Family Reference Manual, Rev.1.01
116
Freescale Semiconductor
This document is valid for the S12G96 and the S12G128 device. All information related to other devices is preliminary.
|
▷ |