Programming The A/D Test Register; Programming The A/D Result Register (For Threshold Detection Only) - Intel 8XC196MC User Manual

Table of Contents

Advertisement

12.4.1 Programming the A/D Test Register

The AD_TEST register (Figure 12-2) analog specifies an offset voltage to be applied to the resis-
tor ladder. To use the zero-offset adjustment, first perform two conversions, one on ANGND and
one on V
. With the results of these conversions, use a software routine to calculate the zero-
REF
offset error. Specify the zero-offset adjustment by writing the appropriate value to AD_TEST.
This offset voltage is added to the resistor ladder and applies to all input channels. "Understand-
ing A/D Conversion Errors" on page 12-13 describes zero-offset and other errors inherent in A/D
conversions.
AD_TEST
The A/D test (AD_TEST) register specifies adjustments for DC offset errors.
7
Bit
Bit
Number
Mnemonic
7:5
4
OFF1
3
2
OFF0
1:0

12.4.2 Programming the A/D Result Register (for Threshold Detection Only)

To use the threshold-detection modes, you must first write a value to the high byte of
AD_RESULT to set the desired reference (threshold) voltage.
OFF1
Reserved; for compatibility with future devices, write zeros to these bits.
Offset
This bit , along with OFF0 (bit 2) allows you to set the zero offset point.
OFF1 OFF0
0
0
no adjustment
0
1
add 2.5 mV
1
0
subtract 2.5 mV
1
1
subtract 5.0 mV
Reserved; for compatibility with future devices, write zero to this bit.
See bit 4 (OFF1).
Reserved; for compatibility with future devices, write zeros to these bits.
Figure 12-2. A/D Test (AD_TEST) Register
Get other manuals https://www.bkmanuals.com
ANALOG-TO-DIGITAL (A/D) CONVERTER
Address:
Reset State (MC, MD):
Reset State (MH):
OFF0
Function
1FAEH
C0H
88H
0
12-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents