#avr Logs

Jan 28 2020

#avr Calendar

03:27 AM day__ is now known as day
04:13 AM day__ is now known as day
04:44 AM day__ is now known as day
05:29 AM day__ is now known as day
05:49 AM day__ is now known as day
07:01 AM Fuchikoma_ is now known as Fuchikoma
12:19 PM Ellipsis753: If I disable an interrupt using TWDIE, will the event still set the interrupt triggering flag TWDIF?
12:20 PM Ellipsis753: Or will the flag never change if that interrupt isn't enabled?
12:21 PM LeoNerd: The flags are set directly by hardware
12:22 PM LeoNerd: The enable bit determines if that flag triggers an INT vectoring of the CPU
12:28 PM Fuchikoma: You should be able to poll the flag manually
12:30 PM Fuchikoma: "If an interrupt condition occurs while the corresponding interrupt enable bit is cleared, the Interrupt Flag will be set and remembered until the interrupt is enabled, or the flag is cleared by software."
12:30 PM Fuchikoma: So uh... watch out for that
12:32 PM PoppaVic: translation: "If you are polling flags, but not using interrupts, you get the job of flipping flags you polled"
12:33 PM Fuchikoma: Also if you just disable the interrupt, make sure you clear the flag before re-enabling it
12:33 PM PoppaVic: ..which makes a bit of sense, since yer polling is vastly slower than the interrupts, so you do NOT want HW screwing the flag over that you try to test
12:34 PM Fuchikoma: This also applies to the global interrupt enable, not just the individual ones
12:40 PM Ellipsis753: LeoNerd, Fuchikoma, PoppaVic, Thank you. That's perfect. Learnt a few things. :)
12:41 PM PoppaVic: THe docs are a mess, and you generally find out with anger, perseverance, and trivial test programs ;-P
06:24 PM davor_ is now known as davor
11:38 PM day__ is now known as day