atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 160

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
16.2.5
160
ATmega32U4
Definitions
Figure 16-2. Timer/Counter4 Synchronization Register Block Diagram.
Many register and bit references in this section are written in general form. A lower case “n”
replaces the Timer/Counter number, in this case 0. A lower case “x” replaces the Output Com-
pare Unit, in this case Compare Unit A, B, C or D. However, when using the register or bit
defines in a program, the precise form must be used, i.e., TCNT4 for accessing Timer/Counter4
counter value and so on. The definitions in
document.
Table 16-1.
BOTTOM
MAX
TOP
PCKE
CK
PCK
SYNC
MODE
ASYNC
MODE
IO-registers
The counter reaches the BOTTOM when it becomes 0.
The counter reaches its MAXimum value when it becomes 0x3FF (decimal 1023).
The counter reaches the TOP value (stored in the OCR1C) when it becomes equal to the
highest value in the count sequence. The TOP has a value 0x0FF as default after reset.
OCR4B
OCR4C
OCR4D
TC4H
OCF4A
OCF4B
OCF4D
OCR4A
TCCR4A
TCCR4B
TCCR4C
TCCR4D
TCNT4
TOV4
Definitions
~1/2 CK Delay
1/2 CK Delay
S
A
Input synchronization
registers
OCR4A_SI
OCR4B_SI
OCR4C_SI
OCR4D_SI
TCCR4A_SI
TCCR4B_SI
TCCR4C_SI
TCCR4D_SI
TCNT4_SI
TC4H_SI
OCF4A_SI
OCF4B_SI
OCF4D_SI
TOV4_SI
1 PCK Delay
1 CK Delay
Table 16-1
S
A
8-BIT DATABUS
Timer/Counter4
TCNT4
are used extensively throughout the
1 CK Delay
1 PCK Delay
Output synchronization
registers
TCNT4_SO
TC4H_SO
OCF4A_SO
OCF4B_SO
OCF4D_SO
TOV4_SO
1/2 CK Delay
~1 CK Delay
7766A–AVR–03/08
TCNT4
TC4H
OCF4
OCF4B
OCF4D
TOV4

Related parts for atmega32u4-16mu