![]() | ![]() | ![]() |
| | #226 |
|
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 | |
| |
| | #227 |
|
Cool please report how it goes... I would like to see results with the hardware SPI
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #228 |
|
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 | |
| |
| | #229 |
|
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.
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #230 |
|
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." | |
| |
| | #231 |
|
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 Last edited by ThermalRunaway; 8th November 2009 at 02:22 PM. | |
| |
| | #232 |
|
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #233 |
|
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
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #234 |
|
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 | |
| |
| | #235 |
|
yeah ... hope you enjoy it for now. I doubt they are upgrading it at all
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #236 |
|
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. | |
| |
| | #237 |
|
Oh, and here's a picture of it in action: | |
| |
| | #238 |
|
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
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #239 |
|
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 | |
| |
| | #240 |
|
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? | |
| |
|
| 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 |