Menu

PIC 16F887 not working with ILI9341

2023-09-25
2023-09-26
  • Donald Vivian Dold

    Hi,
    I am using one of the demos but changed the pic to 16f887. The SDO line goes hi and stay there. After a while it go down to lo. The SCK line shows a clock present but not the SDO line. Here is the code. Could someone please help me by showing me where I made a mistake? The ILI9341 does not respond to the program and show a black screen.

     
  • Anobium

    Anobium - 2023-09-25

    Check the voltage.

    Your program looks good.

    Drop the VDD to 3v3. Then, it should work.

     
  • Donald Vivian Dold

    Hi Anobium,
    Tks for the reply. I did drop the voltage to 3.3V on the display. But it still does not work. There is no output from the 16F887 chip on the SDO pin. It still go hi for a second or two, then drop low again. No pulses out of the SDO pin. The clock is there, but no data out of the SDO pin.

     
  • Anobium

    Anobium - 2023-09-25

    Ah... maybe you program is not correct...
    remove

    SPIMode(Masterslow, 0)
    
     #include <glcd.h>
    
     
  • Donald Vivian Dold

    Tks Anobium. I found I had voltage drop resistors on the SDI line which dropped the voltage on the Pin beyond the minimum value for the pic to read. The display is now showing "65504" in stead of "Test of the ILI9341 Device" text. At last some progress.

     
  • Donald Vivian Dold

    Problem solved. I had ILI9341_YELLOW also in the same line. Question: how do I set the text color?
    Thank you so much for your support.

     
    • Anobium

      Anobium - 2023-09-26

      Pleasure. Post your working code. I want to ensure I know your context.


      Want a quick answer. Use WhatsApp:
      https://chat.whatsapp.com/BDW6l9tSlP7Ao7CF867Xn4

       

      Last edit: Anobium 2023-09-26
  • Donald Vivian Dold

    Tks, I found the syntext. All solved now, thank you for your support, much appreciated as I am not that good with programming.

     
    • Anobium

      Anobium - 2023-09-26

      Well done.

      You figured out the syntax, so, your skills are improving!!

       

Log in to post a comment.