atmega32c1 ATMEL Corporation, atmega32c1 Datasheet - Page 268

no-image

atmega32c1

Manufacturer Part Number
atmega32c1
Description
Atmega32m1 Automotive 8-bit Avr Microcontroller With 32k/64k Bytes In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega32c1-15AZ
Manufacturer:
ATMEL
Quantity:
170
Part Number:
atmega32c1-15AZ
Manufacturer:
Atmel
Quantity:
10 000
21.3.1
21.4
21.4.1
268
DAC Register Description
ATmega32/64/M1/C1
DAC Voltage Reference
Digital to Analog Conversion Control Register – DACON
rupt Enable bit in SREG is cleared. A conversion can thus be triggered without causing an
interrupt. However, the interrupt flag must be cleared in order to trigger a new conversion at the
next interrupt event.
The reference voltage for the ADC (V
be selected as either AV
AV
ated from the internal bandgap reference (V
external AREF pin is directly connected to the DAC, and the reference voltage can be made
more immune to noise by connecting a capacitor between the AREF pin and ground. V
also be measured at the AREF pin with a high impedant voltmeter. Note that V
impedant source, and only a capacitive load should be connected in a system.
If the user has a fixed voltage source connected to the AREF pin, the user may not use the other
reference voltage options in the application, as they will be shorted to the external voltage. If no
external voltage is applied to the AREF pin, the user may switch between AV
reference selection. The first DAC conversion result after switching reference voltage source
may be inaccurate, and the user is advised to discard this result.
The DAC is controlled via three dedicated registers:
• Bit 7 – DAATE: DAC Auto Trigger Enable bit
Set this bit to update the DAC input value on the positive edge of the trigger signal selected with
the DACTS2-0 bit in DACON register.
Clear it to automatically update the DAC input when a value is written on DACH register.
• Bit 6:4 – DATS2, DATS1, DATS0: DAC Trigger Selection bits
These bits are only necessary in case the DAC works in auto trigger mode. It means if DAATE
bit is set.
In accordance with the
update of the DAC input values. The update will be generated by the rising edge of the selected
interrupt flag whether the interrupt is enabled or not.
Table 1. DAC Auto Trigger source selection
Bit
Read/Write
Initial Value
DATS2
0
0
0
0
CC
The DACON register which is used for DAC configuration
DACH and DACL which are used to set the value to be converted.
is connected to the DAC through a passive switch. The internal 2.56V reference is gener-
DATS1
0
0
1
1
DAATE
R/W
7
0
Table
CC
DATS2
R/W
DATS0
0
1
0
1
6
0
, internal 2.56V reference, or external AREF pin.
1, these 3 bits select the interrupt event which will generate the
DATS1
R/W
5
0
REF
Description
Analog comparator 0
Analog comparator 1
External Interrupt Request 0
Timer/Counter0 Compare Match
) indicates the conversion range for the DAC. V
DATS0
R/W
BG
4
0
) through an internal amplifier. In either case, the
3
0
-
-
DALA
R/W
2
0
DAOE
R/W
1
0
DAEN
CC
R/W
0
0
7647A–AVR–02/08
and 2.56V as
REF
DACON
is a high
REF
REF
can
can

Related parts for atmega32c1