Even if it's always a good practice, LCDOUT handle it for you.
LCDOUT "a"
.LST
Code:0006 1683 02798 bsf STATUS, RP0 ; Point to trises 0007 1186 02799 bcf LCD_EREG, LCD_EBIT ; Set E to output 0008 1205 02800 bcf LCD_RSREG, LCD_RSBIT ; Set RS to output 0009 1205 02801 bcf LCD_RWREG, LCD_RWBIT ; Set RW to output 02802 if ((LCD_BITS) == 8) 02803 clrf LCD_DREG ; Set port to all output 02804 else MPASM 5.14 A.ASM 4-23-2008 10:43:15 PAGE 3 LOC OBJECT CODE LINE SOURCE TEXT VALUE 02805 if ((LCD_DBIT) == 0) 000A 30F0 02806 movlw 0f0h 02807 else 02808 movlw 0fh 02809 endif 000B 0585 02810 andwf LCD_DREG, F ; Set proper half of port to output


Even if it's always a good practice, LCDOUT handle it for you.


Bookmarks