[Solved] Mikrobasic PRO for PIC v.7.6.0: bug in SPI GLCD Library?

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
Darklakebridge78
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?

#1 Post by Darklakebridge78 » 13 May 2020 22:51

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.
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

User avatar
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?

#2 Post by stefan.filipovic » 14 May 2020 15:36

Hi,

Are you using this 128x64 GLCD display?
https://www.mikroe.com/glcd-128x64

Kind regards,
Stefan Filipović

Darklakebridge78
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?

#3 Post by Darklakebridge78 » 14 May 2020 18:00

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

Darklakebridge78
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?

#4 Post by Darklakebridge78 » 16 May 2020 17:02

I have tried with another display of the same type. Same problem! :cry:

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

User avatar
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?

#5 Post by stefan.filipovic » 19 May 2020 15:13

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,
Attachments
SPI_GLCD.ZIP
(202.85 KiB) Downloaded 81 times
__Lib_SPIGlcd.zip
(38.65 KiB) Downloaded 85 times
Stefan Filipović

Darklakebridge78
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?

#6 Post by Darklakebridge78 » 19 May 2020 19:22

Hi Stefan,
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

User avatar
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?

#7 Post by stefan.filipovic » 20 May 2020 11:05

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,
Stefan Filipović

Darklakebridge78
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?

#8 Post by Darklakebridge78 » 20 May 2020 21:02

Hi Stefan,
now everything really works! I had not correctly entered the frequency of the internal oscillator. Thank you so much !! :D
MikroC PRO for PIC, MikroC PRO for dsPIC, MikroC PRO for PIC32, MikroC PRO for ARM, Visual TFT, Visual GLCD,
http://www.teolab.it

Post Reply

Return to “mikroBasic PRO for PIC General”