ATmega32U4 Atmel Corporation, ATmega32U4 Datasheet - Page 144

no-image

ATmega32U4

Manufacturer Part Number
ATmega32U4
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega32U4

Flash (kbytes)
32 Kbytes
Pin Count
44
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
14
Hardware Qtouch Acquisition
No
Max I/o Pins
26
Ext Interrupts
13
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
12
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
3.3
Eeprom (bytes)
1024
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
4
Output Compare Channels
12
Input Capture Channels
2
Pwm Channels
8
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega32U4-16AU
Manufacturer:
MAXIM
Quantity:
1 000
Part Number:
ATmega32U4-AU
Manufacturer:
FREESCALE
Quantity:
125
Part Number:
ATmega32U4-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32U4-AU
Manufacturer:
MICROCHIP
Quantity:
200
Part Number:
ATmega32U4-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32U4-MUR
Manufacturer:
UCC
Quantity:
1 001
Part Number:
ATmega32U4RC-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32U4RC-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega32U4RC-MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
15.4.1
15.4.2
15.4.3
7766F–AVR–11/10
Force Output Compare
Compare Match Blocking by TCNT4 Write
Using the Output Compare Unit
Figure 15-5. Effects of Unsynchronized OCR Latching
In non-PWM waveform generation modes, the match output of the comparator can be forced by
writing a one to the Force Output Compare (FOC4x) bit. Forcing Compare Match will not set the
OCF4x Flag or reload/clear the timer, but the Waveform Output (OCW4x) will be updated as if a
real Compare Match had occurred (the COM4x1:0 bits settings define whether the Waveform
Output (OCW4x) is set, cleared or toggled).
All CPU write operations to the TCNT4 Register will block any Compare Match that occur in the
next timer clock cycle, even when the timer is stopped. This feature allows OCR4x to be initial-
ized to the same value as TCNT4 without triggering an interrupt when the Timer/Counter clock is
enabled.
Since writing TCNT4 in any mode of operation will block all Compare Matches for one timer
clock cycle, there are risks involved when changing TCNT4 when using the Output Compare
Unit, independently of whether the Timer/Counter is running or not. If the value written to TCNT4
equals the OCR4x value, the Compare Match will be missed, resulting in incorrect waveform
generation. Similarly, do not write the TCNT4 value equal to BOTTOM when the counter is
down-counting.
The setup of the Waveform Output (OCW4x) should be performed before setting the Data Direc-
tion Register for the port pin to output. The easiest way of setting the OCW4x value is to use the
Force Output Compare (FOC4x) strobe bits in Normal mode. The OC4x keeps its value even
when changing between Waveform Generation modes.
Be aware that the COM4x1:0 bits are not double buffered together with the compare value.
Changing the COM4x1:0 bits will take effect immediately.
Unsynchronized WFnx Latch
Synchronized WFnx Latch
Compare Value changes
Compare Value changes
Glitch
ATmega16/32U4
Counter Value
Compare Value
Output Compare
Waveform OCWnx
Counter Value
Compare Value
Output Compare
Wafeform OCWnx
144

Related parts for ATmega32U4