4 ac3con – analog comparator 3 control register – Rainbow Electronics ATmega64M1 User Manual

Page 261

Advertising
background image

261

8209A–AVR–08/09

ATmega16M1/32M1/64M1

• Bit 3 – Res: Reserved

This bit is reserved and will always read as zero.

• Bit 2:0– AC2M[2:0]: Analog Comparator 2 Multiplexer register

These 3 bits determine the input of the negative input of the analog comparator.
The different setting are shown in

Table 24-6

.

24.4.4

AC3CON – Analog Comparator 3 Control Register

• Bit 7– AC3EN: Analog Comparator 3 Enable Bit

Set this bit to enable the analog comparator 3.
Clear this bit to disable the analog comparator 3.

• Bit 6– AC3IE: Analog Comparator 3 Interrupt Enable bit

Set this bit to enable the analog comparator 3 interrupt.
Clear this bit to disable the analog comparator 3 interrupt.

• Bit 5:4– AC3IS[1:0]: Analog Comparator 3 Interrupt Select bit

These 2 bits determine the sensitivity of the interrupt trigger.
The different setting are shown in

Table 24-1

Table 24-5.

Interrupt sensitivity selection

AC2IS[1:0]

Description

00

Comparator Interrupt on output toggle

01

Reserved

10

Comparator interrupt on output falling edge

11

Comparator interrupt on output rising edge

Table 24-6.

Analog Comparator 2 negative input selection

AC2M[2:0]

Description

000

“Vref”/6.40

001

“Vref”/3.20

010

“Vref”/2.13

011

“Vref”/1.60

100

Bandgap (1.1V)

101

DAC result

110

Analog Comparator Negative Input (ACMPM pin)

111

Reserved

Bit

7

6

5

4

3

2

1

0

AC3EN

AC3IE

AC3IS1

AC3IS0

-

AC3M2

AC3M1

AC3M0

AC3CON

Read/Write

R/W

R/W

R/W

R/W

-

R/W

R/W

R/W

Initial Value

0

0

0

0

0

0

0

0

Advertising