| Electronic Components Datasheet Search |
|
ATMEGA64-16AI Datasheet(PDF) 110 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATMEGA64-16AI Datasheet(HTML) 110 Page - ATMEL Corporation |
|
110 / 393 page ![]() 110 ATmega64(L) 2490L–AVR–10/06 • Bit 0 – TOV0: Timer/Counter0 Overflow Flag The bit TOV0 is set (one) when an overflow occurs in Timer/Counter0. TOV0 is cleared by hardware when executing the corresponding interrupt handling vector. Alternatively, TOV0 is cleared by writing a logic one to the flag. When the SREG I-bit, TOIE0 (T imer/Counter 0 Ov erflow Inte rru pt Enab le ), and TOV0 are set (o ne ), th e Timer/Counter0 Overflow interrupt is executed. In PWM mode, this bit is set when Timer/Counter0 changes counting direction at 0x00. Timer/Counter Prescaler Figure 45. Prescaler for Timer/Counter0 The clock source for Timer/Counter0 is named clk T0S. clkT0S is by default connected to the main system clock clk OSC. By setting the AS0 bit in ASSR, Timer/Counter0 is asyn- chronously clocked from the TOSC1 pin. This enables use of Timer/Counter0 as a Real Time Counter (RTC). When AS0 is set, pins TOSC1 and TOSC2 are disconnected from Port C. A crystal can then be connected between the TOSC1 and TOSC2 pins to serve as an independent clock source for Timer/Counter0. The Oscillator is optimized for use with a 32.768 kHz crystal. Applying an external clock source to TOSC1 is not recommended. For Timer/Counter0, the possible prescaled selections are: clk T0S/8, clkT0S/32, clkT0S/64, clk T0S/128, clkT0S/256, and clkT0S/1024. Additionally, clkT0S as well as 0 (stop) may be selected. Setting the PSR0 bit in SFIOR resets the prescaler. This allows the user to operate with a predictable prescaler. 10-BIT T/C PRESCALER TIMER/COUNTER0 CLOCK SOURCE clk OSC clk T0S TOSC1 AS0 CS00 CS01 CS02 0 PSR0 Clear clk T0 |
|
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 |
| 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 |