Intel 8XC196MC, 8XC196MD, 8XC196MH manual Adresult Write

Models: 8XC196MD 8XC196MH 8XC196MC

1 579
Download 579 pages 24.12 Kb
Page 485
Image 485

8XC196MC, MD, MH USER’S MANUAL

AD_RESULT (Write)

AD_RESULT (Write)

Address:

1FAAH

 

Reset State (MC, MD):

FFC0H

 

Reset State (MH):

7FC0H

The high byte of the A/D result (AD_RESULT) register can be written to set the reference voltage for the A/D threshold-detection modes.

15

REFV7

REFV6

REFV5

REFV4

7

 

 

 

 

 

 

 

 

 

 

 

8

REFV3

REFV2

REFV1

REFV0

 

 

 

0

 

 

 

 

 

 

 

 

Bit

Bit

Function

Number

Mnemonic

 

 

 

 

15:8

REFV7:0

Reference Voltage

 

 

These bits specify the threshold value. This selects a reference voltage

 

 

that is compared with an analog input pin. When the voltage on the

 

 

analog input pin crosses over (detect high) or under (detect low) the

 

 

threshold value, the A/D conversion complete interrupt pending bit is set.

 

 

Use the following formula to determine the value to write to this register

 

 

for a given threshold voltage.

 

 

desired threshold voltage × 256

 

 

reference voltage = ----------------------------------------------------------------------------------

 

 

VREF ANGND

7:0

Reserved; for compatibility with future devices, write zeros to these bits.

 

 

 

C-8

Page 485
Image 485
Intel 8XC196MC, 8XC196MD, 8XC196MH manual Adresult Write