Shop OBEX P1 Docs P2 Docs Learn Events
SHIFTOUT breakthrough — Parallax Forums

SHIFTOUT breakthrough

ArchiverArchiver Posts: 46,084
edited 2001-12-21 22:12 in General Discussion
Dec 20

Many thanks to Steve and Earl and Kalun for helpful insights on this sticky
problem. I finally succeeded in
moving the wiper on my DS 1267 digital potentiometer.

It turned out I had neglected a pin marked V sub B on the pot chip. Checking
through the DS datasheet, I found
the V sub B is intended for Substrate Bias, at a minimum of -5.5 Volts and a
maximum of Ground. On a Board of
Education system I don't have -5.5 Volts, so I just grounded the V sub B pin and
ran the program. Presto. Swung
the needle on my ohmeter. I liked it so much I wrote a loop to keep the needle
swinging up and down.

My hope for this pot is that it will be faster in action than the DS 1804. On
the 1804 the wiper has to be
"walked" from point to point along the resistance element. On 1267, with
SHIFTOUT, it should be possible to jump
from A to B without plodding through every intermediate position. I want the pot
to follow some rapidly changing
data from a tachometer.

But: What does Substrate Bias do?

Should I come up with a power supply to satisfy the -5 volt requirement? I have
noticed that OP Amps often call
for +5 and -5 volts, and wondered how to introduce such a power supply into a
basic stamp circuit.

Again, many thanks for your help. It kept me on the right track.

Michael






Earl Bollinger wrote:

