/* Set the start address of display to specified address.  */
void LCD1602SetCursor(unsigned char ucRow, unsigned char ucCol)
/* Set the start address of display to specified address.  */
void LCD1602SetCursor(unsigned char ucRow, unsigned char ucCol)
{
    unsigned char ucRowOffset[] = { 0x00, 0x40, 0x14, 0x54 };
    if(ucCol<LCD1602Dev.ucNumCols&&ucRow<LCD1602Dev.ucNumRows)
    {
        LCD1602IICWriteCmd(LCD1602IIC_SETDDRAMADDR | (ucCol + ucRowOffset[ucRow]));
    }
}