Hi Guys can anyone help me . I am playing around with Pin Change Interupts on the Arduino UNO WIFI R4. I am trying to setup the Port D and Pin 7 with the following code.
I believe pin change interrupts behave differently on the UNO R4 Wifi than a standard UNO, as the R4 wifi uses an ARM Cortex-M4, so it’s a different architecture from an ATMega328P. Standard interrupts will behave the same, hence you had no issue in that regard.
Maybe investigate some external libraries or other functions that will emulate Pin Change Interrupts? Your code looks fine, provided the PCICR and PCMSK2 pin locations are indeed correct.
Thanks Zach. I think you are correct. Different architecture . Of course.
I will try with a Standard UNO and I bet it will work.
I have not been on many FORUMs before and I appreciate your kind welcome.
Best
John
2 Likes
And you can get our latest projects and tips straight away by following us on: