19
FN9074.2
February 8, 2011
The eight A/D result registers contain the following:
GPIO CONTROL REGISTER - GPIOctrl
(Address 53 Hex/83 Decimal)
These GPIO control bits are relevent only when the
respective GPIO enable bit (contained within the VREFT
register) is set.
ACCUMULATOR CLEAR REGISTER - ACCclr
(Address - 62 Hex/98 Decimal)
A ‘1’ in any of the “CLRn” bits will clear the associated
accumulator. Following the clear operation, all of the bits in
the AccClr register will be reset to 0.
TRIP POINT VALUE REGISTERS
There are 5 registers that are utilized to set up Trip Point
Values. These registers are used when enabled by the
TRIPctrl register to enter or exit various power modes. Three
of these trip point value registers contain voltage values and
two contain current values. Locations of the trip point
detection enable bit and the corresponding compare and trip
point value registers are listed below:
VPtrip, VCtrip and SStrip are used as voltage values to be
compared to VPres, GPADres and VPres respectively for
transitioning in and out of various power modes. I+trip and
I-trip are used as current values to be compared to Ires for
transitioning in and out of various power modes. The data
format in these registers is left justified. For the purpose of
trip point detection, only magnitude is compared and the sign
is ignored.
Magnitude Magnitude of A/D output: Reports the
magnitude value of the A/D measurement with
00h representing a zero value and 7Fh
representing full scale (magnitude of ADC input
voltage equals V
REF
). The magnitude value is
left-justified, meaning that result from a N-bit
conversion, as defined by the resolution
specified within the A/D Control register, will
occupy bit locations from bit 14 to bit (15-N).
Sign Polarity of the A/D measurement: The sign bit
shows the polarity of the A/D measurement.
0 = positive value
1 = negative value
76543 210
PP0 OE0 IE1 IE0 OUT1 OUT0 IN1 IN0
PP0 IO0 Push-Pull Output mode: Setting this bit to
‘1’ will configure the IO0 pin as a push-pull digital
output. If set to ‘0’, the IO0 pin will become an
open drain output with a 300k
Ω pull-up to the
internal regulated supply. To be used in
conjunction with the “OE0” bit.
OE0 IO0 Output Enable: Setting this bit to ‘1’ will
configure the IO0 pin to be either a push-pull
output (when PP0 = ’1’) or open drain output
(when PP0 = ‘0’). If “OE0” is reset to ‘0’, the IO0
pin is three-stated (when PP0 = ‘1’) or pulled up
to the internal regulated supply through a 300k
Ω
resistor (when PP0 = ‘0’).
IE1 IO1 Input enable: Setting this bit to ‘1’ enables
the IO1 pin to be used as a digital input. If reset
to ‘0’, the digital input buffer on IO1 is powered
down and the “IN1” bit will always read logic 0.
IE0 IO0 Input enable: Setting this bit to ‘1’ enables
the IO0 pin to be used as a digital input. If reset
to ‘0’, the digital input buffer on IO0 is powered
down and the “IN0” bit will always read logic 0.
OUT1 IO1 Output Data: Controls the open drain pull-
down device. When “0” is written, the pull-down
device is enabled and the IO1 pin outputs a logic
0. When set to “1”, the pull-down device is
disabled and the IO1 is three-stated.
OUT0 IO0 Output Data: Sets the logic level driven on
the IO0 pin. Relevant only when Output Enable
bit “OE0” is set.
IN1 IO1 Input Data: Current logic state of the IO1
pin (read- only).
IN0 IO0 Input Data: Current logic state of the IO0
pin (read- only).
76543210
CLR7 CLR6 CLR5 CLR4 CLR3 CLR2 CLR1 CLR0
CLR7 Clear GPADT Timer
CLR6 Clear GPADA Accumulator
CLR5 Clear TAT Timer
CLR4 Clear TA Accumulator
CLR3 Clear CTC Timer
CLR2 Clear CCA Accumulator
CLR1 Clear DTC Timer
CLR0 Clear DCA Accumulator
TPV
REGISTER LOCATION
COMPARISON
REGISTER
ENABLE
BIT
I+trip 60h Ires Iex
I-trip 64h Ires Ient
VPtrip 68h VPres VPex
VCtrip 6Ch VPres or GPADres VPent or
GPADent
SStrip 70h VPres Shent
15 14131211109876543210
Sign Magnitude
ISL6295