Hello.
Outputs same codes for abc as for ABC. Seems like characters are converted to uppercase?Code:topline var byte [6] arraywrite topline, ["ABCabc"] FOR X=0 TO 6 LCDOUT $FE, $01, DEC topline[x] pause 1000 next
Any ways to fix this?
Hello.
Outputs same codes for abc as for ABC. Seems like characters are converted to uppercase?Code:topline var byte [6] arraywrite topline, ["ABCabc"] FOR X=0 TO 6 LCDOUT $FE, $01, DEC topline[x] pause 1000 next
Any ways to fix this?
What device are you running this on?
Here it works fine (18F57Q43)Outputs:Code:Start: HSEROUT["Start", 10,13] arraywrite topline, ["ABCabc"] FOR X=0 TO 6 HSEROUT [DEC topline[x],10,13] nextWith the 23 at the end being because you're reading past the last character written to the array.Code:Start 65 66 67 97 98 99 23
I don't have that chip handy but I did compile the code for it and looked at the .lst file. Needless to say I can't see anything strangeAs you can see it loads 41,42,43,61,62,63 (hex) so no conversion done. Not there at least.Code:movlw low (low (_topline)) movwf R5 clrf (R5) + 1 movlw 041h clrf PCLATH call ARRAYWRITE movlw 042h clrf PCLATH call ARRAYWRITE movlw 043h clrf PCLATH call ARRAYWRITE movlw 061h clrf PCLATH call ARRAYWRITE movlw 062h clrf PCLATH call ARRAYWRITE movlw 063h clrf PCLATH call ARRAYWRITE
/Henrik.
How are you checking the output? Is that what's displayed on an LCD? Maybe the issue is with the LCD. If you have a scope with comm protocol, verify the output from the PIC.
I deleted all the code and defines
did everything from blank sheet, and now it works properly....
Bookmarks