Menu

PROBLEM with ILI9486L GLCD TO PIC18F452 with the 4" RPi LCD (A) touchscreen XPT2046

Help
2018-02-05
2019-01-24
  • Edward Shields

    Edward Shields - 2018-02-05

    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?

     
  • Edward Shields

    Edward Shields - 2018-02-05

    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

     
  • Anobium

    Anobium - 2018-02-05

    @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

     
  • Edward Shields

    Edward Shields - 2018-02-06
    1. yes 2.SPI software No 3. ? 4. 6.22.2290 5. GC Bacic Compiler 6. 5V @2.0A
     
  • Anobium

    Anobium - 2018-02-06

    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
  • Anobium

    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.

    '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
    
     
  • Edward Shields

    Edward Shields - 2018-02-06

    Thank you, I will try it later have to go now.

     
  • Anobium

    Anobium - 2018-02-07

    The file you are adapting is ..\GCB@Syn\GreatCowBasic\Include\glcd_ILI9486L.h

     
  • Edward Shields

    Edward Shields - 2018-02-12

    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.

     
  • Anobium

    Anobium - 2018-02-12

    I am Evan Venn. You are discussion with the author.

    No xpt2046.h and why would this help?

     

    Last edit: Anobium 2018-02-12
  • Anobium

    Anobium - 2019-01-24

    Closed

     
  • Anobium

    Anobium - 2019-01-24

    Closed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.