Using GC basic Compiler, PIC18F542, and 4" RPi LCD (A) as DEMO ON YOUTUBE BY EVEN VENN
Only get white screen when I run the ILI9482L demo solution, UNTIL I press the MPU reset button than I get the Graphical display. Communication-OK, Wiring -OK, MPU receiving Programming-OK, Display function-OK.
What do I need to do to fix the problem? I have tried many things. I don't know about the Library setups and/or the MPU fuses can anyone help?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using GC basic Compiler, PIC18F542, and 4" RPi LCD (A) as DEMO ON YOUTUBE BY EVEN VENN
Only get white screen when I run the ILI9482L demo solution, UNTIL I press the MPU reset button than I get the Graphical display. Communication-OK, Wiring -OK, MPU receiving Programming-OK, Display function-OK.
What do I need to do to fix the problem? I have tried many things. I don't know about the Library setups and/or the MPU fuses can anyone help?
see posted software
Let me try the same display on an 18f. I tested on many microcontrollers but not an 18f but this should work.
Questions.
1. When you program you get a white screen, then, a reset of the microcontroller all is ok with the GLCD. Is this correct?
2. Have you tried software SPI? Does this work? (You have mode the hardware SPI to the user case, so, you will have to remove to test software SPI).
3. What have you tried in the user code? This is not likely to be a fuses issue as the GLCD works after the reset.
4. Can you confirm the version of Great Cow BASIC? The easy way is to attach your ASM file to your next post. I can then review.
5. Are you using the Great Cow BASIC assembler or MPASM or an alternative?
6. What is the power source for the GLCD? Are you operating at the correct voltages?
Anobium
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So, can you try software SPI. Remove the additional SPIMode command and simply comment out the hardwareSPI constant.
The version is not a valid version number. Please post the ASM then I can determine the version.
So, try software SPI and restest.
Post the ASM please.
Last edit: Anobium 2018-02-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think there potentially an error in the init routine.
Line 176 should be wait 20 ms NOT 20 us.
The reset routine may work as follows. Please change, test and let me know ther results.
'Reset display
Wait 50 ms
Set ILI9486L_RST On
Wait 5 ms
'Reset sequence (lower line for at least 10 us)
Set ILI9486L_RST Off
Wait 20 ms
Set ILI9486L_RST On
Wait 150 ms
Anobium
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I made the change in glcd_ili9486l.h file it did not help. What did Even Venn do to display on youtube? He made it work. Can we find out. Also attached is a new xpt2046.h file does it look OK.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using GC basic Compiler, PIC18F542, and 4" RPi LCD (A) as DEMO ON YOUTUBE BY EVEN VENN
Only get white screen when I run the ILI9482L demo solution, UNTIL I press the MPU reset button than I get the Graphical display. Communication-OK, Wiring -OK, MPU receiving Programming-OK, Display function-OK.
What do I need to do to fix the problem? I have tried many things. I don't know about the Library setups and/or the MPU fuses can anyone help?
Using GC basic Compiler, PIC18F542, and 4" RPi LCD (A) as DEMO ON YOUTUBE BY EVEN VENN
Only get white screen when I run the ILI9482L demo solution, UNTIL I press the MPU reset button than I get the Graphical display. Communication-OK, Wiring -OK, MPU receiving Programming-OK, Display function-OK.
What do I need to do to fix the problem? I have tried many things. I don't know about the Library setups and/or the MPU fuses can anyone help?
see posted software
@Edward. Welcome to the forum.
I can help. I am the author of the library.
Let me try the same display on an 18f. I tested on many microcontrollers but not an 18f but this should work.
Questions.
1. When you program you get a white screen, then, a reset of the microcontroller all is ok with the GLCD. Is this correct?
2. Have you tried software SPI? Does this work? (You have mode the hardware SPI to the user case, so, you will have to remove to test software SPI).
3. What have you tried in the user code? This is not likely to be a fuses issue as the GLCD works after the reset.
4. Can you confirm the version of Great Cow BASIC? The easy way is to attach your ASM file to your next post. I can then review.
5. Are you using the Great Cow BASIC assembler or MPASM or an alternative?
6. What is the power source for the GLCD? Are you operating at the correct voltages?
Anobium
So, can you try software SPI. Remove the additional SPIMode command and simply comment out the hardwareSPI constant.
The version is not a valid version number. Please post the ASM then I can determine the version.
So, try software SPI and restest.
Post the ASM please.
Last edit: Anobium 2018-02-06
I have reviewed the library.
I think there potentially an error in the init routine.
Line 176 should be wait 20 ms NOT 20 us.
The reset routine may work as follows. Please change, test and let me know ther results.
Thank you, I will try it later have to go now.
The file you are adapting is ..\GCB@Syn\GreatCowBasic\Include\glcd_ILI9486L.h
I made the change in glcd_ili9486l.h file it did not help. What did Even Venn do to display on youtube? He made it work. Can we find out. Also attached is a new xpt2046.h file does it look OK.
I am Evan Venn. You are discussion with the author.
No xpt2046.h and why would this help?
Last edit: Anobium 2018-02-12
Closed
Closed