AT32UC3L064_1 ATMEL [ATMEL Corporation], AT32UC3L064_1 Datasheet - Page 643

no-image

AT32UC3L064_1

Manufacturer Part Number
AT32UC3L064_1
Description
AVR32 32-bit Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
27.6.1.1
27.6.1.2
27.6.1.3
27.6.1.4
27.6.2
27.6.2.1
32099A–AVR32–06/09
Normal Mode
Continuous Measurement Mode
User Triggered Single Measurement Mode
Event Triggered Single Measurement Mode
Selecting Comparator Inputs
Normal Mode Output
In CM, the Analog Comparator is continuously enabled and performing comparisons. This
ensures that the result of the latest comparison is always available in the ACn Current Compari-
son Status bit in the Status Register (SR.ACCSn). Comparisons are done on every positive
edge of GCLK.
CM is enabled by writing CONFn.MODE to 1. After the startup time has passed, a comparison is
done and SR is updated. Appropriate peripheral events and interrupts are also generated. New
comparisons are performed continuously until the CONFn.MODE field is written to 0.
In the UT mode, the user starts a single comparison by writing a one to the User Start Single
Conversion bit (CTRL.USTART). This mode is enabled by writing CONFn.MODE to 2. After the
startup time has passed, a single comparison is done and SR is updated. Appropriate peripheral
events and interrupts are also generated. No new comparisons will be performed.
CTRL.USTART is cleared automatically by hardware when the single comparison has been
done.
This mode is enabled by writing CONFn.MODE to 3 and Peripheral Event Trigger Enable
(CTRL.EVENTEN) to one. The ET mode is similar to the UT mode, the difference is that a
peripheral event from another hardware module causes the hardware to automatically set the
Peripheral Event Start Single Conversion bit (CTRL.ESTART). After the startup time has
passed, a single comparison is done and SR is updated. Appropriate peripheral events and
interrupts are also generated. No new comparisons will be performed. CTRL.ESTART is cleared
automatically by hardware when the single comparison has been done.
Each Analog Comparator has one positive (INP) and one negative (INN) input. The positive
input is fed from an external input pin (ACPn). The negative input can either be fed from an
external input pin (ACNn) or from a reference voltage common to all ACs (ACREFN).
The user selects the input source as follows:
In normal mode all Analog Comparators are operating independently.
Each Analog Comparator generates one output ACOUT according to the input voltages on INP
(AC positive input) and INN (AC negative input):
The output can optionally be filtered, as described in
• In normal mode with the Negative Input Select and Positive Input Select fields
• In window mode with CONFn.INSELN, CONFn.INSELP and CONFn+1.INSELN,
• ACOUT = 1 if V
• ACOUT = 0 if V
• ACOUT = 0 if the AC output is not available (SR.ACRDY = 0)
(CONFn.INSELN and CONFn.INSELP).
CONFn+1,INSELP. The user must configure CONFn.INSELN and CONFn+1.INSELP to the
same source.
INP
INP
> V
< V
INN
INN
Section
27.6.4.
AT32UC3L
643

Related parts for AT32UC3L064_1