Hot!LCC Conventional V-sync refresh strategy not work

Author
bayentro
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2017/09/13 19:32:01
  • Location: 0
  • Status: offline
2017/10/11 00:50:44 (permalink)
0

LCC Conventional V-sync refresh strategy not work

Hello,
I'm interfacing PIC32MZ1024EFG with TFT LCD (LCC).

There is flicker on my screen (whole screen), and every object's edge are dance.I think it's because of using aggressive V-sync refresh strategy setting,However, when I change it to Conventional, DE, V-sync, H-sync and all PMD port not do anything.
Please give me some advice, why conventional mode is not work, or I suppose to look for another point.

- I've tried to float DE in aggressive mode, and I found that LCD don't use this signal linethat confused me, but v-sync and h-sync still be needed.
- I use REFCLKO1(PBCLK1) as LCD clock, thais not match with information I found by search engine and this forum. 

- Info.
MPLAB X IDE 4.0 with XC32 1.44
MPLAB Harmony 1.11
MCU : PIC32MZ1024EFG064 (SPLL from FRC at 100MHz)
LCD : Newhaven 5.0 800*480(WVGA)-No touch // (I config in Harmony as with PCAP)
LCC : Controller; Internal memory // 8-Bit color // DMA + PMP 

 * I've experienced in computer programming,but new to micro controller programming.Please help!
post edited by bayentro - 2017/10/12 07:45:16
#1

7 Replies Related Threads

    RISC
    Super Member
    • Total Posts : 4591
    • Reward points : 0
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/11 14:01:03 (permalink)
    0
    Hi,
    Do you have a microchip PIC32MZ starter kit with a Microchip LCD demoboard ?
    If so please give the reference of these boards.
    Also give a link to your display and show your schematic
    Regards
    #2
    bayentro
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2017/09/13 19:32:01
    • Location: 0
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/11 20:36:04 (permalink)
    0
    Hello, thank for reply!

    I don't have starter kit or demoboard.
    Just PIC32MZ with socket connect to LCD by LCD adapter via breadboard.
    Power input to breadboard and LCD is 5V, use a fixed regulator convert to 3.3V to supply a MCU.
    PICkit3 as debug tool.

    TFT LCD:
    http://www.newhavendispla...0480tfatxl-p-6073.html

    its adapter:
    http://www.newhavendispla.com/nhdtft40-p-9539.html

    PMD0-7 : 58, 61-64 and 1-3
    LCD_DATA_ENABLE : Pin 4
    LCD_VSYNC : Pin 5
    LCD_HSYNC : Pin 6
    REFCLKO1 (PBCLK1) : Pin 15

    My custom BSP file, I have modify it from another standard BSP.
    https://drive.google.com/...-ypjmajXzh1T3dFZWx4dmM

    Pin diagram
    https://drive.google.com/...-ypjmajR1RxVTkxOWJYeUU
    #3
    bayentro
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2017/09/13 19:32:01
    • Location: 0
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/12 07:41:33 (permalink)
    0
    +++ My MCU is 64 pins +++
    #4
    MikeinAZ
    Administrator
    • Total Posts : 274
    • Reward points : 0
    • Joined: 2014/06/03 07:25:32
    • Location: Chandler, AZ
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/12 15:45:35 (permalink)
    0
    Hello,
     
    We recommend that in order to get the software squared away, you start with a configuration on MCHP supported hardware.  This alone may answer many of your questions.  The PIC32MZ starter kit and MEB II would benefit you greatly.  Many of the applications we have available now are support by this board combination.
     
    With this limited information it is not clear what your problem is.  You may want to start with the basics, like looking at the frame timing on a logic analyzer.  You should be able to quickly replicate the expected vsync/hsync/DE timing as shown in the display manager.  Without that, no data or other design elements in the front end will help you.  
    #5
    bayentro
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2017/09/13 19:32:01
    • Location: 0
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/12 21:25:18 (permalink)
    0
    Thank you MikeinAZ,
     
    Copy that, I'll order those tools.
    By the way, I found the fact that timing signals are work,
    but DMA don't generate trig for further data transfer and timing. 
    #6
    RISC
    Super Member
    • Total Posts : 4591
    • Reward points : 0
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/14 08:48:02 (permalink)
    0
    Hi,
    I recommend to check the existing Harmony graphics projects which are this directory :
    C:\microchip\harmony\v2_04\apps\gfx
    The documentation describe which HW is necessary :
    C:\microchip\harmony\v2_04\doc\help_harmony.chm
    However, I strongly discourage you to use LCC (SW driven LCD) for a resolution of 800x480 because it will significantly load the processor and if you add other functionalities you will probably have some stability issues with the display, unless you have a kind of very static display and a simple application)
    Regards
     
     
    post edited by RISC - 2017/10/14 08:49:10
    #7
    bayentro
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2017/09/13 19:32:01
    • Location: 0
    • Status: offline
    Re: LCC Conventional V-sync refresh strategy not work 2017/10/16 11:13:48 (permalink)
    0
    Thank for information, RISC
     
    My project at first, start before Microchip lunch MHC 2.04
    and I have time limited to finish this project, that why I stick with 1.11
    By your suggestion, I'll take a look for 2.04
     
    My project need only display showing 2 number,
    distance (from ultra sonic based on timer counting)
    and an angle (Accelerometer, I2C) which are already work well right now.
    I don't mind about small flicker on objects when update (digitalmeter),
    now I just only need the stable screen.
    #8
    Jump to:
    © 2017 APG vNext Commercial Version 4.5