Quote Originally Posted by srspinho View Post
Last Monday I saw your post here. So, I got it and tried to compile it (setting the MCSP to work with the 18F4620), but got some errors due to some missing variables, like "font", "digcount" and "offset" for example.
Is this source to be used as an Include and I have to do some work to complement it or I am missing something else ?
I´m sorry for this stupid (?) question...
That's what I get for shaving down another program and posting it, in a hurry no less...
I'll check what I posted and get a new file up there when I get a chance...figure by the weekend for sure.

In the meanwhile,

font var byte[1024]
used to hold the whole font which is copied out of eeprom into internal ram. If your PIC doesn't have 1024 available RAM, you can't use this example. In fact, your PIC MUST have 1024 RAM and at least 512 EEPROM available. When I get a chance, I'll post a 2nd version that won't require copying the font out of EEPROM, thereby won't require 1024 free ram.

digcount var byte
used in the clcddigout routine to output a number, sorta like "lcdout DEC variable"
if the number in the variable is $ffff, and you used digcount = 5, the output will be 65535, if you used digcount = 4, the output will be 5535, digcount = 2, output will be 35, and so on.

offset var byte
used in the clcddigout routine to specify a starting digit to output,
offset=0 means the whole thing,
offset=1 means starting from the 10's digit,
offset=2 means starting from the 100's digit, and so on...

Let me know if/when you get it working for you...and like I said, I'll double-check that file I posted.