Hi,
Tacke all j14 jumpers and use the jumper wires to conect the port and lcd
Conections:
J14 - PIC PORT
PIN2 - PortB.2
PIN3 - GND
PIN4 - PortB.3
PIN11 - PortB.4
PIN12 - PortB.5
Pin13 - PortB.6
PIN14 - PortB.7
*************************************************
@ Device HS_OSC ' High Speed Crystal
define OSC 20
Include "modedefs.bas" ' Include serial modes
' Define LCD registers and bits this time not use it for later apps..
Define LCD_DREG PORTB 'Lcd D 4-bit parallel register starts at PortB.4 to PortB.7
Define LCD_DBIT 4
Define LCD_RSREG PORTB
Define LCD_RSBIT 2
Define LCD_EREG PORTB
Define LCD_EBIT 3
Define LCD_COMMANDUS 2000 ' Command Delay (uS)
Define LCD_DATAUS 50 ' Data Delay (uS)
DefineLCD_LINES 2 'Number lines on LCD
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
LCDOut $FE, 1 ' Clear screen
Pause 500 ' Wait .5 second
LCDOut "Ola Paulo Filipe Santos" ' Display "Ola Paulo Filipe Santos"
End
************************************************** ******
Have fun.




Bookmarks