how to program serial LCD using pic16f84

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

how to program serial LCD using pic16f84

Postby jeraa » Tue Sep 06, 2011 8:10 pm

hi,

anyone pls help me to program serial LCD using basic compiler,
i already try this but not work

pause 1000
serout 1, n2400, (254,1)
pause 2
serout 1, n2400, ("testing 123.")

hope anyone can help me
jeraa
Freshie
 
Posts: 4
Joined: Tue Sep 06, 2011 8:00 pm

Re: how to program serial LCD using pic16f84

Postby ober » Tue Sep 06, 2011 10:04 pm

Hi, what type of serial LCD? Some details on the LCD and connection should be helpful.

Also have you tested whether the program is loaded into PIC and it is running?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: how to program serial LCD using pic16f84

Postby jeraa » Wed Sep 07, 2011 8:05 am

im using Serial LCD (2x16)
Product Code : DS-LCD-SRL162

i think the program running. i use led to test when the program start and before program end..
jeraa
Freshie
 
Posts: 4
Joined: Tue Sep 06, 2011 8:00 pm

Re: how to program serial LCD using pic16f84

Postby ober » Wed Sep 07, 2011 1:27 pm

Are you sure the command of serial out in SPI format? Because the LCD you get is in SPI format, but the code you wrote seem to be UART format.

How is the connection from serial LCD to PIC pin?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: how to program serial LCD using pic16f84

Postby jeraa » Wed Sep 07, 2011 2:30 pm

im not sure about the format, what the difference between SPI and UART format?

i refer the connection from serial LCD to PIC pin from user manual
(http://www.cytron.com.my/viewProduct.ph ... CD%20(2x16))

pin1 (vss) - GND(0V)
PIN2(VDD)- VCC(5V)
PIN3 (V0)-5K PRESET
PIN4(E)-RB0
PIN5(S/D)-RB1
PIN6(CLK)-NOT CONNECTED
jeraa
Freshie
 
Posts: 4
Joined: Tue Sep 06, 2011 8:00 pm

Re: how to program serial LCD using pic16f84

Postby ober » Wed Sep 07, 2011 7:08 pm

jeraa WROTE:im not sure about the format, what the difference between SPI and UART format?

i refer the connection from serial LCD to PIC pin from user manual
(http://www.cytron.com.my/viewProduct.ph ... CD%20(2x16))

pin1 (vss) - GND(0V)
PIN2(VDD)- VCC(5V)
PIN3 (V0)-5K PRESET
PIN4(E)-RB0
PIN5(S/D)-RB1
PIN6(CLK)-NOT CONNECTED

Well, there is huge different between SPI and UART, though both are under serial communication :D
My advise is to study first the UART and SPI, else you can try to use the sample source code given under the serial LCD product page. I think the User's Manual should have shown the sample connection.

The hardware connection and software are totally different between SPI and UART.

Cytron do not carry any UART LCD yet.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: how to program serial LCD using pic16f84

Postby jeraa » Wed Sep 07, 2011 8:19 pm

ok thanks for the advise... ;)
jeraa
Freshie
 
Posts: 4
Joined: Tue Sep 06, 2011 8:00 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron