PICBASIC PRO 16F84 with 16X02 LCD
Hello to all, first time to write here!!!
So I've got a bit of problem getting work mine LCD and uP.....
I've already have connected pins from PORTA.0 to PORTA.3 to pushbuttons with pull-up resistors, and PORTA.4 to transistor which drives relay on mine bord....so I've got whole PORTB emty..and there is where mine LCD is connected, and because of that I must tell pibasic different definition about connection of LCD.....so i did that and still I haven't anything on mine LCD.
This is how i connected PIC16F84 and LCD
PIC LCD
PORTB0 ---> Enable (PIN 6)
PORTB1 ---> RS (PIN 4)
PORTB4 ---> DB4 (PIN11)
PORTB5 ---> DB5 (PIN12)
PORTB6 ---> DB6 (PIN13)
PORTB7 ---> DB7 (PIN14)
PIN 1(GND) i PIN 5 (RW) are grounded (GND)
PIN2 is on +5V, PIN 3 is connected to +5V also via trimmer pot of 10K for contrast.
This is mine code:
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 1
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 0
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
LCDOUT $FE, 1, "HELLO"
LCDOUT $FE, $C0, "WORLD"
That's it...ann I still didn't getting any on LCD.....
LCD is PC1602 HD44780 compatibile.....
Any ideas??