Hi all ,
1)
I need debounce a button with i use an interrupt . Debounce button in "normal" program is easy , check change status on button, then __delay_cycles(); and check status again . I dont know how make this debouncing delay on button which call interrupt vector.
for imagine
button press
delay
check if still press
make interrupt
2)
How i go sleep MSP and wake up mcu using ONE button ? Get sleep is easy, i set on bit sr register to LMP mode , thats ok, but how i wake up from LMP same button ?
Thank you very much