setting !option for a watchdog in an sxB program
i've never used a watchdog timer before and i'm having trouble
this snippet is giving me compilation errors in the src file. any help?
program is attached
thanks guys
nick
'Watchdog prescale
\ setb !option.3
\ setb !option.2
\ clrb !option.1
\ clrb !option.0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
this snippet is giving me compilation errors in the src file. any help?
program is attached
thanks guys
nick
'Watchdog prescale
\ setb !option.3
\ setb !option.2
\ clrb !option.1
\ clrb !option.0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
txt
![](/plugins/FileUpload/images/file.png)
3K
Comments
OPTION = %1111_1100
is this sxB line equivalent?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
· You cannot set the option register bit-by-bit.
· You need to set the whole thing at once, like you did in the second post.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
"I'm a man, but I can change, if I have to, I guess" The Red Green Show
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]