Post Created date
ASM program: External interrupts won't work in ATMega8
KerimF wrote:  cbr flag_reg, BPF Oh, I've really missed this and never cleared BPF flag. However, it still doesn't work.
Friday, 21 June 2019 - 14:34
ASM program: External interrupts won't work in ATMega8
Kartman wrote:You want to save/restore SREG in your isr. Could you please make it more clear to me? Should i save SREG at the beginning of the ISR and restore it in the end...
Friday, 21 June 2019 - 13:48
ASM program: External interrupts won't work in ATMega8
KerimF wrote:Try adding: Unfortunately no effect.
Friday, 21 June 2019 - 13:37
ASM program: External interrupts won't work in ATMega8
Kartman wrote:but the dec instruction doesn't touch the flags If I understand this correctly, http://ww1.microchip.com/downloads/en/devicedoc/atmel-0856-avr-instruction-set-...
Friday, 21 June 2019 - 13:30
ASM program: External interrupts won't work in ATMega8
KerimF wrote: You may like presenting the code that you have and is related to INT0; so we can both analyse it. The whole code is on GitHub Gist, please check the link...
Friday, 21 June 2019 - 12:57