;****************************************************************************** ; ; Hitachi LCD Include file ; kg May' 95 ; ;****************************************************************************** ; ; ; LCD Module commands ; ; Clear and home commands (not masks) CLR_HOME EQU b'00000001' ; Clear and Home CUR_HOME EQU b'00000010' ; Cursor Home ; Entry Mode masks: Increment/decrement cursor, shift display on or off ENTRY_MASK EQU b'00000100' ; Entry mode mask INC_CURS EQU b'00000010' ; Entry mode: Increment Cursor DEC_CURS EQU 0 SHIFT_ON EQU b'00000001' ; Entry mode: display shift SHIFT_OFF EQU 0 ; Display on/off masks, cursor on/off, blink on/off DISP_MASK EQU B'00001000' ; Display command mask DISP_ON EQU B'00000100' ; Display on DISP_OFF EQU 0 CURS_ON EQU B'00000010' ; Cursor on CURS_OFF EQU 0 BLINK_ON EQU B'00000001' ; Blink of cursor position on BLINK_OFF EQU 0 ; Cursor or Display shift masks, right or left SHIFT_MASK EQU B'00010000' ; The display shift command mask SHIFT_DISP EQU B'00001000' ; Shift the display (not cursor) SHIFT_CURS EQU 0 ; Shift cursor posintion SHIFT_RIGHT EQU B'00000100' ; Shift right SHIFT_LEFT EQU 0 ; Shift left ; Function set masks: Interface length, No lines, font FUNC_MASK EQU B'00100000' ; Function set DL8 EQU B'00010000' ; 1 = 8 BIT interface DL4 EQU 0 L2 EQU B'00001000' ; 1 = 2 Lines L1 EQU 0 F5x10 EQU B'00000100' ; 1= 5*10, else 5*7 F5x7 EQU 0 ; Set CG ram address mask (cg =character generator ram) CG_POS_MASK EQU B'01000000' ; Madk to set cg address ; Set DD ram address mask (dd= display data) DD_POS_MASK EQU b'10000000' ; Mask to set dd address (position) LINE_2 EQU d'64' ; Position of start of line 2