Haha, yeah, wow :-)
You post a snippet and you get complaints about it not working because someone can't be bothered to clear TRIS and ANSEL by them them selves. So, next time you post a fully...
Type: Posts; User: HenrikOlsson; Keyword(s):
Haha, yeah, wow :-)
You post a snippet and you get complaints about it not working because someone can't be bothered to clear TRIS and ANSEL by them them selves. So, next time you post a fully...
Thanks for stepping in Richard, I should've mentioned my example was for 18F series of course. Yeah, the padding... It's a tradeoff, either waste memory or waste some time :-)
In your code I see
...
LCDOUT $FE,D,$14 'Display char and move cursor to next char
That line of code does NOT do what the comment says.
You're telling it to interpret whatever you read from EEPROM (into the D variable)...
Here's one way, a bit wasteful on FLASH with the fixed length but compared to individual HSEROUT (or LCDOUT) statements I'd imagine it's quite a bit smaller.
Strings CON EXT
i VAR BYTE
Char...