Hi all,
I've a interesting quirk in a program on a pic 18f2523. Its in what is now quite a large program. In a subroutine I have this:
BTFSS STATUS,Z
BSF PUMPF, 1
Simple enough I thought, however it causes my program to hang (in a I2C communication waiting for a start)
If I change it to;
BTFSS STATUS,Z
CALL BITSET
BITSET BSF PUMPF,1
RETLW 0
All is well! I've checked I haven't mapped the file to a sfr and made sure its in the right bank. Ok I've got a way round it but it seems to me the first should work? Any ideas?
Cheers Geoff
I've a interesting quirk in a program on a pic 18f2523. Its in what is now quite a large program. In a subroutine I have this:
BTFSS STATUS,Z
BSF PUMPF, 1
Simple enough I thought, however it causes my program to hang (in a I2C communication waiting for a start)
If I change it to;
BTFSS STATUS,Z
CALL BITSET
BITSET BSF PUMPF,1
RETLW 0
All is well! I've checked I haven't mapped the file to a sfr and made sure its in the right bank. Ok I've got a way round it but it seems to me the first should work? Any ideas?
Cheers Geoff