While implementing interrupts for Atmega16 in old 2015 vintage code I found this -- what must be a bug -- also in current ff-xc8.asm. Source is now #ifdef SMCR m_out SMCR, r_zero #else m_in t0, MCUCR cbr t0, (1<<SE) m_out MCUCR, r_zero #endif the last code line should be m_out MCUCR, t0 If not, the ISCxx-bits gets reset all the time so flank-trigged interrupts are impossible. /Micke
Hi all! I don't know if anyone is interested but I ported FF to atmega16a during the weekend. Seems to run as expected. As I use AtmelStudio (beacuse that is what we use in the lab at the uni) I started off with a an old FF-code from 2015. I imagine redoing the whole thing in XC would be the more modern approach but I'm happy as it is. Cheers Micke
Thanks for the tip! And an ever bigger thanks for the Flashforth! It really is a...
(This is also a test to see if I got the formatting correct:) Here comes a sqrt-routine,...
Hi all! For reference here are two words I use to communicate with an external DAC...
Hi all! For reference here are two words I use to communicate with an external DAC...
Hi all! For reference here are two words I use to communicate with an external DAC...