Electronics > Projects, Designs, and Technical Stuff
thoughts on my project
Prehistoricman:
Is the instruction called sleep? If so, you can write it in inline assembly:
asm volatile("sleep")
ali6x944:
it gave me another error:
--- Code: ---main.c:130:13: error: use of undeclared identifier 'asm'
--- End code ---
Prehistoricman:
Google says try to use __asm__ instead
ali6x944:
--- Quote from: Prehistoricman on March 14, 2020, 07:58:32 pm ---Google says try to use __asm__ instead
--- End quote ---
that works :D
but will it wake up if the IOC flag is set? or does it need a special interrupt routine/function?
and for the doze mode will the reduction in cpu speed effect the RESULT update in the ccp register?
Prehistoricman:
--- Quote from: ali6x944 on March 15, 2020, 05:49:36 am ---but will it wake up if the IOC flag is set? or does it need a special interrupt routine/function?
and for the doze mode will the reduction in cpu speed effect the RESULT update in the ccp register?
--- End quote ---
Generally the CPU wakes up on interrupt. So interrupt on change should make wake on change. Just try it dude!
I don't see why CPU speed would affect any of the peripherals. The peripherals still run on the fast clock and they should operate as normal.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version