-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on 1284P - have fix #4
Comments
Looks like this was fixed long ago.
I'm closing this old issue. If there's still a problem, please reopen and explain... |
Sorry, but it is not fixed. According to ATmega164A/164PA/324A/324PA/644A/644PA/1284/1284P datashhet (Section 1.1 - Pinout - PDIP...), ManiacBug PIN mapping
Therefore, the code should be changed from
to
|
I confirm the problem is not solved. This code : Produces correct result while this code Creates a very thin spike instead of the square wave the above code produces |
I just ran into the same issue. Things work fine on the ATmega1284 when you modify // Mighty-1284 - Maniacbug
//
#elif defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega1284__)
#define TIMER1_A_PIN 13 // PD5
#define TIMER1_B_PIN 12 // PD4
#define TIMER1_ICP_PIN 14 // PD6
#define TIMER1_CLK_PIN 1 // PB1
#define TIMER3_A_PIN 6 // PB6
#define TIMER3_B_PIN 7 // PB7
#define TIMER3_ICP_PIN 5 // PB5
#define TIMER3_CLK_PIN 8 // PD0
#endif This also enables TimerOne to run on a non-P ATmega1284. Tested with an ATmega1284-MU. |
TimerOne is working on 328P AND the 644P but not on 1284P.
I am using the latest TimerOne and Mighty 1284 core.
Tried on IDE 1.0.6 and 1.6.4. with more than one chip.
I noticed a diff in pins between the 644 and 1284.
elif defined(AVR_ATmega644P) || defined(AVR_ATmega644)
#define TIMER1_A_PIN 13
#define TIMER1_B_PIN 12
. . . versis . . .
elif defined(AVR_ATmega1284P)
#define TIMER1_A_PIN 12 // PD5 <<<<<< SB 13?
#define TIMER1_B_PIN 13 // PD4 <<<<<<< SB 12?
I switched 12 and 13 for the 1284 and it's working now.
Hopefully it's a typo and I don't have some kind of bizarro problem :)
Thanks for a great lib and all the work to support so many devices.
John
The text was updated successfully, but these errors were encountered: