I'm having a strange reaction with the clear command. The following simple code does not work.
The system just hangs.
OSCCON = %01110001 'Int CLK 8MHz
ADCON1 = 15 ' all digital
DEFINE OSC 8 '8MHz
p_DebugTx Var PORTB.5
Baud96YesIvn CON 16468
I var word
Clear
I = 0
MainLoop:
I = I + 1
Pause 1000
SERout2 p_DebugTx, Baud96YesIvn, [dec I, 13, 10]
Goto MainLoop
If I take out the clear command, the code works fine.
The clear command has always worked for me when using the 18F458 chips but it just doesn't want
to work on this 18F4525 chip. Any thoughts on the matter would be greatly appreciated.
Kind Regards,
Eric
Bookmarks