SPI Problem
Posted: Thu Jan 30, 2025 2:33 pm
My ESP32S3 is communicating with a TI DAC 81401 via SPI. As per the datasheet, the 81401 uses CPOL=0, CPHA=1, ergo MODE_1.
For some reason though, the ESP32 does not properly detect the answers. It comes out as 1 bit shifted to the right, i.e. where I should be getting 810A70, I'm getting 0214E0.
The scope's SPI decoder is in line with what TI says. MOSI seems to be okay, since the TI DAC does what it's supposed to be. Here's a screenshot:
C1=CS, C2=SLCK, C3=MOSI, C4=MISO (mixed MISO and MOSI up @ the scope)
This is even with very low bitrates (1MHz) -- do you have any idea what could be wrong?
For some reason though, the ESP32 does not properly detect the answers. It comes out as 1 bit shifted to the right, i.e. where I should be getting 810A70, I'm getting 0214E0.
The scope's SPI decoder is in line with what TI says. MOSI seems to be okay, since the TI DAC does what it's supposed to be. Here's a screenshot:
C1=CS, C2=SLCK, C3=MOSI, C4=MISO (mixed MISO and MOSI up @ the scope)
This is even with very low bitrates (1MHz) -- do you have any idea what could be wrong?
