I've run into a bit of a brick wall. I have a UART connection to a GSM modem, and everything works great.
But I also need to enable a Pin Change Interrupt on PA5 (Not used for anything else but the interrupt).
The problem arrives when I try to set the PCINT5 bit in the PCMSK0 register.
First thing, the PCINT5 definition is not included, so no key word highlight in AVR studio 6.2
If I try:
PCMSK0 = (1 << PCINT5);
I get a :
Error 1 'PCINT5' undeclared (first use in this function)
So I tried a more direct approach:
PCMSK0 = 0b00100000;
It compiles, but when I run the program, the UART and everything else stops working.
I comment out that line, and everything works again.
Any ideas on what I am doing wrong?