Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th November 2009, 03:51 PM   #226
Default

My code is now working

I analysed the difference between the data captured with your working code and my failing code and I saw that although both our software was set up for data to be clocked on a rising edge, yours was set to normally high data & clock lines, where as mine was set to normally low!

See pictures. The data between the two systems is the same (the capture shows the first command, A6, being sent) but my lines are active low. Doh!

This was easily fixed with a simple bit change in the SSPCON register. After that all is well with my code.

If only those faulty LCDs hadn't clouded the issue I'd have had this figured out yesterday!



Brian
Attached Thumbnails
Graphic LCD 96x64 w/ SED1565 Controller-jason-lopez.png   Graphic LCD 96x64 w/ SED1565 Controller-brian-hoskins.png  
ThermalRunaway is offline  
Old 7th November 2009, 04:00 PM   #227
Default

Cool please report how it goes... I would like to see results with the hardware SPI
AtomSoft is online now  
Old 7th November 2009, 04:12 PM   #228
Default

Yep no problem. Once I have everything up and running the way I like, I shall upload the code and also maybe a video of it working

Thanks for your help Jason!

Brian
ThermalRunaway is offline  
Old 7th November 2009, 04:45 PM   #229
Default

Heh no problem. Thank you too for posting your code when ready. Putting your source code here not only helps others but may help you one day if you experience data loss on your pc.
AtomSoft is online now  
Old 7th November 2009, 05:10 PM   #230
Default

Yeah, this is one of those weird forums (gotta love Electromaster) that never delete attachments.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 8th November 2009, 02:15 PM   #231
Default

Okay here's my first attempt. All this version does is initialise the LCD, turn all pixels on for about 1 second, and then clear the screen.

Jason - I used your initialisation commands because I could make no sense of the Power Supply commands that would be required! How did you find all that out?!

Next step is to make a font, or see if I can find some pre-made fonts somewhere that will be suitable. Then use the font to write some text on the screen.

Brian
Attached Files
File Type: c FPLC_0.1D.c (5.9 KB, 4 views)

Last edited by ThermalRunaway; 8th November 2009 at 02:22 PM.
ThermalRunaway is offline  
Old 8th November 2009, 02:19 PM   #232
Default

um ill post you a link to a secret i found and shared:

GLCD Font Creator READ ALL
AtomSoft is online now  
Old 8th November 2009, 02:27 PM   #233
Default

Here is a video of how it works heh: (i didnt crack or hack anything ok) this is a glitch they didnt notice maybe:

http://atomsofttech.info/code/glcd.avi
AtomSoft is online now  
Old 8th November 2009, 03:15 PM   #234
Default

Yeah I've had a look at it and to be honest I can't see how that "feature" would be anything other than intentional. The person who wrote that program must surely have been aware that it was possible to create a complete font in this way, because otherwise it really is a glaring bug to have left behind!

I just think it's there as a continual annoyance to convince you to register.

I reckon I'd register and pay for the app, if they improved the font import functionality.

Brian
ThermalRunaway is offline  
Old 8th November 2009, 03:32 PM   #235
Default

yeah ... hope you enjoy it for now. I doubt they are upgrading it at all
AtomSoft is online now  
Old 10th November 2009, 05:55 PM   #236
Default

Here's a version of my program that includes a simple font and allows you to print text to the screen using lcd_print ("put text here") ;

There are several problems with this version, though:

1. The BoostC Compiler does not allow multi-dimensional Arrays in ROM space, so I had to implement it with rom char *Font {........}; instead, and then come up with a function that would calculate the x and y coordinates depending on the ascii value of the character being processed.

2. This would have been fine, but then I found out that the BoostC compiler only supports 8-bit Arrays in ROM space, which means that a maximum of 31 characters can be utilised per array (8 bytes per character)

I thought I might be able to get around this by having a separate array for upper-case, lower-case and special characters (making 3 arrays in total) and then writing a function that would access the correct array depending upon the character currently being processed. But this is messy and I don't like it. It also begs the question, "what about bitmap images"?

So clearly something has to be done about it. It has been suggested that I could just store the font data in the ROM using #pragma DATA and access it that way, thereby bypassing the need for an Array (and it's associated limits). I'm going to look into this and see what I can come up with. I also want to be able to pass line and column data to my function and let the function do the rest, so that data can be printed using something like lcd_print ("text to be printed", line, column) ;

I'll work on that and report back when I have a better program! For now, please find attached my progress to date.
Attached Files
File Type: c FPLC_0.1D.c (9.7 KB, 4 views)
ThermalRunaway is offline  
Old 10th November 2009, 05:59 PM   #237
Default

Oh, and here's a picture of it in action:

ThermalRunaway is offline  
Old 10th November 2009, 06:38 PM   #238
Default

Nice!! you got it off a acutal Phone heh. I have like 15 of these LCDs. All new. I barely use them heh i have to send a few out to some people tho. Lets see if i have a contest of my own soon. not sure on what and lets see who wins some LCDs heh
AtomSoft is online now  
Old 11th November 2009, 09:07 AM   #239
Default

I did buy a big bunch of these LCDs from some guy state-side, but it looks like they might all be faulty (I've tried three and they were all dead). The only way to confirm if I had a problem with my code or the displays was to nab one from a working phone
ThermalRunaway is offline  
Old 11th November 2009, 11:11 AM   #240
Default

Dead? I bought a few of ebay and have not touched them as yet. Still in the factory trays - but you have now got me worried. I was planning on making some test equipment - fancy LCF, VIR - and mp3 player - I get frustrated with even the fancy ones because I don't like the interface. (I need winamp type navigation & an IR remote).

What is the current draw on these, with/out backlight?
VISN is offline  
Reply

Tags
96x64, controller, graphic, lcd, nokia7110, sed1565, w or

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Graphic LCD baberjaved Micro Controllers 2 13th November 2007 05:01 PM
Graphic LCD flemmard Micro Controllers 1 13th September 2007 03:32 AM
interfacing of PIC16F877A with graphic LCD controller T6963c rosamma Micro Controllers 1 24th March 2007 12:29 PM
graphic LCD PIC MCU tom_electronic Micro Controllers 4 28th February 2006 12:29 PM
graphic lcd help jijita General Electronics Chat 1 18th August 2004 07:32 AM



All times are GMT. The time now is 11:49 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker