Has anybody seen this before:
Basically the PIR1.RC1IF flag is not being cleared by reading RCREG1 and I can't see any way this could happen.
The device is a 18F6622 and the code was ported working from a 16F887.
I've tried every configuration change that I can think of and checked that the assembler code does what I think it should.
However after the first byte is received the flag goes high and a loop of RCREG reads doesn't ever reset it.
There's no further serial data coming in and I check the error flags.
Any ideas?
Thank you.
Basically the PIR1.RC1IF flag is not being cleared by reading RCREG1 and I can't see any way this could happen.
The device is a 18F6622 and the code was ported working from a 16F887.
I've tried every configuration change that I can think of and checked that the assembler code does what I think it should.
However after the first byte is received the flag goes high and a loop of RCREG reads doesn't ever reset it.
There's no further serial data coming in and I check the error flags.
Any ideas?
Thank you.