Some "Con" statements left over from debug etc code that was stripped out as I said somewhere earlier, and were also used as memory jogger.
NTSC. will appear as this program always sends on screen refresh regardless of whether there is video input or not, it is down to you what you wish to be displayed with or without incoming video, it was for video repeater ident.
This is the part you need to understand about placing text on screen
HEADER:
LINECOUNTER=2 'SET START POSITION ********* line 3 from top (0-2 = 3!)
CHARCOUNTER=23 'SET CURSOR POSITION***********Character position start 23rd from left
GOSUB SETLINE
FOR CHARS2=0 TO 4
READ CHARS2, ASCCHAR
gosub GETSTVCHAR 'CONVERT ASCII TO STV
GOSUB DISPLAYCHAR
NEXT
RETURN
NOVIDEO:
LINECOUNTER=5 'SET START POSITION
CHARCOUNTER=4 'SET CURSOR POSITION
GOSUB SETLINE
FOR CHARS2=6 TO 23 ' FROM EEPROM DATA
READ CHARS2, ASCCHAR
gosub GETSTVCHAR 'CONVERT ASCII TO STV
GOSUB DISPLAYCHAR
NEXT
RETURN
with regards to getting your RPMs on screen the DIG command would probably help,
so if you had a reading of 2400 as rpm in a word byte RPM, I THINK (following is UNTESTED)
ASCCHAR = RPM DIG 1
This gives a value of 2, and as it happens the character matrix in the chip will display 2 as if you look at the table the numbers come first
then
GOSUB DISPLAYCHAR
then
ASCCHAR = RPM DIG 2
This gives a value of 4
and so on to dig 4, you could make a loop to do this.
Not quite sure what happens if the value is below 1000, but you could easily check that prior to doing DIG 4 and put a blank there instead, skipping the DIG 4.
Bookmarks