/***************************************************************************
; Function: SetCurrentTextPosition
;
; Description: sets the cursor position to the <column>
; and <row> specified.
;
; Inputs: UBYTE column
; UBYTE row
;
; Returns: nothing
;**************************************************************************/
void SetCurrentTextPosition(UBYTE column, UBYTE row)
{
/* Combine address & command */
if ( row == 1) column |= 0xC0; // for bottom line
else column |= 0x80; // for top line
/* Send command to LCD */
WriteCtrl(column>>4);
WriteCtrl( column & 0xF);
}
Please try this function