Timeline for Setting timer3 in CTC mode - conflict with servo library
Current License: CC BY-SA 3.0
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 5, 2019 at 16:02 | history | edited | VE7JRO |
edited tags
|
|
Apr 13, 2017 at 12:50 | history | edited | CommunityBot |
replaced http://arduino.stackexchange.com/ with https://arduino.stackexchange.com/
|
|
Dec 11, 2014 at 0:58 | vote | accept | UserK | ||
Dec 11, 2014 at 0:46 | answer | added | BrettFolkins | timeline score: 3 | |
Dec 11, 2014 at 0:05 | comment | added | UserK | @BrettM Could you please answer the question with the suggestions provided | |
Dec 11, 2014 at 0:04 | history | edited | UserK | CC BY-SA 3.0 |
deleted 13 characters in body
|
Dec 10, 2014 at 19:57 | history | edited | UserK | CC BY-SA 3.0 |
added 29 characters in body
|
Dec 10, 2014 at 19:35 | history | edited | UserK | CC BY-SA 3.0 |
Correction in code
|
Dec 10, 2014 at 19:23 | history | edited | UserK | CC BY-SA 3.0 |
Added new infos
|
Dec 10, 2014 at 18:54 | comment | added | BrettFolkins | You will need to load ORC3B instead of ORC3A yes. Also you need to enable the Compare B interrupt in TIMSK3 (change OCIE3A to OCIE3B) | |
Dec 10, 2014 at 13:34 | comment | added | UserK | @BrettM I've tried with COMPB. It compiles but the timer doesn't work. Should I set te output Compare Register OCR3B to 625 instead of OCR3A? | |
Dec 9, 2014 at 19:58 | comment | added | Gerben |
You are right. They are just hogging all timers. I guess you have to alter the library slightly by removing the #define _useTimer3 line, or try putting a #undef _useTimer3 right after the include.
|
|
Dec 9, 2014 at 18:03 | comment | added | UserK | @Gerben Thx, I think I would get the same issue using timer1 since it is used by the servo library as well | |
Dec 9, 2014 at 18:01 | comment | added | UserK |
Haven't tried it yet, I'll do it asap. How many timers are available considering that I'm using functions like millis() , micros() , servo, serial and i2c communication?
|
|
Dec 9, 2014 at 17:35 | comment | added | BrettFolkins | Servo defines interrupt functions for timers 1,3,4 and 5 on megas for COMPA. How about using COMPB? | |
Dec 9, 2014 at 17:09 | comment | added | Gerben | Just use Timer1, 4 or 5 instead. | |
Dec 9, 2014 at 11:43 | history | tweeted | twitter.com/#!/StackArduino/status/542283319569047553 | ||
Dec 9, 2014 at 8:58 | comment | added | UserK | @jfpoilpret Maybe changing the timer will solve the problem. | |
Dec 9, 2014 at 8:57 | comment | added | UserK | @jfpoilpret yes, I'm using motors. I will add the lines in the question. I've read that the servo library uses timer1 on the atmega328. | |
Dec 9, 2014 at 6:53 | comment | added | TMa | Servo.cpp probable does also ISR(TIMER3_COMPA_vect) | |
Dec 9, 2014 at 5:34 | comment | added | jfpoilpret | Do you use the servo library in your progam or not? | |
Dec 9, 2014 at 2:20 | history | asked | UserK | CC BY-SA 3.0 |