![]() | ![]() | ![]() |
| | #16 | |
|
Pommie: Any luck in the serial LCD Driver? Quote:
| ||
| |
| | #17 |
|
Yes, it's all done, I just haven't got around to debugging and documenting it. Maybe it's something I should try and get completed in the next couple of weeks. I've even done a PCB, two actually, one with ICD and 9 Pin D connector and a more compact one with an SMD EEPROM. These are the boards and I need to make a decision and get one of them made. ![]() Anyone have any pros/cons between the two boards? Some relevant info, The serial can be connected through the D connector or the 4 pin header. The serial auto switches polarity so it can connect to a PC or a Pic chip without a Max232 chip. The crystal, keyboard components and serial EEPROM are optional and can be omitted. Both boards fit comfortably behind the main GLCD display board. All comments welcome. Mike. Last edited by Pommie; 6th July 2008 at 05:13 PM. | |
| |
| | #18 |
|
Both are extremely nice Mike. I don't think I would put that big DB-9 connector on the board but that's just a personal preference. Mike Last edited by Mike, K8LH; 24th June 2008 at 01:03 PM. | |
| |
| | #19 |
|
Hi Pommie: Experimenting with you KS0108 GLCD code with limited success. I can properly simulate you example on Proteus and works like a charm. But when hardwired it fails and I can not get anything to display. Using ICSP and programming the PIC I will get some semblence of the display to work, but when the project is powered off/on nothing is displayed. I suspect the KS0108 is not initializing properly. Have experimented with adding various delays etc, but still no luck. The GLCD is fine as I have experimented displaying using other project code with success, just can not get you example to work. Any suggestions?? | |
| |
| | #20 |
|
Hi bryan, The only thing that would stop it working is if the defines in LCD.h were wrong or you don't have a crystal. I'm assuming you are using the code from this thread. If you have earlier code then you need to change Init_GLCD in GLCD.c. You should also try switching to the internal oscillator - see page two of above thread. Mike. | |
| |
| | #21 |
|
Hi Pommie: Pretty much played with everything, changing oscillators, using internal vs external. Attached is a pic of your project running on Proteus with the defines changed to make it compatible with the EP4 development board. As you can see it works fine on Proteus but just won't work on a breadboard or the EP4. Second pic is what is displayed when the pic is first programmed, as you can see there is problems in the display. Turning off/on the board's power and then nothing will display. I know the display is fine because I can get it to work on a breadboard or EP4 with Richard.C assembler code for the KS0108 Have tried debugging with my PK2 and still can not get anything to display, or see where the problem is. Perhaps I am missing a config setting by using the 18f4520 instead of 18f4550. My define's #include <p18f4520.h> #define GLCD_Data PORTD #define b_GLCD_GCS1 LATBbits.LATB1 #define b_GLCD_GCS2 LATBbits.LATB0 #define b_GLCD_RS LATBbits.LATB2 #define b_GLCD_RW LATBbits.LATB3 #define b_GLCD_E LATBbits.LATB4 #define b_GLCD_ON LATBbits.LATB5 #define b_GLCD_BL LATBbits.LATB6 #define TRIS_Data TRISD #define b_TRIS_GCS1 TRISBbits.TRISB1 //GCS1 #define b_TRIS_GCS2 TRISBbits.TRISB0 //GCS2 #define b_TRIS_RS TRISBbits.TRISB2 //RS #define b_TRIS_RW TRISBbits.TRISB3 //RW #define b_TRIS_E TRISBbits.TRISB4 //E #define b_TRIS_ON TRISBbits.TRISB5 //RST #define b_TRIS_BL TRISBbits.TRISB6 //backlight | |
| |
| | #22 |
|
That picture looks like it is a timing problem. My guess is that you are running at a much higher clock rate than I was. Try repeating the asm line in delay. I.E. Code: void Delay(void){
_asm NOP _endasm
_asm NOP _endasm
_asm NOP _endasm
_asm NOP _endasm
}
| |
| |
| | #23 |
| | |
| |
| | #24 |
|
am I just a retard or is the glcd.zip attachment no longer available for download?
| |
| |
| | #25 |
|
I'll see if I can locate it on my site.
| |
| |
| | #26 |
|
greatly appreciated!
| |
| |
| | #27 |
|
I've found this pair in my archives. Not sure if they're the latest though.
| |
| |
| | #28 |
|
Here you go. Mike. | |
| |
| | #29 |
|
ahh.. thanks guys This gives me something to waste time^H^H^H^H^H^H^H^H^H^Hplay with tonight
| |
| |
| | #30 | |
|
Hey i know this thread is kinda old just wanted to say thanks for the code and i modded it slighty to fit a PIC18F448 @ 20 Mhz and here is the code if anyone needs it. (doesnt show that logo and stuff tho.) I aslo found it does say you need to read the data twice ... Quote:
Here is my code(your code) , my image and my finding in the datasheet.
__________________ 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 | ||
| |
|
| Tags |
| demo, glcd, unicorn |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Unicorn Oscilloscope running GLCD 128x64 & Photo | blueroomelectronics | Micro Controllers | 8 | 18th June 2007 03:06 PM |
| Help understanding the Unicorn | Kyle-s4h | Micro Controllers | 2 | 5th June 2007 07:09 PM |
| Open MultiSim DEMO Files | mayo | General Electronics Chat | 1 | 3rd May 2007 04:52 PM |
| mcuStudio an Eclipse based IDE for PIC: flash demo available | octal | Micro Controllers | 0 | 23rd August 2006 06:44 AM |
| Honeywell HMR3000 DEMO KIT | shermaine | General Electronics Chat | 5 | 26th May 2005 09:35 AM |