i.MX287 and AD5235 digital potentiometer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX287 and AD5235 digital potentiometer

517 Views
danbocko
Contributor I

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)

SPI1.PNG

Any suggestions are appreciated.

Thanks

Dan

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

 

0 Kudos
1 Reply

510 Views
jamesbone
NXP TechSupport
NXP TechSupport

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

 

 

0 Kudos