You don't show it in your example, but do you have DISABLE before the
loopdata interrupt sub-routine?
You don't show it in your example, but do you have DISABLE before the
loopdata interrupt sub-routine?
Another thing you can't really tell from the partial program, is if the program can "Fall into" the interrupt handler without an interrupt. As shown, it would.
That might cause stack underflow problems.
.
DT
Ciao.
Yes, I have DISABLE before the loopdata interrupt sub-routine.
My code run for nothing in dummy:, when receive an character from PC run the interupt and read data from EEPROM end send it to PC with HSEROUT.
I dont think can "Fall into" the interrupt handler without an interrupt.
Some times (verry rare) my code works without problem, but most of times I have this random error.
The same code with PIC16F876 works fine.
Thanks.
I wait any way other ideas.
Bookmarks