Need help interfacing a digital pot.
Hello,
I'm trying to interface a 10K digital pot to two·BS2s. What I'm trying to do is have one stamp set the value of the pot and the other read that value using RCTIME. I'm having no luck at all with the interface connections or the coding of setting the pot. Any help would be much appreciated.
The data sheet for the digital pot I'm using·is at:
·https://jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=241744
Bob
I'm trying to interface a 10K digital pot to two·BS2s. What I'm trying to do is have one stamp set the value of the pot and the other read that value using RCTIME. I'm having no luck at all with the interface connections or the coding of setting the pot. Any help would be much appreciated.
The data sheet for the digital pot I'm using·is at:
·https://jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=241744
Bob

Comments
The part you've linked to is a standard SPI interface serial pot which should work with the SHIFTOUT command in PBasic. According to the datasheet, the pot requires a 16 bit word. The high order byte is a command and the low order byte is the setting for the pot. The data looks like it's MSB first.