Hi every one! this is my first post here..
Im trying to send from the pic a line text " hello" to the LCD. My first try was successfull with PIC SIMULATOR IDE. I programmed the code and used the LCD simulator..and it showed: "Hello". Today I programmed the code using Micro code studio plus and Pic basic pro.
This is an extract from Micro code studio Help about LCDOUT
PICBasic asumes the LCD is connected to specific pins unless told otherwise. It assumes the LCD will be used with a 4-bit bus with data lines DB4 - DB7 connected to PICmicro PORTA.0 - PORTA.3, Register Select to PORTA.4 and Enable to PORTB.3. It is also preset to initialize the LCD to a 2 line display.
so i´ve used this diagram with the exeption that i connected ra4 directly to RS pin in LCD, and i´ve connected to MCLR with Vdd with a 10k resistor, the capacitor for contrast in the LCD is a 10k one, the vss pin in the micro is connected directly to ground and vdd pin directly to +5v:
**broken link removed**
this is my code:
pause 1000
loop:
High PORTB.2 ' turn on a Led
pause 500
LCDOUT $FE, 1, "Hello"
low PORTB.2 ' turn off the led
pause 500
goto loop
end
i didn´t use DEFINE coz according to the LCDOUT statement i´ve showed to you, from Microcode studio help. The diagram and the code are just what i need. Just for the record: i´ve read all the info in the internet about interfacing pics and LCD
The LCD isn´t showing anything. But the led is actually working.
Can anybody help me???
Im trying to send from the pic a line text " hello" to the LCD. My first try was successfull with PIC SIMULATOR IDE. I programmed the code and used the LCD simulator..and it showed: "Hello". Today I programmed the code using Micro code studio plus and Pic basic pro.
This is an extract from Micro code studio Help about LCDOUT
PICBasic asumes the LCD is connected to specific pins unless told otherwise. It assumes the LCD will be used with a 4-bit bus with data lines DB4 - DB7 connected to PICmicro PORTA.0 - PORTA.3, Register Select to PORTA.4 and Enable to PORTB.3. It is also preset to initialize the LCD to a 2 line display.
so i´ve used this diagram with the exeption that i connected ra4 directly to RS pin in LCD, and i´ve connected to MCLR with Vdd with a 10k resistor, the capacitor for contrast in the LCD is a 10k one, the vss pin in the micro is connected directly to ground and vdd pin directly to +5v:
**broken link removed**
this is my code:
pause 1000
loop:
High PORTB.2 ' turn on a Led
pause 500
LCDOUT $FE, 1, "Hello"
low PORTB.2 ' turn off the led
pause 500
goto loop
end
i didn´t use DEFINE coz according to the LCDOUT statement i´ve showed to you, from Microcode studio help. The diagram and the code are just what i need. Just for the record: i´ve read all the info in the internet about interfacing pics and LCD
The LCD isn´t showing anything. But the led is actually working.
Can anybody help me???
Last edited: