diff options
author | ukw | 2011-09-18 15:12:21 +0000 |
---|---|---|
committer | ukw | 2011-09-18 15:12:21 +0000 |
commit | 764bd2bc01160f6021640babf30d2b52c39557ee (patch) | |
tree | 4e0131d9b29f8eae1cb9b7c4c6b41037fb9b4dc4 | |
parent | 476267f4e9854c75c890799df29225e61623c3cc (diff) | |
download | irmp-764bd2bc01160f6021640babf30d2b52c39557ee.zip |
Corrected Timer for ATTiny85
git-svn-id: svn://mikrocontroller.net/irmp@81 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
-rw-r--r-- | README.txt | 2 | ||||
-rw-r--r-- | main.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ IRMP - Infrared Multi Protocol Decoder
--------------------------------------
-Version IRMP: 2.0.0-pre7 12.09.2011
+Version IRMP: 2.0.0-pre8 18.09.2011
Version IRSND: 2.0.0-pre7 12.09.2011
Dokumentation:
@@ -33,7 +33,7 @@ void timer1_init (void)
{
#if defined (__AVR_ATtiny45__) || defined (__AVR_ATtiny85__) // ATtiny45 / ATtiny85:
- OCR1A = (F_CPU / F_INTERRUPTS / 4) - 1; // compare value: 1/15000 of CPU frequency, presc = 4
+ OCR1C = (F_CPU / F_INTERRUPTS / 4) - 1; // compare value: 1/15000 of CPU frequency, presc = 4
TCCR1 = (1 << CTC1) | (1 << CS11) | (1 << CS10); // switch CTC Mode on, set prescaler to 4
#else // ATmegaXX:
OCR1A = (F_CPU / F_INTERRUPTS) - 1; // compare value: 1/15000 of CPU frequency
|