Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D8-D15 seem to be floating #3

Open
rjonkman opened this issue Sep 22, 2023 · 4 comments
Open

D8-D15 seem to be floating #3

rjonkman opened this issue Sep 22, 2023 · 4 comments

Comments

@rjonkman
Copy link

rjonkman commented Sep 22, 2023

I'm sending an array of alternating 0x0000 and 0xFFFF integers using the SglBeatWR_nPrm_16() method.

uint16_t pix[400];
for (int i = 0; i < 400; i++) {
   if (i % 2 == 0) pix[i] = 0xffff; else pix[i] = 0x0000;
}

lcd.SglBeatWR_nPrm_16(0x02, pix, 8);  // I made the method public for testing

When probing pins D8-D15 with my scope, they always stay low or sometimes float just a bit above 0v. Pins D0-D7 work as expected. I have properly defined the bus width to 16. Have you tested this method using a 16 bit interface on a T4.1?

#define BUS_WIDTH 16 /*Available options are 8 or 16 */

I also confirmed that my display is not pulling the pins down, as I can put a pull up resistor on the pins and see them go high on my scope.

UPDATE: Here are a couple screenshots from my scope. In both images, channel 1 is on the WR line. In the first image, channel 2 is on one of the D0-D7 pins, and in the second it's on one of the D8-D15 pins.
SDS00003

SDS00004

@david-res
Copy link
Owner

I have this library running on a Teensy 4.1 & ILIL9488 in 16 bit mode. So it should work.

@rjonkman
Copy link
Author

rjonkman commented Sep 22, 2023

Well, it's definitely not working here. I even completely removed the display, bypassed LCD initialization, so I was just working with the SglBeatWR_nPrm_16 method, but I still can't get pins D8-D15 to work.

Small ask: Can you tell me what version of TeensyDuino you are using?
Big ask: Can you hook a scope up to your device on one of the D8-D15 pins to show that it's working?

@david-res
Copy link
Owner

| FLEXIO_SHIFTCFG_PWIDTH(7); /* Bus width */

Try changing 7 to 15 and see if it works
I should have put BUS_WIDTH-1 in there

@rjonkman
Copy link
Author

rjonkman commented Sep 22, 2023

Yup, that fixes it. I changed it to :
FLEXIO_SHIFTCFG_PWIDTH(BUS_WIDTH-1);

Thanks.. Getting closer now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants