Hi DrGIt would probably be a good idea for you to try and figure out the leading zero issue and let us know what you have tried first (translation: I am too lazy to go through all the code right now). I would suggest, however, that this section is a good place to start:
(0x30 is ascii for zero and 0x20 is ascii for a space, it may be as simple as changing the first addlw 0x30 to addlw 0x20 )Code:
swapf BCDUi, W andlw 0x0F btfsc STATUS, Z movlw 0xF0 ;Modify to print a space in place of 0 addlw 0x30 call LCDChar movf BCDUi, W ;Want this to print a zero if it gets here andlw 0x0F addlw 0x30 call LCDChar
I have just tried your above modification, sorry to report it did not remove the leading zeros.
When I get a chance over the weekend I will look into it further.