Hi everyone hope you can help me.
I have been updating a pic 16f876A program to run on a 18F2525 @8 MHz
header details are
'pic18f2525
DEFINE OSC 8
OSCCON = %11111111
DEFINE LOADER_USED 1 ' Comment out if not using boot-loader
INCLUDE "modedefs.bas"
INTCON2.7 = 0 'enable weak pull-ups on PORTB
but when I run it crashes after about 1 minute every time except when I remove this line
SerIn2 portC.7,16572,600, Loop,[wait("FMS"),dec3 B0]
It seems simple enough but I am just stuck.
the transmit bit works fine
SEROUT2 PortC.6,16572,["LOADX",#volt1,"BATY",#TXBat]
what could it be ?
any suggestions
many thanks again
John
Bookmarks