• AVR Freaks

AnsweredHot!Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display...

Author
tporter905
Starting Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
2019/09/18 10:22:24 (permalink)
0

Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display...

Hello,
 
I am having troubles getting this display to work correctly, I am using the GLCD controller with the RGB interface. I have setup the porch's, timing, etc as per the datasheet for the display. I can clearly see my images, the edges are fine, however the colours are wrong. Everything is a shade of green.  I have tried changing the frame buffer colour mode with no luck. If I override the RGBA_8888 and manual switch them all to ARGB_8888 everything is a shade of purple. I have tried the other colour modes without luck, and when I did change the colour mode I always changed the setting in the graphics composer to match and regenerated the graphics. Any help would be much appreciated.
 
Thanks,
 
Tom
#1
MHGC
Super Member
  • Total Posts : 231
  • Reward points : 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/18 10:29:00 (permalink)
0
Hi,
 
This sounds like a possible pin mapping issue.
 
Is this 24-bit from the PIC to 24-bit display straight parallel?  Are you running the GLCD in 16-pin output mode?
 
#2
NKurzman
A Guy on the Net
  • Total Posts : 17847
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/18 10:45:32 (permalink) ☼ Best Answerby tporter905 2019/09/18 13:17:30
0
What happens if you display Non images , like colored boxes?
#3
tporter905
Starting Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/18 13:17:45 (permalink)
0
Same thing, images and coloured boxes are all shades of green.
#4
tporter905
Starting Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/18 13:20:29 (permalink)
0
I set the data bus width to 24, I also checked off "Use All RGB Pins?" checkbox. Is there somewhere else I can check to verify GLCD Pin mode?
 
Thanks,
 
Tom
 
#5
NKurzman
A Guy on the Net
  • Total Posts : 17847
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/18 14:31:48 (permalink)
0
So Black is Not Black and White is not White? Pure Red is Not Red, same for Green and Blue?
 
What Version of Harmony?
 
IS RGBA_8888 and ARGB_8888 32 bits or 24 bits?  You display is 24 bits.
Is the Display wired for 24 bits?  The Eval was wired for 16 bits (RGB 565)
#6
tporter905
Starting Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/19 06:00:16 (permalink)
0
Nkurzman, I started with the MEB II eval board, I am using Harmony 2.06, white is white, but everything else is shades of Green. I have wired it for RGBA_8888, and set the display def file to RGBA_8888 as well, told it the data width in that file is 24 bits. I am trying to figure out how to make sure the RGB interface is running in 24 bit mode. 
 
Thanks,
 
Tom
#7
NKurzman
A Guy on the Net
  • Total Posts : 17847
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/19 06:39:21 (permalink)
0
Black is not Black?

You rewired the MEB II? It was originally wired for RGB565. So you would need to remove the shorts and replace them with 8 additional connections? I assume you are not using the external RAM chip.
What CPU are you using? One with an internal graphics controller?
#8
tporter905
Starting Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/19 11:08:12 (permalink)
0
I am using a PIC32MZ2064DAH176 processor, no external RAM, using the processor's internal graphics chip. I started developing the code on a PIC32MZ processor attached to an MEB II, that worked fine, when our board was ready I moved the code to it, and found the display sort of works. The MEB II was not re-wired, it is still in tact, this is moving it to our system board. 
 
Thanks,
 
Tom
#9
NKurzman
A Guy on the Net
  • Total Posts : 17847
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/19 12:16:15 (permalink)
0
The MEB II is RGB 565. And writes 16 bits to the 24 bit display. I am assuming you used your DA chip on the MEB II.
Are you sure your wiring is correct on the new board.
I have not configured a DA chip with Harmony 2.XX. So I have no ideas there.
#10
tporter905
Starting Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/19 12:56:24 (permalink)
0
Pretty sure, will double check the wiring, some things I have noted...
 
1) If I pause the program, 30s after it started, my GLCDMODE.VSYNCPOL was 0, however the hsync was 1. I did check in the configurator and see both of these lines in the initialization....
PLIB_GLCD_SignalPolaritySet( GLCD_ID_0, GLCD_VSYNC_POLARITY_NEGATIVE );
PLIB_GLCD_SignalPolaritySet( GLCD_ID_0, GLCD_HSYNC_POLARITY_NEGATIVE );
So I am checking all the registers to see if anything else is not set. If I set this (GLCDMODEbits.VSYNCPOL = 1;) right after the above 2 lines, and pause my program 30s in, my vsync bit is set correctly. 
 
2) Yes, used a DA chip, just different package and different flash size but otherwise same processor. 
 
Thanks,
 
Tom
 
#11
NKurzman
A Guy on the Net
  • Total Posts : 17847
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: Harmony and New Haven NHD-4.3-480272EF-ATXL#-CTP Display... 2019/09/19 14:43:35 (permalink)
4 (1)
If Black in not correct that is a hint. white and black are all on or all off.  A miss-wire of the color bits would not affect that. would not affect that.
#12
Jump to:
© 2019 APG vNext Commercial Version 4.5