• AVR Freaks

Hot!PIC32MZ Harmony ILI9488 screen problem

Author
sebastien.decorme
Super Member
  • Total Posts : 463
  • Reward points : 0
  • Joined: 2005/08/19 12:37:52
  • Location: FRANCE , Pierrelatte
  • Status: offline
2019/06/06 02:55:18 (permalink)
0

PIC32MZ Harmony ILI9488 screen problem

 
Hi,
I'm trying to add a screen to my board with a PIC32MZ2048EFH144
I've bought a TFT screen 3.5" with this chip ILI9488
<Link>https://www.buydisplay.co...out-board</Link>
I've bought this screen because it is compatible with the "maXTouch Xplained Pro 3.5" they have the same chip.
I'm trying to test the "aria_quickstart" demo, in SPI 4 wire.
I've selected the "pic32mz_ef_sk_xpro" configuration and in the MHC I've just change the pins , to be compatible with my board.
I've changed also the SPI1 to SPI5.
SCK5(Pin57) connected to SCK(Pin24) of the screen
SDI5(Pin120) connected to SDI(Pin27) of the screen
SDO5(Pin121) connected to SDO(Pin27) of the screen
CSX(Pin118) connected to CS(Pin23) of the screen
DCX(Pin113) connected to D/C(Pin25) of the screen
BackLight(Pin119) connected to Backlight(Pin29) of the screen
Reset(Pin112) connected to SCK(Pin21) of the screen
I'm using Harmony 2.06.
The program compile correctly but the screen stay white , only backlight.
I've tried to exchange SDI and SDO , but same result.
I've verified twice the power and the wiring.

Is there something to do, I've missed ?
 
Thanks for any helps !
#1

10 Replies Related Threads

    Ed@Microchip
    Super Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2017/04/06 09:39:29
    • Location: 0
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/06 08:58:22 (permalink)
    0
    The link you posted for the display doesn't work, can you repost again?
     
    Some display modules support multiple interfaces (8080 parallel, 3-line SPI, 4-line SPI) and have switches on them to select the interface. If your display does, make sure that you select the right interface (4-line SPI).
     
    If you think the hardware is configured correctly, check with the debugger if the ILI9488 driver code is running and writing pixels out to the display by setting a breakpoint in ILI9488_SetPixel (drv_gfx_ili9488.c). If the code is running, you can probe the signals coming out of the pins and see if there is activity.
    #2
    sebastien.decorme
    Super Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2005/08/19 12:37:52
    • Location: FRANCE , Pierrelatte
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/06 12:24:54 (permalink)
    0
    The links is
    https://www.buydisplay.com/default/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board
     
    I've verified twice the jumpers of my screen : 3.3V and SPI.
     
    I will try the breakpoint test tomorrow.
     
    Thanks
    #3
    sebastien.decorme
    Super Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2005/08/19 12:37:52
    • Location: FRANCE , Pierrelatte
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/07 02:50:24 (permalink)
    0
    I've tested the breakpoint and the pass in this functions.

    I've made an acquisition of a part of the exchange

    https://ibb.co/j8vmH8v

    I've verified twice the wiring because it is not normal. there is no clock

    I share the project too

    https://drive.google.com/...lJkKYMyZP-ACB6HntpK_fS
     
     
    post edited by sebastien.decorme - 2019/06/07 02:59:07
    #4
    Ed@Microchip
    Super Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2017/04/06 09:39:29
    • Location: 0
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/07 09:28:56 (permalink)
    0
    The SCLK signal in the image you posted looks like D/CX. Can you double check that you are probing SCLK and not DCX? What does the DCX signal look like?
     
     
    #5
    sebastien.decorme
    Super Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2005/08/19 12:37:52
    • Location: FRANCE , Pierrelatte
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/11 03:00:33 (permalink)
    0
    Hi,
     
    I've reWire my screen and make new screenshot
     
    https://ibb.co/YcngdmK
    The pink line always at 0 is the DC
     
    I've verified in the MHC of MPLABX
     
    The problem is still the same.
     
    Pic32MZ2048EFH144
    SCK5(Pin57) connected to SCK(Pin24) of the screen
    SDI5(Pin120) connected to SDI(Pin27) of the screen
    SDO5(Pin121) connected to SDO(Pin28) of the screen
    CSX(Pin118) connected to CS(Pin23) of the screen
    DCX(Pin113) connected to D/C(Pin25) of the screen
    BackLight(Pin119) connected to Backlight(Pin29) of the screen
    Reset(Pin112) connected to SCK(Pin21) of the screen
     
    The clock is not stable.
     
     
     
    #6
    Ed@Microchip
    Super Member
    • Total Posts : 143
    • Reward points : 0
    • Joined: 2017/04/06 09:39:29
    • Location: 0
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/11 09:45:59 (permalink)
    0
    You probably have the SPI data pins incorrectly connected.
     
    Based on the display datasheet, the screen's LCD_SDI pin is the slave input so it should be connected to the master output (MOSI/SDO) pin of the MCU. The same for LCD_SDO, it's the slave output so it should be connected to the master input (MISO/SDI) pin of the MCU.
     
    MCU SDO (121) -> Screen SDI (27)
    MCU SDI (120) -> Screen SDO (28)
     
    This still doesn't explain why the DCX pin is not toggling or why the clock doesn't look good. Can you capture the signals on a single command? It would be good to see how the clock, DCX and CSX look like relative to the SDO signal on a single command. Try capturing the signals during the first one or two calls of ILI9488_Intf_WriteCmd() in ILI9488_Init().
    #7
    sebastien.decorme
    Super Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2005/08/19 12:37:52
    • Location: FRANCE , Pierrelatte
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/12 06:10:37 (permalink)
    0
    Is it possible that the harmonny driver works only with SPI1.
    I've change the SPI_1 to SPI_5 in the driver config.
    Where in the ili9488 config I tell to switch to PIS_5 too ? is it "spi port index" parameters ?
     
    #8
    Freezessc
    Junior Member
    • Total Posts : 86
    • Reward points : 0
    • Joined: 2016/11/08 14:36:45
    • Location: 0
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/17 13:14:20 (permalink)
    0
    I've ran this same exact display with the same EF starter kit, it works.  Remember to wire SDO from the PIC to SDI on the display, and SDI from the pic to SDO on the board.  
    #9
    sebastien.decorme
    Super Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2005/08/19 12:37:52
    • Location: FRANCE , Pierrelatte
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/18 13:56:35 (permalink)
    0
    Hi,
    Thanks you for your feedback.
    I'm sure of my wiring so the problem is somewhere else.
    For your test do you change the SPI ?
    In my case I must change the pin.
    I will test tomorrow with the original source code of harmony.
    I will just change the pin.
    Thanks
     
    #10
    sebastien.decorme
    Super Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2005/08/19 12:37:52
    • Location: FRANCE , Pierrelatte
    • Status: offline
    Re: PIC32MZ Harmony ILI9488 screen problem 2019/06/20 07:40:55 (permalink)
    0
    I've bought the PIC32MZ (EF) board.
    And the progam run perfectly with the screen.
    I suppose there is a problem when I changed the SPI port in harmony.
    I will make my future board with the same pin as the microchip board.
     
    Thanks
     
    #11
    Jump to:
    © 2019 APG vNext Commercial Version 4.5