avr-chat
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[avr-chat] Using 32.768Khz crystal for timer 2
From
:
Ori Idan
Subject
:
[avr-chat] Using 32.768Khz crystal for timer 2
Date
:
Wed, 16 Apr 2008 10:30:47 +0300
I have a simple system with 32.768Khz crystal connected to XTAL1 and XTAL2
Do I need a special operation to enable it?
I did the following initializations in order to get a 1sec interrupt:
TCCR2B = 0x05; /* Osc/128 prescaler */
ASSR = _BV(AS2);
TIMSK2 = _BV(TOIE2); /* enable overflow interrupt */
However no interrupt was generated.
What did I do wrong?
--
Ori Idan
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[avr-chat] Using 32.768Khz crystal for timer 2
,
Ori Idan
<=
Re: [avr-chat] Using 32.768Khz crystal for timer 2
,
Neil Davey
,
2008/04/16
Re: [avr-chat] Using 32.768Khz crystal for timer 2
,
Ori Idan
,
2008/04/16
Re: [avr-chat] Using 32.768Khz crystal for timer 2
,
Neil Davey
,
2008/04/16
Prev by Date:
Re: [avr-chat] ATmega88 + triple 7 Segment Display (CC)
Next by Date:
Re: [avr-chat] Using 32.768Khz crystal for timer 2
Previous by thread:
[avr-chat] Re: AVR-chat Digest, Vol 39, Issue 3
Next by thread:
Re: [avr-chat] Using 32.768Khz crystal for timer 2
Index(es):
Date
Thread