Author Topic: Problem using AD5270 digipot -SOLVED  (Read 2313 times)

0 Members and 1 Guest are viewing this topic.

Offline dzsekiTopic starter

  • Frequent Contributor
  • **
  • Posts: 533
  • Country: hu
Problem using AD5270 digipot -SOLVED
« on: June 05, 2024, 03:21:44 pm »
Does anyone else using AD5270 digital-potentiometer? I would, but I have problems.
I think I am sending out the right commands through SPI, yet the resistance just stuck at midpoint. Normally I would think the IC is faulty, but I have two identical boards behaving exactly the same way. I have a third (yet unpopulated) IC, but since they came from the same source, same reel, I am not very excited to replace it.

I even made two scope shots for you, one with zero-wiper and the other with full-open wiper setting, the device just stuck at midpoint.

Am I missing something obvious?  :-//
« Last Edit: June 06, 2024, 06:36:52 am by dzseki »
HP 1720A scope with HP 1120A probe, EMG 12563 pulse generator, EMG 1257 function generator, EMG 1172B signal generator, MEV TR-1660C bench multimeter
 

Offline jwet

  • Super Contributor
  • ***
  • Posts: 1168
  • Country: us
Re: Problem using AD5270 digipot
« Reply #1 on: June 05, 2024, 04:50:02 pm »
Your SPI writes do seem correct to me.  This is an unusual device- its not a pot with a wiper and two ends, its actually a resistor with a wiper and one end.  Are you measuring "ohms" or somehow reading like a resistor?
 

Offline ArdWar

  • Frequent Contributor
  • **
  • Posts: 757
  • Country: sc
Re: Problem using AD5270 digipot
« Reply #2 on: June 05, 2024, 05:08:04 pm »
How's your device initialization? Do you properly disable write protection?
 
The following users thanked this post: Someone

Offline dzsekiTopic starter

  • Frequent Contributor
  • **
  • Posts: 533
  • Country: hu
Re: Problem using AD5270 digipot
« Reply #3 on: June 05, 2024, 10:07:40 pm »
How's your device initialization? Do you properly disable write protection?
What initialization do you mean? From my understanding I should just send whicever "command" I like to the device. In this case I don't want to use the memory function, I only want to operate with direct RSET (command 1)
HP 1720A scope with HP 1120A probe, EMG 12563 pulse generator, EMG 1257 function generator, EMG 1172B signal generator, MEV TR-1660C bench multimeter
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 7179
  • Country: de
Re: Problem using AD5270 digipot
« Reply #4 on: June 05, 2024, 10:27:17 pm »
Something is odd with your data signal.
Why is the 0x07FF data serrated?
And why is the data rising edge 1/2 cycle delayed?
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 6078
  • Country: au
    • send complaints here
Re: Problem using AD5270 digipot
« Reply #5 on: June 05, 2024, 10:29:12 pm »
How's your device initialization? Do you properly disable write protection?
What initialization do you mean? From my understanding I should just send whicever "command" I like to the device. In this case I don't want to use the memory function, I only want to operate with direct RSET (command 1)
The data sheet is poorly written and doesn't explain the interface well. But, it does contain an example command string to set the wiper. Did you try using the example?
 

Offline dzsekiTopic starter

  • Frequent Contributor
  • **
  • Posts: 533
  • Country: hu
Re: Problem using AD5270 digipot
« Reply #6 on: June 05, 2024, 10:32:26 pm »
Something is odd with your data signal.
Why is the 0x07FF data serrated?
And why is the data rising edge 1/2 cycle delayed?
Data must be present on the clock's falling edge. Serrations due o how the program was written is that a problem?
HP 1720A scope with HP 1120A probe, EMG 12563 pulse generator, EMG 1257 function generator, EMG 1172B signal generator, MEV TR-1660C bench multimeter
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 7179
  • Country: de
Re: Problem using AD5270 digipot
« Reply #7 on: June 05, 2024, 10:46:34 pm »
I don't know.
SPI is very simple and normally poses no problem. But as someone else wrote, the data sheet is lousy.
And perhaps the program should be modified to be correct SPI?
 

Offline ArdWar

  • Frequent Contributor
  • **
  • Posts: 757
  • Country: sc
Re: Problem using AD5270 digipot
« Reply #8 on: June 06, 2024, 12:17:05 am »
Unusually sloppy datasheet from Analog indeed.

What initialization do you mean? From my understanding I should just send whicever "command" I like to the device. In this case I don't want to use the memory function, I only want to operate with direct RSET (command 1)
Read carefully the Write Protection section at page 20. The device will boot into internal preprogrammed value only by default. You need to clear the write protect bit to allow direct register control. Control bit is listed on table 11, and command formats are at table 12. Or if you're completely lost there's example initialization at table 15, you need to send 0x1C03 first.
 
The following users thanked this post: dzseki, Geoff-AU

Offline dzsekiTopic starter

  • Frequent Contributor
  • **
  • Posts: 533
  • Country: hu
Re: Problem using AD5270 digipot
« Reply #9 on: June 06, 2024, 06:36:39 am »
you need to send 0x1C03 first.

Indeed, this did the trick! Now it works, thanks!
HP 1720A scope with HP 1120A probe, EMG 12563 pulse generator, EMG 1257 function generator, EMG 1172B signal generator, MEV TR-1660C bench multimeter
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->