Intel 8XC196MC User Manual page 483

Table of Contents

Advertisement

8XC196MC, MD, MH USER'S MANUAL
AD_COMMAND
AD_COMMAND
The A/D command (AD_COMMAND) register selects the A/D channel number to be converted,
controls whether the A/D converter starts immediately or with an EPA command, and selects the
conversion mode.
7
M1
Bit
Bit
Number
Mnemonic
7
6:5
M1:0
4
GO
3:0
ACH3:0
While a threshold-detection mode is selected for an analog input pin, no other conversion can be
started. If another value is loaded into AD_COMMAND, the threshold-detection mode is disabled
and the new command is executed.
††
It is the act of writing to the GO bit, rather than its value, that starts a conversion. Even if the GO bit
has the desired value, you must set it again to start a conversion immediately or clear it again to
arm it for an EPA-initiated conversion.
C-6
M0
GO
Reserved; for compatibility with future devices, write zeros to these bits.
A/D Mode†
These bits determine the A/D mode.
M1
M0
Mode
0
0
10-bit conversion
0
1
8-bit conversion
1
0
threshold detect high
1
1
threshold detect low
A/D Conversion Trigger††
Writing this bit arms the A/D converter. The value that you write to it
determines at what point a conversion is to start.
0 = EPA initiates conversion
1 = start immediately
A/D Channel Selection
Write the A/D conversion channel number to these bits.
Get other manuals https://www.bkmanuals.com
Address:
Reset State:
ACH3
ACH2
Function
1FACH
80H
0
ACH1
ACH0

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents