04-13-2016, 05:33 PM
(This post was last modified: 04-15-2016, 11:57 AM by BenH96.
Edit Reason: Added question
)
Hello,
I have MpicoSys 7.4" Solutions kit and I am attempting to drive the display with a PIC32MZ through SPI. I tested the display with the USB2TCM using the MpicoSys convert tool to convert the smiley face image (attached) which worked perfectly.
I've gotten to the point where I can send commands like refresh display and reset data pointer to the display and receive correct responses back. Now I am able to upload image data but it comes out distorted.
I tested by using the .h file that the MpicoSys convert tool generated from that smiley face. I've checked the waveform of the USB2TCM on my oscilloscope and tried to match it as best I can but the image doesn't seem to want to come out correctly.
I'm sort of at a loss as to what the issue is because I've checked the minimum and maximum timing specs for the 7.4'' display and I believe I'm meeting the requirements. Are there any common issues that I should be looking out for?
Here are a couple pictures of the signals that I'm generating with the PIC32MZ
Yellow is /CS
Purple is MOSI
Blue is SCK
Green is MISO
Thanks in advance,
Ben.
Edit:
Another question, I was looking at the Developer's guide PDF for the TCM and I understand that the tool must interlace the image according to Pixel Data Format Type 4, so are the bytes in the .h organized correctly according to this? Because my program just takes the array and outputs it sequentially.
I was also wondering if anyone has created any graphics libraries for the display. Looking for something simple that can draw simple shapes and ideally also write text to the display.
I have MpicoSys 7.4" Solutions kit and I am attempting to drive the display with a PIC32MZ through SPI. I tested the display with the USB2TCM using the MpicoSys convert tool to convert the smiley face image (attached) which worked perfectly.
I've gotten to the point where I can send commands like refresh display and reset data pointer to the display and receive correct responses back. Now I am able to upload image data but it comes out distorted.
I tested by using the .h file that the MpicoSys convert tool generated from that smiley face. I've checked the waveform of the USB2TCM on my oscilloscope and tried to match it as best I can but the image doesn't seem to want to come out correctly.
I'm sort of at a loss as to what the issue is because I've checked the minimum and maximum timing specs for the 7.4'' display and I believe I'm meeting the requirements. Are there any common issues that I should be looking out for?
Here are a couple pictures of the signals that I'm generating with the PIC32MZ
Yellow is /CS
Purple is MOSI
Blue is SCK
Green is MISO
Thanks in advance,
Ben.
Edit:
Another question, I was looking at the Developer's guide PDF for the TCM and I understand that the tool must interlace the image according to Pixel Data Format Type 4, so are the bytes in the .h organized correctly according to this? Because my program just takes the array and outputs it sequentially.
I was also wondering if anyone has created any graphics libraries for the display. Looking for something simple that can draw simple shapes and ideally also write text to the display.