I bought a GLCD from Sparkfun that uses the KS0107/KS0108 and has the negative voltage circuitry built on the board. I’m a little confused about hooking it up and making it work… Here is what I have got so far:
GLCD ----a LPC
1 vd
2 vs
3 V0
4-11 D0-D7
12 J28:SDA
13 J28:SC
14 RS
15 RW
16
17 E
18
19 B+
There are only 2 CS lines as far as I can tell, but I am also confused about what to do with Pins 16 and 18 on the GLCD. 16 is D/I and 18 is VEE. Am I on the right track as far as hooking it up?
Once I have it all hooked up properly I have gathered that I get it working with these commands in MIOS studio:
I also tried LCD_type GLCD_ks0108_INVCS to no avail
Unfortunately the GLCD didn’t display anything, other than the backlight… I switched back to my generic 2X16 LCD and retyped the commands to set the bootloader for the generic LCD, but now that doesn’t work either… I get black bars on the 2X16 LCD briefly on startup before it goes blank… I tried reloading the bootloader to siwtch back to the generic LCD setup to no avail.
I hooked the 2X16 LCD up to my SEQ V4 and it works fine, so it is something with the LPC… What am I missing? I really hope I didn’t fry something on the LPC!!!
Haha, I always seem to figure things out 5 minutes after posting… The LCD_type wasn’t changing because I wasn’t entering the 0X00 … I’ll keep working on the GLCD and see if I can get it to work…
I haven’t been able to get my GLCD to work yet, and have a couple of questions to make sure I’m not missing something important.
My understanding is that the only changes I need to make are in MIOS studio with just the bootloader installed. ie. Set LCD_TYPE, set LCD_num_x, etc. Is this true, or do I need to do edits and teach myself how to recompile 32-bit apps (I’ve only managed to teach myself how to compile for the PIC based core applications)?
This is related to question 1 I think… Are the SC and SDA on J28 set up to automatically work with the KS0108, do I have the correct pins, or do they need to be activated?
My understanding is that the only changes I need to make are in MIOS studio with just the bootloader installed. ie. Set LCD_TYPE, set LCD_num_x, etc. Is this true, or do I need to do edits and teach myself how to recompile 32-bit apps (I’ve only managed to teach myself how to compile for the PIC based core applications)?
yes, only the LCD parameters have to be entered into the bootloader (inclusive the “store” command).
If you reset the core thereafter (or power-cycle it), the LCD should already output a message even if the bootloader application is still installed.
This is related to question 1 I think… Are the SC and SDA on J28 set up to automatically work with the KS0108, do I have the correct pins, or do they need to be activated?
They are automatically activated.
Only danger is, that a certain application (like MBSEQ) uses this port for other purposes.
I will doublecheck the KS0108 driver with my GLCDs (inverted and non-inverted) this evening.
I can at least confirm, that a 240x64 GLCD is still working on a MBHP_CORE_STM32, because it’s part of my MBLC hardware.
Bad news: I can’t find my spare KS0108 display anymore, and it would be too cumbersome to use the 240x64 GLCD instead (which is directly soldered to a MBHP_CORE_STM32 module - I will never do this again)
that V0 has to be connected between ground and VEE via a trimpot (see Schematic 2)!
This means, that you can’t use the J15:V0 output of the MBHP_CORE_LPC17 module. Instead you’ve to use an external trimpot which is responsible for the display contrast.
If you haven’t tried this before, than it’s very likely the reason why the LCD doesn’t show any pixels.
Ok, so I wired up a 10k trimpot, and now I get something! J28 doesn’t seem to work though, so I used J5B, A4 and A5, which give me jumbled text:
"is oader is oader
:-) -date! :-) _date!"
That is not exactly what the text looks like, but close. I’m guessing it has to do with CS pin 1 and 2, and where they are being hooked up. The correct pins on J28 don’t produce and text at all, and all the pins on J5A and J5B(except Vs and Vd of course) give similar jumbled text.
The behaviour that you noticed when the CS lines are connected to J5 is the same, as if they would be connected to ground (of course, because J5 isn’t activated)
And this indicates, that your GLCD has low-active CS inputs.
And this requires the usage of “lcd_type 0x82” (KS0108_INVCS)
Ok, so I tried the ks0108_invcs, and still nothing… I don’t know if this helps, but when I connect the LCD to J5 and jumbled text prints, and then connect to the correct J28 pins and reset the text doesn’t change or go away during or after reset… Could the J28 pins not be activated?
One more thing that I noticed while looking at a topic today… I have a V1.0 board that I got awhile back, and I noticed in another topic that there is an incorrect trace on J15… I didn’t know about this, could it be the problem? I couldn’t find any documentation when I searched for this problem…
Tried all three project.hex and none worked… I did hook up CS1 and CS2 to J5A, A4 and A5, and what I got was text in the top 1/3 of the screen and almost solid black in the bottom 2/3 of the screen after that the bottom stayed black until I left it off for a minute or two…