
Originally Posted by
Darrel Taylor
On an 18F, banking problems don't show up till you have more than ~200 bytes worth of variables.... You have 3. Not including the array, which is handled nicely by the FSR0 indirect.
One thing your PBP version has, that the ASM doesn't, is clearing an OERR condition (CREN toggle).
OERR locks up the USART until cleared, and many bytes could be received before the program looks for data. So it's probably overflowed before it gets to the ASM routine.
<br>
Bookmarks