I've got an existing project with a button on pin 3 utilizing the internal pull-up (i.e. pressing button, grounds pin 3). I'm researching the possibility of adding a low-power sleep-mode to my project. In order to wake up, I would need to attach a pin-change interrupt to pin 3 before going to sleep.
I read in the attiny 85 datasheet, (section 9.3.4) that bit 3 of PCMSK selects this pin for the pin-change interrupt. I looked through arduino-1.0.3/hardware/tiny-digispark/cores/tiny/* but couldn't figure out if/how it was supported in the arduino/tiny arduino core.
Does anyone know if it's feasible to setup a pin change ISR on pin 3 (with internal pull-up enabled) and use it to wake up from sleep mode?
Also, since timing isn't critical in my sleep mode, I was wondering if I could scale the MCU's frequency down on sleep, then back to 16mhz when waking up, anyone tried this?