I've found the solution
PicBasic insert CLRWDT-commands, before the TO-Bit is checked. But the CLRWDT-command sets the bit !
So I use some asm on the first lines of the programm to save the STATUS-register.
@ movf STATUS,w
@ movwf _dummy
;-)
I've found the solution
PicBasic insert CLRWDT-commands, before the TO-Bit is checked. But the CLRWDT-command sets the bit !
So I use some asm on the first lines of the programm to save the STATUS-register.
@ movf STATUS,w
@ movwf _dummy
;-)
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks