![Intel 8XC196NT User Manual Download Page 275](http://html1.mh-extra.com/html/intel/8xc196nt/8xc196nt_user-manual_2072210275.webp)
8XC196NT USER’S MANUAL
11-4
The A/D converter uses a successive approximation algorithm to perform the analog-to-digital
conversion. The converter hardware consists of a 256-resistor ladder, a comparator, coupling ca-
pacitors, and a 10-bit successive approximation register (SAR) with logic that guides the process.
The resistive ladder provides 20 mV steps (V
REF
= 5.12 volts), while capacitive coupling creates
5 mV steps within the 20 mV ladder voltages. Therefore, 1024 internal reference voltage levels
are available for comparison against the analog input to generate a 10-bit conversion result. In 8-
bit conversion mode, only the resistive ladder is used, providing 256 internal reference voltage
levels.
The successive approximation conversion compares a sequence of reference voltages to the ana-
log input, performing a binary search for the reference voltage that most closely matches the in-
put. The ½ full scale reference voltage is the first tested. This corresponds to a 10-bit result where
the most-significant bit is zero and all other bits are ones (0111111111B). If the analog input was
less than the test voltage, bit 10 of the SAR is left at zero, and a new test voltage of ¼ full scale
(0011111111B) is tried. If the analog input was greater than the test voltage, bit 9 of SAR is set.
Bit 8 is then cleared for the next test (0101111111B). This binary search continues until 10 (or 8)
tests have occurred, at which time the valid conversion result resides in the AD_RESULT register
where it can be read by software. The result is equal to the ratio of the input voltage divided by
the analog supply voltage. If the ratio is 1.00, the result will be all ones.
11.4 PROGRAMMING THE A/D CONVERTER
The following A/D converter parameters are programmable:
•
conversion input — input channel or test voltage (ANGND or V
REF
)
•
zero-offset adjustment — no adjustment, plus 2.5 mV, minus 2.5 mV, or minus 5.0 mV
•
conversion times — sample window time and conversion time for each bit
•
operating mode — 8- or 10-bit conversion or 8-bit high or low threshold detection
•
conversion trigger — immediate or EPA starts
This section describes the A/D converters’s registers and explains how to program them.
Summary of Contents for 8XC196NT
Page 1: ...8XC196NT Microcontroller User s Manual...
Page 2: ...8XC196NT Microcontroller User s Manual June 1995 Order Number 272317 003...
Page 22: ...1 Guide to This Manual...
Page 23: ......
Page 35: ......
Page 36: ...2 Architectural Overview...
Page 37: ......
Page 49: ......
Page 50: ...3 Programming Considerations...
Page 51: ......
Page 66: ...4 Memory Partitions...
Page 67: ......
Page 104: ...5 Standard and PTS Interrupts...
Page 105: ......
Page 147: ......
Page 148: ...6 I O Ports...
Page 149: ......
Page 176: ...7 Serial I O SIO Port...
Page 177: ......
Page 194: ...8 Synchronous Serial I O SSIO Port...
Page 195: ......
Page 211: ......
Page 212: ...9 Slave Port...
Page 213: ......
Page 231: ......
Page 232: ...10 Event Processor Array EPA...
Page 233: ......
Page 270: ...11 Analog to digital Converter...
Page 271: ......
Page 291: ......
Page 292: ...12 Minimum Hardware Considerations...
Page 293: ......
Page 306: ...13 Special Operating Modes...
Page 307: ......
Page 317: ......
Page 318: ...14 Interfacing with External Memory...
Page 319: ......
Page 362: ...15 Programming the Nonvolatile Memory...
Page 363: ......
Page 408: ...A Instruction Set Reference...
Page 409: ......
Page 476: ...B Signal Descriptions...
Page 477: ......
Page 493: ......
Page 494: ...C Registers...
Page 495: ......
Page 565: ......
Page 566: ...Glossary...
Page 567: ......
Page 580: ...Index...
Page 581: ......
Page 597: ......