Re: AVR, polling INT0 IRQ bit - help?



On Jul 15, 12:58 pm, "John B" <spamj_baraclo...@xxxxxxxxxxxxxxxxxxx>
wrote:

possible that the mega169 uses a different block but I would think
that's unlikely as they would have to rewrite and test the Verilog.

Of course the problem turns out to be my fault (well, someone else in
my team originally, but my fault for not spotting it). Our circuit can
use the 169/329/649 but initial bring-up was done on the 169. Someone
forgot or ignored my advice to include avr.h and instead included
mega169.h

MOST of the registers are the same between 169 and 32/649 but not all
of them. The PCINT bit assignments in particular are different!

Also, it is not necessary to set the interrupt mask for PCIE1 in order
to see PCIF1 toggling.

.