ATMEGA8HVD-4MX Atmel, ATMEGA8HVD-4MX Datasheet - Page 86

no-image

ATMEGA8HVD-4MX

Manufacturer Part Number
ATMEGA8HVD-4MX
Description
MCU AVR 8K FLASH 2.1-8V 4MHZ QFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA8HVD-4MX

Core Processor
AVR
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 2.4 V
Data Converters
A/D 1x10b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
18-MLF® Exposed Pad (Staggered Leads), DFN
For Use With
ATSTK600 - DEV KIT FOR AVR/AVR32ATSTK500 - PROGRAMMER AVR STARTER KIT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Connectivity
-
16.10 Register Description
16.10.1
86
ATmega4HVD/8HVD
TCCRnA – Timer/Counter n Control Register A
• Bit 7– TCWn: Timer/Counter Width
When this bit is written to one 16-bit mode is selected. The Timer/Counter width is set to 16-
bits and the Output Compare Registers OCRnA and OCRnB are combined to form one 16-bit
Output Compare Register. Because the 16-bit registers TCNTnH/L and OCRnB/A are
accessed by the AVR CPU via the 8-bit data bus, special procedures must be followed. These
procedures are described in section
• Bit 6– ICENn: Input Capture Mode Enable
The Input Capture Mode is enabled when this bit is written to one.
• Bit 5 – ICNCn: Input Capture Noise Canceler
Setting this bit activates the Input Capture Noise Canceler. When the noise canceler is acti-
vated, the input from the Input Capture Source is filtered. The filter function requires four
successive equal valued samples of the Input Capture Source for changing its output. The
Input Capture is therefore delayed by four System Clock cycles when the noise canceler is
enabled.
• Bit 4 – ICESn: Input Capture Edge Select
This bit selects which edge on the Input Capture Source that is used to trigger a capture event.
When the ICESn bit is written to zero, a falling (negative) edge is used as trigger, and when
the ICESn bit is written to one, a rising (positive) edge will trigger the capture. When a capture
is triggered according to the ICESn setting, the counter value is copied into the Input Capture
Register. The event will also set the Input Capture Flag (ICFn), and this can be used to cause
an Input Capture Interrupt, if this interrupt is enabled.
• Bit 3 - ICSn: Input Capture Select
When written logic one, this bit enables the input capture function in Timer/Counter to be trig-
gered by the alternative Input Capture Source. To make the comparator trigger the
Timer/Counter Input Capture interrupt, the ICIEn bit in the Timer Interrupt Mask Register
(TIMSK) must be set. See
• Bits 2:0 – Res: Reserved Bits
These bits are reserved bits in the ATmega4HVD/8HVD and will always read as zero.
• Bit 0 – WGMn0: Waveform Generation Mode
This bit controls the counting sequence of the counter, the source for maximum (TOP) counter
value, see
are: Normal mode (counter) and Clear Timer on Compare Match (CTC) mode (see
”Timer/Counter Timing Diagrams” on page
Bit
Read/Write
Initial Value
Figure 16-6 on page
TCWn
R/W
7
0
ICENn
R/W
6
0
Table 16-3 on page 80
81. Modes of operation supported by the Timer/Counter unit
ICNCn
R/W
5
0
”Accessing Registers in 16-bit Mode” on page
ICESn
R/W
81).
4
0
and
ICSn
R/W
3
0
Table 16-4 on page
R
2
0
R
1
0
80.
WGMn0
R/W
0
0
8052B–AVR–09/08
82.
TCCRnA

Related parts for ATMEGA8HVD-4MX