Hello everyone!
On my personalized pcb I am using the PIC18F67K40 with a 128x64 GLCD display piloted by MCP23S17 for a project (https://www.mikroe.com/serial-lcd-glcd-adapter-board) and a very strange problem occurs. When I launch the sample program, shown in the SPI GLCD Library, the display works correctly only when it loads lines, squares and circles. When the display writes the text foreseen by the listing or loads a BMP image from the RAM constant, do they not appear? Is it a library bug or is the display defective? I run MCU with internal OSC at 64MHz.
[Solved] Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
-
- Posts: 138
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
[Solved] Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Last edited by Darklakebridge78 on 23 May 2020 20:37, edited 1 time in total.
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Stefan Filipović
-
- Posts: 138
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Yes, but the older version, the one with the green pcb ...
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it
-
- Posts: 138
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
I have tried with another display of the same type. Same problem!
MikroE: any help?
MikroE: any help?
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Hi,
Please extract the archive __Lib_SPIGlcd.zip from the attachment to the following path and replace the existing one: c:\Users\Public\Documents\Mikroelektronika\mikroBasic PRO for PIC\Uses\P18\
I've also attached a simple example of SPI GLCD, so you can try to run it.
The issue should be resolved now.
Kind regards,
Please extract the archive __Lib_SPIGlcd.zip from the attachment to the following path and replace the existing one: c:\Users\Public\Documents\Mikroelektronika\mikroBasic PRO for PIC\Uses\P18\
I've also attached a simple example of SPI GLCD, so you can try to run it.
The issue should be resolved now.
Kind regards,
- Attachments
-
- SPI_GLCD.ZIP
- (202.85 KiB) Downloaded 81 times
-
- __Lib_SPIGlcd.zip
- (38.65 KiB) Downloaded 85 times
Stefan Filipović
-
- Posts: 138
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Hi Stefan,
Uploading images now works! However, the text does not appear yet ...
Uploading images now works! However, the text does not appear yet ...
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Hi,
Have you used the example I've posted above?
You can try programming your board just with the hex file from this archive without compiling it on your side.
I've tested this example with several different GLCDs, it displays the text without issues.
Kind regards,
Have you used the example I've posted above?
You can try programming your board just with the hex file from this archive without compiling it on your side.
I've tested this example with several different GLCDs, it displays the text without issues.
Kind regards,
Stefan Filipović
-
- Posts: 138
- Joined: 12 May 2007 14:04
- Location: Italy
- Contact:
Re: Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?
Hi Stefan,
now everything really works! I had not correctly entered the frequency of the internal oscillator. Thank you so much !!
now everything really works! I had not correctly entered the frequency of the internal oscillator. Thank you so much !!
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it
http://www.teolab.it