SAM3SD8B Atmel Corporation, SAM3SD8B Datasheet - Page 994

no-image

SAM3SD8B

Manufacturer Part Number
SAM3SD8B
Description
Manufacturer
Atmel Corporation
Datasheets
37.6
37.6.1
37.6.2
37.6.3
37.6.4
37.6.5
994
994
Functional Description
SAM3S8/SD8
SAM3S8/SD8
ACC Description
Analog Settings
Write Protection System
Automatic Output Masking Period
Fault Mode
The Analog Comparator Controller mainly controls the analog comparator settings. There is also
post processing of the analog comparator output.
The output of the analog comparator is masked for the time the output may be invalid. This situ-
ation is encountered as soon as the analog comparator settings are modified.
A comparison flag is triggered by an event on the output of the analog comparator and an inter-
rupt can be generated accordingly. The event on the analog comparator output can be selected
among falling edge, rising edge or any edge.
The registers for programming are listed in
The user can select the input hysteresis and configure high-speed or low-speed options.
In order to provide security to the Analog Comparator Controller, a write protection system has
been implemented.
The write protection mode prevents writing
ter. When this mode is enabled and one of the protected registers is written, the register write
request is canceled.
Due to the nature of the write protection feature, enabling and disabling the write protection
mode requires a security code. Thus when enabling or disabling the write protection mode, the
WPKEY field of the ACC_WPMR register must be filled with the “ACC” ASCII code (correspond-
ing to 0x414343), otherwise the register write will be canceled.
As soon as the analog comparator settings change, the output is invalid for a duration depend-
ing on ISEL current.
A masking period is automatically triggered as soon as a write access is performed on ACC_MR
or ACC_ACR registers (whatever the register data content).
When ISEL = 0, the mask period is 8*tMCK, else 128*tMCK.
The masking period is reported by reading a negative value (bit 31 set) on ACC_ISR register
The FAULT output can be used to propagate a comparison match and act immediately via com-
binatorial logic by using the FAULT output which is directly connected to the FAULT input of the
PWM.
The source of the FAULT output can be configured to be either a combinational value derived
from the analog comparator output or the MCK resynchronized value (Refer to
”Analog Comparator Controller Block
• shortest propagation delay/highest current consumption
• longest propagation delay/lowest current consumption
Diagram”).
ACC Mode Register
Table 37-3 on page
995.
and
ACC Analog Control Regis-
11090A–ATARM–10-Feb-12
11090A–ATARM–10-Feb-12
Figure 37-1

Related parts for SAM3SD8B