Another Noob LCD Problem

General discussion on mikroBasic.
Author
Message
rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

#16 Post by rmteo » 10 Jan 2008 03:01

Since you have done everything, the only thing left that I can think of is to not use MPLAB for now. Use the Pickit2 programming software to program the device directly using the HEX file from mB.

I manufacture a product using the PIC16F690 that controls character LCDs using 4-bit mode. We have programmed many hundreds of them using a Pickit2.

rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

#17 Post by rmteo » 10 Jan 2008 03:27

Heres another question. Are you supplying the LCD with 5V and GND?

flash319
Posts: 38
Joined: 08 Jan 2008 02:56

#18 Post by flash319 » 10 Jan 2008 03:36

I am using the supply from the USB. As you can see the screen does show up when I turn the pot for contrast and I can measure at the pins and get 4.9V. I will try with the Pickkit2 software.

flash319
Posts: 38
Joined: 08 Jan 2008 02:56

#19 Post by flash319 » 10 Jan 2008 03:49

You the man!!!!!!! I ran the PicKit program software and updated the OS for it, then download my file and VOILA!!!!!!!!!!!!!

SWEEEEEEEEEEEEEETTTTTTTTT.

Thanks a lot. I'll send you a free T-shirt some time :lol:

rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

#20 Post by rmteo » 10 Jan 2008 03:54

You're welcome. Glad to hear that everything worked out. :P

flash319
Posts: 38
Joined: 08 Jan 2008 02:56

#21 Post by flash319 » 10 Jan 2008 03:56

One problem leads to another but at least it did something. I can only get 8 characters in there (half the screen) ?

flash319
Posts: 38
Joined: 08 Jan 2008 02:56

#22 Post by flash319 » 10 Jan 2008 04:03

I got it, just need to call it different row.

rmteo
Posts: 1330
Joined: 19 Oct 2006 17:46
Location: Colorado, USA

#23 Post by rmteo » 10 Jan 2008 04:07

The 1 line displays are set-up a little differently from the others that have 2-4 lines. I don't recall exactly what it is - it has something to do with how you address lines and/or columns. You might want to download a datasheet from the Crystalfontz website.

I think it may be something line 1 can only display 8 characters. To display the other 8 characters, you have to specify line 3.

Copy'nPaste
Posts: 573
Joined: 25 Apr 2006 15:39
Location: Cape Town, South Africa

#24 Post by Copy'nPaste » 13 Jan 2008 17:41

The 1-line displays are actually 8x2 displays, just in a single row :wink:
I'm using Powertip PC1601 displays, to write to the last 8 characters, I have to switch to "Line 2"
Hope this helps :oops:
"Copy'nPaste"

Post Reply

Return to “mikroBasic General”