Microchip Technology megaAVR 0 Series Manual page 404

Hide thumbs Also See for megaAVR 0 Series:
Table of Contents

Advertisement

27.5.1
Control A
Name: 
CTRLA
Offset: 
0x00
Reset: 
0x00
Property:  -
Bit
7
RUNSTDBY
Access
R/W
Reset
0
Bit 7 – RUNSTDBY Run in Standby Mode
Writing a '1' to this bit allows the AC to continue operation in Standby sleep mode. Since the clock is
stopped, interrupts and status flags are not updated.
Value
Description
0
In Standby sleep mode, the peripheral is halted
1
In Standby sleep mode, the peripheral continues operation
Bit 6 – OUTEN Analog Comparator Output Pad Enable
Writing this bit to '1' makes the OUT signal available on the pin.
Bits 5:4 – INTMODE[1:0] Interrupt Modes
Writing to these bits selects what edges of the AC output triggers an interrupt request.
Value
Name
0x0
BOTHEDGE
0x1
-
0x2
NEGEDGE
0x3
POSEDGE
Bit 3 – LPMODE Low-Power Mode
Writing a '1' to this bit reduces the current through the comparator. This reduces the power consumption
but increases the reaction time of the AC.
Value
Description
0
Low-Power mode disabled
1
Low-Power mode enabled
Bits 2:1 – HYSMODE[1:0] Hysteresis Mode Select
Writing these bits select the hysteresis mode for the AC input.
Value
Name
0x0
NONE
0x1
SMALL
0x2
MEDIUM
0x3
LARGE
©
2018 Microchip Technology Inc.
6
5
OUTEN
INTMODE[1:0]
R/W
R/W
0
0
Description
Both negative and positive edge
Reserved
Negative edge
Positive edge
4
3
LPMODE
R/W
R/W
0
0
Description
No hysteresis
Small hysteresis
Medium hysteresis
Large hysteresis
Datasheet Preliminary
®
megaAVR
0-Series
Analog Comparator (AC)
2
1
HYSMODE[1:0]
R/W
R/W
0
0
DS40002015A-page 404
0
ENABLE
R/W
0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the megaAVR 0 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Atmega4808Atmega4809Atmega3208Atmega3209

Table of Contents