I recently received one of the nokia lcd screens.
I tried out the character only demo (GreatCowBasic\Demos\glcd_solutions\glcd_simple_demonstration_solutions\glcd_simple_character_demonstation_16lf1939_for_pcd8455@32.gcb) and the graphics demo (GreatCowBasic\Demos\glcd_solutions\glcd_simple_demonstration_solutions\glcd_simple_demonstation_16lf1939_for_pcd8455_nokia_5110_softspi@32.gcb).
The only changes to both were the chip (I used 16F18326), the pins used, and commenting out pllen_off.
I used the exact same circuit and chip for both.
The more complicated graphics demo ran perfectly.
The simple character demo did not produce anything on the screen.
Any idea why this might be? Nothing is obvious to me.
I think what Stan is saying... that the Arduino will work as the SPI is fixed to specific ports. Therefore, not the added complexity of PPS for certain PICs.
My rule stands. Verify the software SPI first (even for Arduino) then hardware SPI - this approach minimise many hours of head scratching. Why? If the software SPI works then you know the target device and basic connectivilty is good. Then, when hardware SPI does not work... you are looking at the microcontroller configuration, could be any of the following No hardware SPI module Incorrect ports selected
* PPS incorrect
Evan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is this module have a standard SPI interface? (There is no Dataout line so no ACKs).
When I used these (many years ago) I used a shift register type approach to load each bit - no special timing/pulses was required. Maybe I2C would work just as well?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry I posted twice...win 10 was slow to respond.
NO MORE! 4gig of ddr3 arrived today and 3rd time lucky it fitted and is correct voltage.
I now have a "massive :)" 6 gig of ram and win 10 flies!
Linux does not seem so attractive now windows 10 is working at same speed...but still I'm interested in using linux , even with gcb :)
The pps tool is great but for newer pics. The idea of selecting a pin as this or that has confused people..like me.
I find the pics I use are ok and the arduino boards ok for the stuff I do.
I have never used a device in software mode, it has always used hardware mapped pins...so you know where you are. Guess I was lucky, I had no unsortable problems.
Now to try mint with 6 gig of ram.......aren't computers fun?answers on a postcard to
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fair enough. The PPS worth emphazising as I've been caught out many times using the default pins and they still do not work if the PPS has not been set (usually happens when I upgrading to a newer chip).
So the SPI works with the Nokia display - I must try this it will simplify my code.
Another quick question...
How do you find this type of display lasts? I had 7 and now only two are working. It seems that the controller starts to make bad contact with the LCD (not the zebra-strip contact with the board, but the main controller stuck to the back of the glass). Maybe I have just been unlucky.
This was meant to be a reply to Anobium.
Last edit: David Stephenson 2019-11-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
David Stephenson---I have a few old nolkia phones but not want to take one apart to use the display...they cost little on ebay.
Bit of a boring display...get a bigger coloured one for cheap instead. gcb supports many and you can do more with them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thing is Stan the coloured displays suck power - I am often using battery power.
I got my first two displays out of old 'phones. I was visiting England and they have these places for people to dump stuff like this. Problem is they do not like other people removing stuff that has been dumped so you have to be secretive (pretend you are dumping rather than extracting).
The first one I got used 90 uA the ones I've got most recently use 300 uA - often wondered why that was as they seem to be exactly the same display.
I've got some newer phone displays and they seem to use an unusual protocol which I think is LVDS - there are chips that deal with this, but it's complicated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Wow! Research. I keep old phones as old phones and glcd displays separate.
I did not think of drive supply power, etc.
a 3.2V lithium and up-converter will run most stuff efficiently....or 2 in series and step down.
This is one of many ebay converters I have. two 3.2 batteries in parallel and a 2A and 1A usb out
I recently received one of the nokia lcd screens.
I tried out the character only demo (GreatCowBasic\Demos\glcd_solutions\glcd_simple_demonstration_solutions\glcd_simple_character_demonstation_16lf1939_for_pcd8455@32.gcb) and the graphics demo (GreatCowBasic\Demos\glcd_solutions\glcd_simple_demonstration_solutions\glcd_simple_demonstation_16lf1939_for_pcd8455_nokia_5110_softspi@32.gcb).
The only changes to both were the chip (I used 16F18326), the pins used, and commenting out pllen_off.
I used the exact same circuit and chip for both.
The more complicated graphics demo ran perfectly.
The simple character demo did not produce anything on the screen.
Any idea why this might be? Nothing is obvious to me.
The exact program I used is attached.
Should work as this is tested and validated.
Remove these... what happens?
Did your other demo use SW SPI?...
Commenting out the hardwareSPI line made it work.
(No need to comment out the character_mode_only line, it ran either way.)
Yes, you have the hardwareSPI line commented out in the graphics demo, and it works.
If I uncomment out that line, it stops working.
Perhaps the hardwareSPI needs PPS set for these newer chips?
No....
PPS is needed.
Remember my rule... use SW SPI first, then, hardware SPI... because we dont need PPS for SW SPI.
:-)
"No....
PPS is needed.
Remember my rule... use SW SPI first, then, hardware SPI... because we dont need PPS for SW SPI.
:-)"
or anarduino or pic that has pins set,
sorry
Not sure what you guys are trying to tell me, but I will always go for the hardware option if it exists.
I think what Stan is saying... that the Arduino will work as the SPI is fixed to specific ports. Therefore, not the added complexity of PPS for certain PICs.
My rule stands. Verify the software SPI first (even for Arduino) then hardware SPI - this approach minimise many hours of head scratching. Why? If the software SPI works then you know the target device and basic connectivilty is good. Then, when hardware SPI does not work... you are looking at the microcontroller configuration, could be any of the following
No hardware SPI module
Incorrect ports selected
* PPS incorrect
Evan
Is this module have a standard SPI interface? (There is no Dataout line so no ACKs).
When I used these (many years ago) I used a shift register type approach to load each bit - no special timing/pulses was required. Maybe I2C would work just as well?
@David. It works/ The issue was that HW SPI had not been PPSed.
sorry I posted twice...win 10 was slow to respond.
NO MORE! 4gig of ddr3 arrived today and 3rd time lucky it fitted and is correct voltage.
I now have a "massive :)" 6 gig of ram and win 10 flies!
Linux does not seem so attractive now windows 10 is working at same speed...but still I'm interested in using linux , even with gcb :)
The pps tool is great but for newer pics. The idea of selecting a pin as this or that has confused people..like me.
I find the pics I use are ok and the arduino boards ok for the stuff I do.
I have never used a device in software mode, it has always used hardware mapped pins...so you know where you are. Guess I was lucky, I had no unsortable problems.
Now to try mint with 6 gig of ram.......aren't computers fun?answers on a postcard to
Fair enough. The PPS worth emphazising as I've been caught out many times using the default pins and they still do not work if the PPS has not been set (usually happens when I upgrading to a newer chip).
So the SPI works with the Nokia display - I must try this it will simplify my code.
Another quick question...
How do you find this type of display lasts? I had 7 and now only two are working. It seems that the controller starts to make bad contact with the LCD (not the zebra-strip contact with the board, but the main controller stuck to the back of the glass). Maybe I have just been unlucky.
This was meant to be a reply to Anobium.
Last edit: David Stephenson 2019-11-19
10,000 hours, hence you power them down.
Page 19 of this document is my guideline. http://www.gabotronics.com/download/xscopes/xscopes-manual.pdf
I have one of the scopes inline, and, thankfully, it auto-powers off.
David Stephenson---I have a few old nolkia phones but not want to take one apart to use the display...they cost little on ebay.
Bit of a boring display...get a bigger coloured one for cheap instead. gcb supports many and you can do more with them.
Thing is Stan the coloured displays suck power - I am often using battery power.
I got my first two displays out of old 'phones. I was visiting England and they have these places for people to dump stuff like this. Problem is they do not like other people removing stuff that has been dumped so you have to be secretive (pretend you are dumping rather than extracting).
The first one I got used 90 uA the ones I've got most recently use 300 uA - often wondered why that was as they seem to be exactly the same display.
I've got some newer phone displays and they seem to use an unusual protocol which I think is LVDS - there are chips that deal with this, but it's complicated.
Wow! Research. I keep old phones as old phones and glcd displays separate.
I did not think of drive supply power, etc.
a 3.2V lithium and up-converter will run most stuff efficiently....or 2 in series and step down.
This is one of many ebay converters I have. two 3.2 batteries in parallel and a 2A and 1A usb out
Last edit: stan cartwright 2019-11-19