I am trying to create a simple application to get the idea of interrupts down and eventually use it for a project that requires a HFINTOSC.
I made a flashing LED. I want the microcontroller to start in the sleep()
mode and for it to wake-up from the sleep mode when a button connected to a pin is pressed.
Waking up from the sleep mode requires interrupts for what I have read, but at the same time, if I am using an HF internal oscillator, the HF internal oscillator is off during the sleep mode. Button inputs require a clock for them to work, right?