Electronic Components Datasheet Search
  English  ▼

X  

ATmega16U4 Datasheet(PDF) 170 Page - ATMEL Corporation

Part # ATmega16U4
Description  8-bit Microcontroller with 16/32K Bytes of ISP Flash and USB Controller
PDF  408 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATmega16U4 Datasheet(HTML) 170 Page - ATMEL Corporation

Back Button ATmega16U4 Datasheet HTML 166Page - ATMEL Corporation ATmega16U4 Datasheet HTML 167Page - ATMEL Corporation ATmega16U4 Datasheet HTML 168Page - ATMEL Corporation ATmega16U4 Datasheet HTML 169Page - ATMEL Corporation ATmega16U4 Datasheet HTML 170Page - ATMEL Corporation ATmega16U4 Datasheet HTML 171Page - ATMEL Corporation ATmega16U4 Datasheet HTML 172Page - ATMEL Corporation ATmega16U4 Datasheet HTML 173Page - ATMEL Corporation ATmega16U4 Datasheet HTML 174Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 170 / 408 page
background image
170
7766D–AVR–01/09
ATmega16U4/ATmega32U4
• Bit 3 - FPAC4: Fault Protection Analog Comparator Enable
When written logic one, this bit enables the Fault Protection function in Timer/Counter4 to be
triggered by the Analog Comparator. The comparator output is in this case directly connected to
the Fault Protection front-end logic, making the comparator utilize the noise canceler and edge
select features of the Timer/Counter4 Fault Protection interrupt. When written logic zero, no con-
nection between the Analog Comparator and the Fault Protection function exists. To make the
comparator trigger the Timer/Counter4 Fault Protection interrupt, the FPIE4 bit in the
Timer/Counter4 Control Register D (TCCR4D) must be set.
• Bit 2- FPF4: Fault Protection Interrupt Flag
When the FPIE4 bit is set (one), the Fault Protection Interrupt is enabled. Activity on the pin will
cause an interrupt request even, if the Fault Protection pin is configured as an output. The corre-
sponding interrupt of Fault Protection Interrupt Request is executed from the Fault Protection
Interrupt Vector. The bit FPF4 is cleared by hardware when executing the corresponding inter-
rupt handling vector. Alternatively, FPF4 is cleared after a synchronization clock cycle by writing
a logical one to the flag. When the SREG I-bit, FPIE4 and FPF4 are set, the Fault Interrupt is
executed.
• Bits 1:0 - WGM41, WGM40: Waveform Generation Mode Bits
This bit associated with the PWM4x bits control the counting sequence of the counter, the
source for type of waveform generation to be used, see Table 15-19. Modes of operation sup-
ported by the Timer/Counter4 are: Normal mode (counter), Fast PWM Mode, Phase and
Frequency Correct PWM and PWM6 Modes.
15.12.5
TCCR4E – Timer/Counter4 Control Register E
• Bit 7 - TLOCK4: Register Update Lock
This bit controls the Compare registers update. When this bit is set, writing to the Compare reg-
isters will not affect the output, however the values are stored and will be updated to the
Compare registers when the TLOCK4 bit will be cleared.
Refer to Section 15.7 ”Synchronous update” on page 150 for more details.
• Bit 6- ENHC4: Enhanced Compare/PWM Mode
Table 15-19. Waveform Generation Mode Bit Description
PWM4x
WGM41..40
Timer/Counter Mode of Operation
TOP
Update of
OCR4x at
TOV4 Flag
Set on
0
xx
Normal
OCR4C
Immediate
TOP
1
00
Fast PWM
OCR4C
TOP
TOP
1
01
Phase and Frequency Correct PWM
OCR4C
BOTTOM
BOTTOM
1
10
PWM6 / Single-slope
OCR4C
TOP
TOP
1
11
PWM6 / Dual-slope
OCR4C
BOTTOM
BOTTOM
Bit
76543210
TLOCK4
ENHC4
OC4OE5
OC4OE4
OC4OE3
OC4OE2
OC4OE1
OC4OE0
TCCR4E
Read/Write
R
R
R/W
R/W
R/W
R/W
R/W
R/W
Initial value
00000000



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com