Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

ATmega8A-AU Datasheet(PDF) 88 Page - ATMEL Corporation

Part # ATmega8A-AU
Description  8-bit with 8K Bytes In-System Programmable Flash
Download  307 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATmega8A-AU Datasheet(HTML) 88 Page - ATMEL Corporation

Back Button ATmega8A-AU Datasheet HTML 84Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 85Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 86Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 87Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 88Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 89Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 90Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 91Page - ATMEL Corporation ATmega8A-AU Datasheet HTML 92Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 88 / 307 page
background image
88
8159C–AVR–07/09
ATmega8A
The OCR1x Register is double buffered when using any of the twelve Pulse Width Modulation
(PWM) modes. For the normal and Clear Timer on Compare (CTC) modes of operation, the dou-
ble buffering is disabled. The double buffering synchronizes the update of the OCR1x Compare
Register to either TOP or BOTTOM of the counting sequence. The synchronization prevents the
occurrence of odd-length, non-symmetrical PWM pulses, thereby making the output glitch-free.
The OCR1x Register access may seem complex, but this is not case. When the double buffering
is enabled, the CPU has access to the OCR1x Buffer Register, and if double buffering is dis-
abled the CPU will access the OCR1x directly. The content of the OCR1x (Buffer or Compare)
Register is only changed by a write operation (the Timer/Counter does not update this register
automatically as the TCNT1 and ICR1 Register). Therefore OCR1x is not read via the High byte
temporary register (TEMP). However, it is a good practice to read the Low byte first as when
accessing other 16-bit registers. Writing the OCR1x Registers must be done via the TEMP Reg-
ister since the compare of all 16-bit is done continuously. The High byte (OCR1xH) has to be
written first. When the High byte I/O location is written by the CPU, the TEMP Register will be
updated by the value written. Then when the Low byte (OCR1xL) is written to the lower eight
bits, the High byte will be copied into the upper 8-bits of either the OCR1x buffer or OCR1x Com-
pare Register in the same system clock cycle.
For more information of how to access the 16-bit registers refer to “Accessing 16-bit Registers”
on page 81.
16.7.1
Force Output Compare
In non-PWM Waveform Generation modes, the match output of the comparator can be forced by
writing a one to the Force Output Compare (FOC1x) bit. Forcing Compare Match will not set the
OCF1x Flag or reload/clear the timer, but the OC1x pin will be updated as if a real Compare
Match had occurred (the COM1x1:0 bits settings define whether the OC1x pin is set, cleared or
toggled).
16.7.2
Compare Match Blocking by TCNT1 Write
All CPU writes to the TCNT1 Register will block any Compare Match that occurs in the next timer
clock cycle, even when the timer is stopped. This feature allows OCR1x to be initialized to the
same value as TCNT1 without triggering an interrupt when the Timer/Counter clock is enabled.
16.7.3
Using the Output Compare Unit
Since writing TCNT1 in any mode of operation will block all compare matches for one timer clock
cycle, there are risks involved when changing TCNT1 when using any of the Output Compare
channels, independent of whether the Timer/Counter is running or not. If the value written to
TCNT1 equals the OCR1x value, the Compare Match will be missed, resulting in incorrect wave-
form generation. Do not write the TCNT1 equal to TOP in PWM modes with variable TOP
values. The Compare Match for the TOP will be ignored and the counter will continue to
0xFFFF. Similarly, do not write the TCNT1 value equal to BOTTOM when the counter is
downcounting.
The setup of the OC1x should be performed before setting the Data Direction Register for the
port pin to output. The easiest way of setting the OC1x value is to use the Force Output Com-
pare (FOC1x) strobe bits in Normal mode. The OC1x Register keeps its value even when
changing between Waveform Generation modes.
Be aware that the COM1x1:0 bits are not double buffered together with the compare value.
Changing the COM1x1:0 bits will take effect immediately.


Similar Part No. - ATmega8A-AU

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
ATMEGA8A ATMEL-ATMEGA8A Datasheet
7Mb / 320P
   8-bit Atmel Microcontroller with 8KB In-System Programmable Flash
ATMEGA8A ATMEL-ATMEGA8A_09 Datasheet
485Kb / 19P
   8-bit with 8K Bytes In-System Programmable Flash
ATMEGA8A ATMEL-ATMEGA8A_14 Datasheet
7Mb / 320P
   8-bit Atmel Microcontroller with 8KB In-System Programmable Flash
More results

Similar Description - ATmega8A-AU

ManufacturerPart #DatasheetDescription
logo
ATMEL Corporation
ATMEGA8 ATMEL-ATMEGA8_06 Datasheet
263Kb / 23P
   8-bit with 8K Bytes In-System Programmable Flash
ATMEGA8 ATMEL-ATMEGA8_08 Datasheet
4Mb / 308P
   8-bit with 8K Bytes In-System Programmable Flash
ATMEGA8A ATMEL-ATMEGA8A_09 Datasheet
485Kb / 19P
   8-bit with 8K Bytes In-System Programmable Flash
ATMEGA8 ATMEL-ATMEGA8_10 Datasheet
520Kb / 25P
   8-bit with 8K Bytes In-System Programmable Flash
ATMEGA48V ATMEL-ATMEGA48V_06 Datasheet
3Mb / 374P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATMEGA88 ATMEL-ATMEGA88_1 Datasheet
369Kb / 10P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT89LP51 ATMEL-AT89LP51 Datasheet
4Mb / 113P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATMEGA8515 ATMEL-ATMEGA8515_10 Datasheet
1Mb / 257P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
AT89S52 ATMEL-AT89S52_08 Datasheet
576Kb / 38P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
ATMEGA88 ATMEL-ATMEGA88 Datasheet
210Kb / 20P
   8-bit Microcontroller with 8K Bytes In-System Programmable Flash
More results


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




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   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