> My experiences were similar, but it may not help or help a lot.
> Assuming it's been wired up correctly. You did triple check your hookups?
> I had a lot of trouble getting the DS1820 thermometer chips to work right.
> One day they'd work ok, the next they'd all go crazy on me (all I did was
> power it up from one day to the next). Anyway, it looked like it might have
> been some sort of temperature sensitivity, when the temp would go over 80F
> they'd all flake out on me. But I couldn't tell if it was the BS2 or the
> DS1820's or combination. At 65 to 70F everything seemed to work Ok, but
> above 70F I'd start to see random glitches where the temp would spike for a
> reading, then go back to normal on the next reading.
> I found a DS1481 buss master chip and it seemed to solve all the problems,
> at least the readings are a lot more consistant now.
> The DS2480 serial port to 1 wire buss master chip looks even more promising,
> with even less hassle.
> The clock or pulse timing seems to be very tricky on these 1-wire things.
> regards,
> Earl
>
>
Original Message
> From: Michael Gianturco [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Wn2Nhr4oCFeF1TZI7SPvX4LH3zPdhO1lUa3cgBXIdaomsG0r-9t-wREfaqdN6hHalAkHGDf6-C6MxHM_dtc]michcg@m...[/url
> Sent: Tuesday, December 18, 2001 9:15 PM
> To: basicstamps@yahoogroups.com
> Subject: Re: [noparse][[/noparse]basicstamps] SHIFTOUT frustration
>
> Still trying to make a success of my Dallas Semiconductor 1267 digital pot.
> The idea is to try to move the wiper using
> SHIFTOUT. The wiper position is monitored with an ohmeter as I run the
> program, below. Nothing happens. The wiper does
> not move. The wiring is correct. The stamp works, and has performed well on
> other projects. The pot chip is probably
> okay -- I have a backup chip, and switched pots by way of troubleshooting
> the hardware. So it comes down to
> software.
> Here it is. It should be a straightforward synchronous serial transfer of
> data, but ... brickwall.
>
> '{$STAMP BS2}
>
> 'this is TRY67.BS2. Idea is to try to make the 1267-10 work.
> 'The first step is to declare variables and constants.
> 'Then enable the 1267 chip with the reset pin, P5
> 'then do the SHIFTOUT command
> 'Then return the reset line to low. At this, the wiper should move.
> 'For reference, Pin 5 is RST , Pin 8 is DATA , and Pin 6 is the CLOCK
> 'The pin numbers of the stamp are selected to correspond with
> 'the pin numbers of the potentiometer chip, to simplify the wiring check
>
> WIPER1 VAR BYTE
> WIPER0 VAR BYTE
>
> WIPER1=50
> WIPER0=1
> 'Either wiper can be set to a position between 1 and 255
>
> OUTPUT 5 'The Reset line
> OUTPUT 8 'The Data line
> OUTPUT 6 'The Clock line
>
> HIGH 5 'pin 5 goes high to reset the 1267
>
> 'Here is a template for the SHIFTOUT command
> 'SHIFTOUT DATA, CLOCK, MODE, [noparse][[/noparse]WIPERSELECT \1,WIPER1 \8,WIPER0 \8]
>
> 'Here is the actual SHIFTOUT command:
> SHIFTOUT 8, 6, MSBFIRST, [noparse][[/noparse]0 \1, WIPER1 \8, WIPER0 \8]
>
> LOW 5 'Wiper will not shift its position until Reset goes low.
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-12-21 01:36
    > Should I come up with a power supply to satisfy the -5 volt
    requirement? I have noticed that OP Amps often call
    > for +5 and -5 volts, and wondered how to introduce such a power
    supply into a basic stamp circuit.

    There is an 8 pin charge pump dc-dc converter chip #7660 with various
    prefixes depending on mfg. It will generate neg voltage from a pos
    supply. It is available from digikey and others. The one from digikey
    is made by Telcom. Do a web search for 7660 for the data sheet and
    apps. National Semi makes a version.

    Rick
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-21 14:22
    I have a question on this pot, will it handle 12V across the resistance
    terminals? I would like to use one in an automotive application where the
    resistance is plugged into a device that operates off of 12V.

    Thanks,

    Mark

    Original Message
    From: Michael Gianturco [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=X3yp2-awM1sn_yJb0z3vA31xrTipWoqHsHLq5kcVZucc1xWcVyAwMN9YZFKOKg2t3hWpDt8zvogL2Mjf]michcg@m...[/url
    Sent: Thursday, December 20, 2001 5:48 PM
    To: basicstamps@yahoogroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] SHIFTOUT breakthrough


    Dec 20

    Many thanks to Steve and Earl and Kalun for helpful insights on this sticky
    problem. I finally succeeded in
    moving the wiper on my DS 1267 digital potentiometer.

    It turned out I had neglected a pin marked V sub B on the pot chip.
    Checking through the DS datasheet, I found
    the V sub B is intended for Substrate Bias, at a minimum of -5.5 Volts and a
    maximum of Ground. On a Board of
    Education system I don't have -5.5 Volts, so I just grounded the V sub B pin
    and ran the program. Presto. Swung
    the needle on my ohmeter. I liked it so much I wrote a loop to keep the
    needle swinging up and down.

    My hope for this pot is that it will be faster in action than the DS 1804.
    On the 1804 the wiper has to be
    "walked" from point to point along the resistance element. On 1267, with
    SHIFTOUT, it should be possible to jump
    from A to B without plodding through every intermediate position. I want the
    pot to follow some rapidly changing
    data from a tachometer.

    But: What does Substrate Bias do?

    Should I come up with a power supply to satisfy the -5 volt requirement? I
    have noticed that OP Amps often call
    for +5 and -5 volts, and wondered how to introduce such a power supply into
    a basic stamp circuit.

    Again, many thanks for your help. It kept me on the right track.

    Michael






    Earl Bollinger wrote:

    > My experiences were similar, but it may not help or help a lot.
    > Assuming it's been wired up correctly. You did triple check your hookups?
    > I had a lot of trouble getting the DS1820 thermometer chips to work right.
    > One day they'd work ok, the next they'd all go crazy on me (all I did was
    > power it up from one day to the next). Anyway, it looked like it might
    have
    > been some sort of temperature sensitivity, when the temp would go over 80F
    > they'd all flake out on me. But I couldn't tell if it was the BS2 or the
    > DS1820's or combination. At 65 to 70F everything seemed to work Ok, but
    > above 70F I'd start to see random glitches where the temp would spike for
    a
    > reading, then go back to normal on the next reading.
    > I found a DS1481 buss master chip and it seemed to solve all the problems,
    > at least the readings are a lot more consistant now.
    > The DS2480 serial port to 1 wire buss master chip looks even more
    promising,
    > with even less hassle.
    > The clock or pulse timing seems to be very tricky on these 1-wire things.
    > regards,
    > Earl
    >
    >
    Original Message
    > From: Michael Gianturco [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=X3yp2-awM1sn_yJb0z3vA31xrTipWoqHsHLq5kcVZucc1xWcVyAwMN9YZFKOKg2t3hWpDt8zvogL2Mjf]michcg@m...[/url
    > Sent: Tuesday, December 18, 2001 9:15 PM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] SHIFTOUT frustration
    >
    > Still trying to make a success of my Dallas Semiconductor 1267 digital
    pot.
    > The idea is to try to move the wiper using
    > SHIFTOUT. The wiper position is monitored with an ohmeter as I run the
    > program, below. Nothing happens. The wiper does
    > not move. The wiring is correct. The stamp works, and has performed well
    on
    > other projects. The pot chip is probably
    > okay -- I have a backup chip, and switched pots by way of troubleshooting
    > the hardware. So it comes down to
    > software.
    > Here it is. It should be a straightforward synchronous serial transfer of
    > data, but ... brickwall.
    >
    > '{$STAMP BS2}
    >
    > 'this is TRY67.BS2. Idea is to try to make the 1267-10 work.
    > 'The first step is to declare variables and constants.
    > 'Then enable the 1267 chip with the reset pin, P5
    > 'then do the SHIFTOUT command
    > 'Then return the reset line to low. At this, the wiper should move.
    > 'For reference, Pin 5 is RST , Pin 8 is DATA , and Pin 6 is the CLOCK
    > 'The pin numbers of the stamp are selected to correspond with
    > 'the pin numbers of the potentiometer chip, to simplify the wiring check
    >
    > WIPER1 VAR BYTE
    > WIPER0 VAR BYTE
    >
    > WIPER1=50
    > WIPER0=1
    > 'Either wiper can be set to a position between 1 and 255
    >
    > OUTPUT 5 'The Reset line
    > OUTPUT 8 'The Data line
    > OUTPUT 6 'The Clock line
    >
    > HIGH 5 'pin 5 goes high to reset the 1267
    >
    > 'Here is a template for the SHIFTOUT command
    > 'SHIFTOUT DATA, CLOCK, MODE, [noparse][[/noparse]WIPERSELECT \1,WIPER1 \8,WIPER0 \8]
    >
    > 'Here is the actual SHIFTOUT command:
    > SHIFTOUT 8, 6, MSBFIRST, [noparse][[/noparse]0 \1, WIPER1 \8, WIPER0 \8]
    >
    > LOW 5 'Wiper will not shift its position until Reset goes low.
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    > Body of the message will be ignored.
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-21 15:17
    Hello Mark,
    Here is a link to Dallas Semiconductor's quick look datasheet for this
    product.

    http://dbserv.maxim-ic.com/quick_view2.cfm?qv_pk=2676

    This page, in turn, will link you to the full datasheet, which comes
    down as a .pdf.

    I am referring you to Dalsemi.com because I don't know the answer. They
    have quite a few different digital pots,
    however, and if this is not the right one, perhaps another one would
    work for you.

    Best, Michael



    Mark Adams wrote:

    > I have a question on this pot, will it handle 12V across the resistance
    > terminals? I would like to use one in an automotive application where the
    > resistance is plugged into a device that operates off of 12V.
    >
    > Thanks,
    >
    > Mark
    >
    >
    Original Message
    > From: Michael Gianturco [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_109rPvywG_KhiPbJkLVMSNZjOdFqAPTnbYZ-sXI01ouFzE6-82O7cF969x0uT7CMl6F6nCRlw3XUeVi]michcg@m...[/url
    > Sent: Thursday, December 20, 2001 5:48 PM
    > To: basicstamps@yahoogroups.com
    > Subject: Re: [noparse][[/noparse]basicstamps] SHIFTOUT breakthrough
    >
    > Dec 20
    >
    > Many thanks to Steve and Earl and Kalun for helpful insights on this sticky
    > problem. I finally succeeded in
    > moving the wiper on my DS 1267 digital potentiometer.
    >
    > It turned out I had neglected a pin marked V sub B on the pot chip.
    > Checking through the DS datasheet, I found
    > the V sub B is intended for Substrate Bias, at a minimum of -5.5 Volts and a
    > maximum of Ground. On a Board of
    > Education system I don't have -5.5 Volts, so I just grounded the V sub B pin
    > and ran the program. Presto. Swung
    > the needle on my ohmeter. I liked it so much I wrote a loop to keep the
    > needle swinging up and down.
    >
    > My hope for this pot is that it will be faster in action than the DS 1804.
    > On the 1804 the wiper has to be
    > "walked" from point to point along the resistance element. On 1267, with
    > SHIFTOUT, it should be possible to jump
    > from A to B without plodding through every intermediate position. I want the
    > pot to follow some rapidly changing
    > data from a tachometer.
    >
    > But: What does Substrate Bias do?
    >
    > Should I come up with a power supply to satisfy the -5 volt requirement? I
    > have noticed that OP Amps often call
    > for +5 and -5 volts, and wondered how to introduce such a power supply into
    > a basic stamp circuit.
    >
    > Again, many thanks for your help. It kept me on the right track.
    >
    > Michael
    >
    > Earl Bollinger wrote:
    >
    > > My experiences were similar, but it may not help or help a lot.
    > > Assuming it's been wired up correctly. You did triple check your hookups?
    > > I had a lot of trouble getting the DS1820 thermometer chips to work right.
    > > One day they'd work ok, the next they'd all go crazy on me (all I did was
    > > power it up from one day to the next). Anyway, it looked like it might
    > have
    > > been some sort of temperature sensitivity, when the temp would go over 80F
    > > they'd all flake out on me. But I couldn't tell if it was the BS2 or the
    > > DS1820's or combination. At 65 to 70F everything seemed to work Ok, but
    > > above 70F I'd start to see random glitches where the temp would spike for
    > a
    > > reading, then go back to normal on the next reading.
    > > I found a DS1481 buss master chip and it seemed to solve all the problems,
    > > at least the readings are a lot more consistant now.
    > > The DS2480 serial port to 1 wire buss master chip looks even more
    > promising,
    > > with even less hassle.
    > > The clock or pulse timing seems to be very tricky on these 1-wire things.
    > > regards,
    > > Earl
    > >
    > >
    Original Message
    > > From: Michael Gianturco [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_109rPvywG_KhiPbJkLVMSNZjOdFqAPTnbYZ-sXI01ouFzE6-82O7cF969x0uT7CMl6F6nCRlw3XUeVi]michcg@m...[/url
    > > Sent: Tuesday, December 18, 2001 9:15 PM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] SHIFTOUT frustration
    > >
    > > Still trying to make a success of my Dallas Semiconductor 1267 digital
    > pot.
    > > The idea is to try to move the wiper using
    > > SHIFTOUT. The wiper position is monitored with an ohmeter as I run the
    > > program, below. Nothing happens. The wiper does
    > > not move. The wiring is correct. The stamp works, and has performed well
    > on
    > > other projects. The pot chip is probably
    > > okay -- I have a backup chip, and switched pots by way of troubleshooting
    > > the hardware. So it comes down to
    > > software.
    > > Here it is. It should be a straightforward synchronous serial transfer of
    > > data, but ... brickwall.
    > >
    > > '{$STAMP BS2}
    > >
    > > 'this is TRY67.BS2. Idea is to try to make the 1267-10 work.
    > > 'The first step is to declare variables and constants.
    > > 'Then enable the 1267 chip with the reset pin, P5
    > > 'then do the SHIFTOUT command
    > > 'Then return the reset line to low. At this, the wiper should move.
    > > 'For reference, Pin 5 is RST , Pin 8 is DATA , and Pin 6 is the CLOCK
    > > 'The pin numbers of the stamp are selected to correspond with
    > > 'the pin numbers of the potentiometer chip, to simplify the wiring check
    > >
    > > WIPER1 VAR BYTE
    > > WIPER0 VAR BYTE
    > >
    > > WIPER1=50
    > > WIPER0=1
    > > 'Either wiper can be set to a position between 1 and 255
    > >
    > > OUTPUT 5 'The Reset line
    > > OUTPUT 8 'The Data line
    > > OUTPUT 6 'The Clock line
    > >
    > > HIGH 5 'pin 5 goes high to reset the 1267
    > >
    > > 'Here is a template for the SHIFTOUT command
    > > 'SHIFTOUT DATA, CLOCK, MODE, [noparse][[/noparse]WIPERSELECT \1,WIPER1 \8,WIPER0 \8]
    > >
    > > 'Here is the actual SHIFTOUT command:
    > > SHIFTOUT 8, 6, MSBFIRST, [noparse][[/noparse]0 \1, WIPER1 \8, WIPER0 \8]
    > >
    > > LOW 5 'Wiper will not shift its position until Reset goes low.
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in the Subject and
    > > Body of the message will be ignored.
    > >
    > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    > >
    > > To UNSUBSCRIBE, just send mail to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > > from the same email address that you subscribed. Text in the Subject and
    > Body of the message will be ignored.
    > >
    > >
    > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    > Body of the message will be ignored.
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-12-21 22:12
    Thank you Rick. I get the Digi-key catalog, and I will download the datasheet.
    This should solve several
    problems. Best, Michael

    rckbrwn wrote:

    > > Should I come up with a power supply to satisfy the -5 volt
    > requirement? I have noticed that OP Amps often call
    > > for +5 and -5 volts, and wondered how to introduce such a power
    > supply into a basic stamp circuit.
    >
    > There is an 8 pin charge pump dc-dc converter chip #7660 with various
    > prefixes depending on mfg. It will generate neg voltage from a pos
    > supply. It is available from digikey and others. The one from digikey
    > is made by Telcom. Do a web search for 7660 for the data sheet and
    > apps. National Semi makes a version.
    >
    > Rick
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.