English
Language : 

SAM4L Datasheet, PDF (966/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
Table 37-2.
Channel
4
5
6
7
Pin Mapping
Pins (Normal Mode)
ACAP2, ACAN2
ACBP2, ACBN2
ACAP3, ACAN3
ACBP3, ACBN3
Window pair
2
3
Pins (Window Mode)
ACAP2, ACBN2
ACAP3, ACBN3
37.5 Product Dependencies
In order to use this module, other parts of the system must be configured correctly, as described
below.
37.5.1 I/O Lines
The ACIFC pins are multiplexed with other peripherals. The user must first configure the I/O
Controller to give control of the pins to the ACIFC.
37.5.2
Power Management
ACIFC stops functioning when the system enters a sleep mode that disables its clock. However,
ACIFC can resume its operation if the system enters the SleepWalking mode and the ACIFC
clock is started by the Peripheral Event System (see Section 10. ”Power Manager (PM)” on page
102 for details on the SleepWalking mode). During this time, if ACIFC generates an interrupt, the
system will wake up from sleep mode and normal system operation will resume.
37.5.3 Clocks
The clock for ACIFC (CLK_ACIFC) is generated by the Power Manager. It can be disabled either
manually through the user interface of the Power Manager or automatically when the system
enters a sleep mode that disables the clocks to the peripheral bus modules.
37.5.4 Interrupts
The ACIFC interrupt request line is connected to the NVIC. Using the ACIFC interrupt requires
the NVIC to be configured first.
37.5.5
Peripheral Events
The ACIFC peripheral events are connected via the Peripheral Event System. Refer to Section
31. ”Peripheral Event Controller (PEVC)” on page 839 for details.
37.5.6
Debug Operation
When an external debugger forces the CPU into debug mode, the ACIFC continues normal
operation. If the ACIFC is configured in a way that requires it to be periodically serviced by the
CPU through interrupts or similar, improper operation or data loss may result during debugging.
37.6
Functional Description
The ACIFC is enabled by writing a one to the Control Register Enable bit (CTRL.EN). Addition-
ally, the comparators must be individually enabled byselecting a measurement mode by writing
to the MODE field in the ACx Configuration Register (CONFx.MODE).
The results from the individual comparators can either be used directly (normal mode), or the
results from two comparators can be grouped to generate a comparison window (window mode).
All comparators does not have to be in the same mode, some comparators may be in normal
42023C–SAM–02/2013
966