;I/O PORTS - ASSOCIATED REGISTERS
;This type of EQU is possible when registers are defined
;ahead in the respective .inc file for the processor.
PORT_TEST EQU PORTA
PORT_LCD_CTRL EQU PORTA
PORT_INPUTS EQU PORTB
PORT_OUTPUT EQU PORTD
PORT_LCD_DATA EQU PORTD
;---------------------------------------------------------
;I/O PINS
;LCD DISPLAY
#DEFINE LCD_E PORT_LCD_CTRL,2 ;LCD Enable control
#DEFINE LCD_RS PORT_LCD_CTRL,3 ;LCD Register selection control
;LCD_RW control pin is not used. Its pin in the LCD is kept grounded
;No "write"; only "read" instructions. A delay replaces BUSY flag check.