Closed mriksman closed 2 years ago
It appears it is my problem.
I am not sure why turning on the MISO causes the issues, but the problem goes away when I hook my scope up to SCL and MOSI. The internal pullups probably do nothing considering there is a TXS0104 level shifter.
Need to redesign my PCB!
The MOSI data should be indendent from MISO. So it really looks like a HW problem, maybe a missing GND?
edit: TXS0104 has an addtional OE input and you have to take care connecting the A-pins to the Wemos pins and the B-pins to the AC.
Hi,
Apologies, this isn't an issue related to your program, but I have used your documentation and code to recreate this in ESP-IDF using the SPI driver and hardware timers to get accurate timings on the 40ms pause between frames.
With the MISO pin disabled (configurable on the SPI driver), I get great data.
As soon as enable the MISO pin, but do not send any data (I leave the buffer
NULL
), I get completely different data.I presume the pin is probably being held low (instead of high-impedance/not configured), and the AC is seeing 0x00..?
Is that expected? Is the MOSI data supposed to look like that until you have done the 'sync' pattern of 20 frames and alternate bit 2 of DB14?