Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Serial LCD

(you are viewing a thread; or go back to list of threads)

Serial LCD (by Boris)
I have problem, when I use 16F877A LCD is working OK.
I need to use ATMEGA128 but LCD is printing some characters but it is not text which I wont.
Are there difference in programming or in wiring.
Please help.
Tue Feb 11 2014, 19:09:29
(no subject) (by MGP)
Can you post an example of the atmega file.
Wed Feb 12 2014, 11:47:49
(no subject) (by Boris)
Thanks for reply.
Can You please check are fuses set OK.
I am using crystal

BootLock12 1
BootLock 1 1
BootLock02 1
BootLock01 1
Lock02 1
Lock01 1
M103C 1
WDTON 1
OCDEN 1
JTAGEN 0
SPIEN 0
CKOPT 1
EESave 1
Boot SZ1 0
Boot SZ0 0
Boot RST 1
BOD Level 1
BODEN 1
SUT1 1
SUT0 1
CKSEL3 1
CKSEL2 1
CKSEL1 1
CKSEL0 1
Wed Feb 12 2014, 17:42:14, download attachment Triton Ekspozicija.ld
(no subject) (by David R)
Hi I think you might be calling the serial to fast
try slowing the timers at rung 34 to 250ms and 250ms and see if that helps
Regards
David
Wed Feb 12 2014, 23:54:52
(no subject) (by MGP)
If you have a 4 row display then you should consider the cycle time.
Read this thread, in the last .LD-file you can see what to do.

Even though you have a different type of LCD.

http://cq.cx/ladder-forum.pl?action=viewthread&parent=3670
Thu Feb 13 2014, 06:45:03
(no subject) (by s.meiyazhakan)
HOW TO USE RTC WITH CIRCUITE .HELP ME
Sat Feb 15 2014, 15:17:15
(no subject) (by Boris)
This is text which I have on LCD when I load
Lm35toLCD_V2_last
text is non stop moving.
Tue Feb 18 2014, 07:09:54, download attachment LCD.JPG
(no subject) (by MGP)
Which serial display do you have?

I think you have problems with the cursor movements?
Tue Feb 18 2014, 11:24:29
(no subject) (by Boris)
It is SparkFun
I think that my problem is the speed of Atmega.
When I program PIC that quartz speed in LDmicro is not the same speed as on the board I have same behavior from LCD.
For ATmega I am using 8MHz quartz but I will try to use his internal clock to check will it work.
I am new to Atmega and his fuses are very confusing maybe that is the reason why it doesn't operate properly.
Thanks!
Tue Feb 18 2014, 17:08:24
(no subject) (by MGP)
I don't think that the quartz speed makes the difference because ldmicro uses cycle time.

Can you provide me with a link to the manual of the LCD from Sparkfun, so i can look at it.
Tue Feb 18 2014, 17:17:23
(no subject) (by Boris)
Wed Feb 19 2014, 04:04:34
(no subject) (by MGP)
I have made a example, but i can't test it because i don't have a Sparkfun LCD.
Wed Feb 19 2014, 06:33:57, download attachment For_Sparkfun_display 20x4.ld
(no subject) (by Boris)
I fix the problem CKOPT must be 0 even if quartz is 8MHz not 16MHz.
Thanks MGP for Your support.
Wish me luck I have to try PWM
Thanks again.
Wed Feb 19 2014, 09:17:51
(no subject) (by meiyazhakan)
how to copy paste this software
Wed Feb 19 2014, 11:27:16
(no subject) (by MGP)
You cannot copy/paste this software, the editor does not allow this.
It's too much work to rewrite the editor.

Meiyazhakan and others, if you have a question, please start a new topic.

grtz
Wed Feb 19 2014, 12:49:43
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):