MCUdude / MajorCore

An Arduino hardware package for ATmega8515 and ATmega162
GNU Lesser General Public License v2.1
39 stars 10 forks source link

Pin change interrupts... PCICR? #24

Closed emolatur closed 4 years ago

emolatur commented 4 years ago

There's a 100% chance I'm missing something, but the steps for using PC interrupts on arduino projects cannot be applied using majorcore because "'PCICR' was not declared in this scope"

MCUdude commented 4 years ago

It depends on your target. ATmega8515 does not support PCINT's at all. ATmega162 has PCINT on some pins, but the register names may be slightly different. Look it up in the ATmega162 datasheet, and the iom162.h definition file.