Analogue Control Interface
FX839
MAG COMP ONE LEVELS
MAG COMP TWO LEVELS
(Hex Address $D8)
(Hex Address $D9)
MAG COMP THREE LEVELS (Hex Address $DA)
MAG COMP FOUR LEVELS (Hex Address $DB)
Each address controls the relevant numbered ADC magnitude comparator.
The first byte, transmitted with the most significant bit first, sets the magnitude comparator upper reference
level and the second byte sets the magnitude comparator lower reference level.
When a reference level's value is set to '0' its IRQ is disabled.
If a reference level’s value is set to ‘FF’, the level will correspond to:
V
REF
= AV x (255 / 256) [Volts]
DD
Read Only Register Description
IRQ FLAGS Register (Hex Address $D1)
HIRQF1,HIRQF2,HIRQF3,HIRQF4
(Bit 1) (Bit 3) (Bit 5) (Bit 7)
These bits are set if the relevant digital magnitude comparator input exceeds its
upper reference level. These bits are reset to '0' immediately after reading the
IRQ FLAGS register. When any of these bits are set, an interrupt will be
generated if the relevant reference level is not zero.
LIRQF1, LIRQF2, LIRQF3, LIRQF4
(Bit 0) (Bit 2) (Bit 4) (Bit 6)
These bits are set if the relevant digital magnitude comparator input falls below
its lower reference level. These bits are reset to '0' immediately after reading the
IRQ FLAGS register. When any of these bits are set, an interrupt will be
generated if the relevant reference level is not zero.
ADC DATA1 Register (Hex Address $DC)
ADC DATA2 Register (Hex Address $DD)
ADC DATA3 Register (Hex Address $DE)
ADC DATA4 Register (Hex Address $DF)
This data will consist of two bytes each. Bit 7 to Bit 2 of the second data byte will be set to '0'.
Consumer Microcircuits Limited
14
1997
D/839/4