Re: Asm sleep - pbp sleep
your code is an uncompilable snippet so its hard to know whats going on
there are issues here
Code:
@ MOVF BAUDCON,0 ‘Is RCIDL idel? Set for Idel ‘For testing
@ MOVWF _Avar ‘For testing
Avar=Avar dig 6 ‘For testing
what bank is baudcon in ?
what bank is Avar in ?
from the looks of it Avar must be byte , how can it ever have a Dig 6
whats wrong with one of these ,one of them will produce efficient code i'm sure
if baudcon & 64 then
avar=1
else
avar=0
endif
or
avar=baudcon.6
or
avar=(baudcon&64) >>6
Warning I'm not a teacher
Bookmarks