Hi,
Trying to use the i.MX287 SSP in the SPI mode and program the AD5235 digital potentiometer.
The AD5235 requires a 24-bit data-word (3 bytes). I have not been able to configure the 287 to send out 3 bytes while Chip Select is under SSP control. I tried using a GPIO line as the Chip Select, but the results were inconsistent probably due to timing issues. The timing diagram is an example of the SPI data that the AD5235 is expecting. (GPIO implementation)
Any suggestions are appreciated.
Thanks
Dan
You can try with a linux driver based on SPIDEV, like the one mention in the AD web page
https://wiki.analog.com/resources/tools-software/linux-drivers/misc/dpot