(you are viewing a thread; or go back to
list of threads)
SERIAL LCD (by robi)
HI MGP I buy a serial lcd model STD1602H from ebay . are its ok for ld micro.pls help me.if this ok so please post a sample ld file for its.
thanks
(no subject) (by MGP)
Why do not you make this one, works very well and you have a program example.
If you buy one, you must select all the control codes yourself, because all serial displays have their own codes.
A 16f628a costs ~ 2 $ and a display ~ 3 $.
I also use this one for all my tests, you can also insert a 4x20 char without adjustments, just modify the control software in ldmicro.
https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller
(no subject) (by robi)
sir please now i already buy this, i need only one string in first line . and the second line one variable value . i will buy the other but other but this will reach after 35 days in my country. so i request u for this .
thanks
(no subject) (by MGP)
Do you have the datasheet with the cursor control codes?
(no subject) (by robi)
ok i will contact to seller they will send me.
thanks
(no subject) (by robi)
DEAR MGP
THE SELLER SAY ONLY
<<<<The serial LCD takes care of all the HD44780 commands allowing seamless integration with any mi. .... (Model: STD1602H. to download the specification)>>>.
(no subject) (by MGP)
He does not know either.
Without manual it will be very difficult and I cannot help you.
(no subject) (by Alex)
ADM1602
(no subject) (by robi)
yes sir they mail me .please check this
(no subject) (by MGP)
This is better :)
I'll make you an example this weekend.
(no subject) (by robi)
ok thanks i will wait
(no subject) (by MGP)
I have also ordered such an LCD, then I can refer to the link if they want to use a serial display.
Then I'll be able to test that too.
(no subject) (by MGP)
Here you have your program.
If my display has arrived, I'll try it also.
(no subject) (by robi)
very thanks for your help. sir please check again may some things wrong , coz its not working . my hardware only 3 wire comunication vcc gnd and tx. the cpu tx connect to lcd rx.i try more but not display on lcd .
(no subject) (by MGP)
You have to change the settings, controller, crystal freq. etc..
(no subject) (by robi)
yes these are same
(no subject) (by robi)
may be ldmicro ver problem. so please hex file also send.
(no subject) (by MGP)
Which controller and crystal do you use?
(no subject) (by robi)
pic16f877a crystal 20mhz .
(no subject) (by MGP)
It should work, here the hexfile compiled with version420 of ldmicro.
If it does not work you will have to wait for my display when it has arrived, then I can test the program.
(no subject) (by robi)
Sir this also not run.please read again datasheet.
(no subject) (by MGP)
I have received my STD1602H and it works, attached an example program.
The LCD module is very sensitive for timing matters, sometimes I must restart the controller because the display shows nothing at start and I don't know the cause for the moment.
Not a display for newbies.
Need HEX file and schematic for serial LCD v3 (by Amjad)
Hi,
MGP i need hex file for serial LCD V3 and schematic for serial LCD too. because i am not familiar to .pbp compiler software, i usually use ldmicro compiler for my projects it very easy, just click to comiler.
Thank.
[email protected]
(no subject) (by Amjad)
HI,
i got it, Many thanks to you, can i use with 16f887 or 877
for messaging.
Sir i saw it before and i worked it but i did not succeed,in that LCD massages run up and down LCD - PIC16F628_2Line.
Here i sand you hex file for testing
(no subject) (by Amjad)
Sir,
i also i used 16f628A_2Line. but same like as above i told you.
(no subject) (by MGP)
The software is made for 16F628a pic's and can not be used for other PIC's.
It works for 2 and 4 line LCD's so I think you made a programming error in LDmicro.
Post your .LD file if you have issues.
It's not my software and I do not intend to modify the software.
The program works very well on 2 and for 4lines LCD.
Maybe you can use this version of a serial LCD, my favourite, als for 2 or 4 lines... with examples.
https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller
Btw, attache no hex files because I have no time to test it, summer == outdoortime
(no subject) (by MGP)
Scrolling lines is usually caused because you send more characters than can be fit in 1 line, so you have to count your charackers per line, including spaces.
(no subject) (by Tom J.)
Hi All, I purchased a serial enabled 16X2 to experiment with, now I made a test program that works in the simulator but I'd like to be able to display "Button #" faithfully on line 1 and "Test Number #" faithfully on line 2.
Reading through the datasheet for the display it looks like I may not be able to do this in the LDMicro serial test window, I believe for this display it's going to be:
Line 1: (0xFE0x801Button 1\r)
Line 2: (0xFE0x803Test Number =\3\r)
Am I correct?
Display:
https://www.sparkfun.com/products/9394
Application notes:
https://cdn.sparkfun.com/asset...SerLCD_v2_5ApplicationNote.pdf
I may like eventually to be able to retain text and just change the variable if it visibly refreshes, ex:(keep: "Button" ,Change "#").
Any input would be appreciated as this is new territory for me and I'm relatively new to LDMicro to begin with.
(no subject) (by MGP)
Serial LCDs from different brands use different instructions.
You have to study the manual how to control the cursor, very important!
Your LCD does not know the /r instruction.
Do not make things too difficult for yourself and start with 1 line and always write the same word on the same place, no up/down counters, just a word.
If that works, you can learn to write on 2 lines and if that works you can continue with counnters.
You will have to practice...
Look here how its done for an other lCD
https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller
(no subject) (by Tom J.)
Thank you for your guidance again MGP, you've been a big help to me learning my way through.
I expected that there would be a lot of trial and error. When I learn how to use this one I'll make a thread for it to help other members of the community so they won't have the same R&D time.
There was information in another thread regarding noise introduced by sharing a power supply.
Would it be sufficient to run the PIC and Display from the same 12v source with two 7805's or is that still a bad idea?
(no subject) (by MGP)
I never had problems with the power supply but I had problems with a rs232 LCD when it was connected to a PC via a PIW with a RS232 module.
As long as the PIC was connected to the PC, the LCD did not work but worked good when I removed the RS232 connector.
The choice is yours.
(no subject) (by MGP)
Typo....PIW = PIC ..sorry
(no subject) (by Tom J.)
According to the sheet this thing takes ASCII over uart and just displays it.
Despite my best attempts all I can get are X, a funny shaped P, and solid blocks.
Is there something very basic I'm missing to send ASCII over data?
Once I can make it do something I'll work on positioning.
(no subject) (by MGP)
I have made a small program to help you, but I can't try it because I have no such LCD.
There is an error in the manual, it says, on the third page, that 192dec = 0x42 but it should be 0x80 + 0x42 = 0xC0 or 192dec.
I hope it works.
(no subject) (by MGP)
I made a mistake, I used an OSR and it must be an OSF instruction in rung 4.
Attached the new version.
(no subject) (by Tom J.)
Thank you once again for your help, MGP.
I'll have to work on it further today, it doesn't want to compile, crashes LDMicro completely but I'll figure out what's happening.
(no subject) (by Tom J.)
Thank you once again for your help, MGP.
I'll have to work on it further today, it doesn't want to compile, crashes LDMicro completely but I'll figure out what's happening.
(no subject) (by MGP)
You have to select a µcontroller, PIC or Atmel.
Pasra MGP (by Calubert)
Hola MGP, podrias hacer el .hex de la pic16f628 en LDmicro, creo que seria muy bueno ya que veo que hay mucha gente que esta interesada ya que se podrķa incorporar en el mismo microcontrolador. saludos y gracias
(no subject) (by MGP)
Not the controller is important, but the LCD is, because every LCD manufacturer uses a different instruction set.
The program works with every PIC / Atmel that you can find in the menu 'settings'
(no subject) (by Tom J.)
I had PIS16F886/8MHZ and it wouldn't compile. I'll try another component.
One strange thing is the program doesn't show a pin assigned to TX down below.Even if I make the same program it yields the same results.
(no subject) (by Tom J.)
Still not sure what's happening, it my compile problem went away by using the newest LDMicro.
I"m reading everything I can now, trying to figure it out but I don't think LDMicro is sending ASCII, when I review the log file from LDMicro simulator (uart.log) it looks like there's unicode being sent.
(no subject) (by MGP)
Try this one....be sure of the crystal frequency (8Mhz) in the menue 'settings'.
(no subject) (by Tom J.)
Still gibberish, I emailed them and sent a couple pictures so maybe they'll know what's happening or if the display is faulty.
Maybe I should go with a more common manufacturer.
(no subject) (by MGP)
Do not give up so easily.
Check the power supply, the connections, etc. carefully again.
Be sure to use decoupling capacitors on the power supply, controller and on the power supply to the LCD
Are you sure that the LCD is at 9600b?
As there are signs on the screen it should work.
(no subject) (by Tom J.)
I'll keep trying, but I'd like to see what they say since they probably know all of the things that could be problems.
I'll also try decoupling but through most of this was with a simple battery power supply with a 7805 so AC noise shouldn't be a factor.
(no subject) (by Tom J.)
I got it! Tech support was helpful in that they suggested the baud may be incorrect with the internal oscillator, I got a 20MHZ crystal oscillator running tonight and it came to life.
I still have some things to figure out as far as formatting and such but when I do I'll start a thread and title it with this thing's P/N from sparkfun so other people with the same display can get running faster.
MGP, it responds to your program for the most part but leaves some blank spaces, I'll figure it out from your sample code and the crude documentation they offer though.
(no subject) (by MGP)
No thanks, little efforts, Ihor deserves it more ;-)
(no subject) (by Tom J.)
I can now manipulate the cursor position and place text in any spot on the screen. I can even place text multiple times writing to different positions.
Displaying numerical variables is proving to be more challenging, I can make it count and display but it only wants to display the ones column and different random characters in the tens column.
I wish the vendor's data sheet wasn't such rubbish.
(no subject) (by MGP)
Pay attention when you display nummeric values,always count the digits, otherwise you get garbage on your screen.
Eg. "Value:/3" and the value X>= 1000 the the result on the screen is undefined.
And dont print too fast, it takes time to print a rung (row) with a serial instruction.
Post a reply to this comment:
|