English
Language : 

AMC7823 Datasheet, PDF (43/48 Pages) Texas Instruments – ANALOG MONITORING AND CONTROL CIRCUIT
AMC7823
www.ti.com
SLAS453A – APRIL 2005 – REVISED OCTOBER 2005
ALR Register (see Figure 53)
Bit 15
MSB
X
Bit 14
X
Bit 13
X
Bit 12
X
Bit 11
Bit 10
Bit 9
Bit 8
ALR-3 ALR-2 ALR-1 ALR-0
Bit 7
X
Bit 6
X
Bit 5
X
Bit 4
X
Bit 3
0
Bit 2
0
Bit 1
0
Bit 0
LSB
0
X : Don't Care
The first four analog inputs in the group defined by bits [SA3:SA0] and [EA3:EA0] in the ADC Control Register
are implemented with out-of-range detection.
[Bit 3:Bit 0]
ALR- n (READ-ONLY)
Must be '0' to ensure correct operation of alarm detection.
nth analog input out-of-range status flag. These bits are read-only. Writing ALR-n
bits has no effect.
ALR-n = 1 when the nth analog input is out-of-range.
ALR-n = 0 when the nth analog input is not out-of-range. ALR-n is always '0' when
following conditions hold: the value of Threshold-Low-n Register is equal to '0', and
the Threshold-Hi-n Register is equal to the full-scale value of the input.
NOTE: To avoid loss of alarm data during power-down of the ADC, change to direct conversion mode (see ADC
Control Register) before power-down and do not issue a convert command while the ADC is powered down.
After power-on or reset, all bits in ALR Register are cleared to '0'. Reading the register does not clear any bits.
GPIO Register (Read/Write; see the Digital I/O section)
The AMC7823 has six general-purpose I/O (GPIO) pins to communicate with external devices. Pins GPIO-4 and
GPIO-5 are dedicated to general bidirectional, digital I/O signals. The remaining pins (n = 0, 1, 2, 3) are
dual-purpose and can be programmed as either GPIO pins or ALR (out-of-range) indicators. This register defines
the status of all GPIO pins and the functions of pins GPIO-0, GPIO-1, GPIO-2 and GPIO-3. The register is
formatted as shown here.
Bit 15
MSB
1
Bit 14
1
Bit 13
1
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
1
IOMOD3 IOMOD2 IOMOD1 IOMOD0
1
Bit 6
1
Bit 5
IOST5
Bit 4
IOST4
Bit 3
IOST3
Bit 2
IOST2
Bit 1
IOST1
Bit 0
LSB
IOST0
IOMOD- n
IOMOD- n = 0
IOMOD- n = 1
IOST- n
Function mode definition bit for pins GPIO-0, GPIO-1, GPIO-2, and GPIO-3 (see Table 8
and Figure 52)
Analog input out-of-range detection mode. In this mode, GPIO-n (n =0, 1, 2, 3) work as
analog input out-of-range indicators, denoted as output pins ALR-n. The status of each pin
ALR-n is set by bit ALR-n of the ALR Register. The ALR-n pin is low when the
corresponding ALR-n bit is '1', and is high-impedance when ALR-n is '0'.
GPIO mode. In this mode, pin GPIO-n works as general digital I/O (bidirectional). When
the pin is output, the status is determined by the corresponding bit IOST-n; it is
high-impedance for IOST-n = 1, and logic low for IOST-n = 0. When the pin is input,
reading this bit acquires the digital logic value present at the pin. GPIO data are preserved
during all power-down conditions.
I/O STATUS bit of the GPIO-n pin. If the GPIO-n pin works as a general-purpose I/O, this
bit indicates the actual logic value present at the pin when reading the bit. It also sets the
state of the corresponding GPIO-n pin (high-impedance for IOST-n = 1, logic low for
IOST-n = 0) when writing to the bit. An external pull-up resistor is required when using pin
GPIO-n as an output.
If the GPIO-n pin works as an analog input out-of-range indicator, then bit IOST-n is a
complement of the corresponding bit ALR-n in the ALR Register. Writing the IOST-n bit
does not cause any change. Note that only GPIO-0, GPIO-1, GPIO-2, and GPIO-3 can be
configured as out-of-range indicators.
43