Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | shiftout (lsb or msb first)?

Discussion forum for the BasicX family of microcontroller chips.

shiftout (lsb or msb first)? - James Tu - Nov 26 18:20:00 2002



I couldn't find any documentation on the order of bits for the ShiftOut
command. Does anyone know?
I'm guessing lsb shifts out first...

Thanks.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: shiftout (lsb or msb first)? - Frank Manning - Nov 26 18:36:00 2002

From: "James Tu" <>

> I couldn't find any documentation on the order of bits
> for the ShiftOut command. Does anyone know?

MS bit is first. This is in the newest version of the docs, which
come with the beta 1 compiler:

http://www.basicx.com/beta

-- Frank Manning
-- NetMedia, Inc.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: shiftout (lsb or msb first)? - Tom De Weyer - Nov 27 4:56:00 2002

Can this be chanced into lsb? Because I own a Build your own robot kit, and
it normally uses a basic stamp 2, but I want to use a bx-24 instead.

The only proplem I have right now is the shiftout and shiftin Procedures who
differ.

Thanks ,
Tom

)))-----Original Message-----
)))From: Frank Manning [mailto:]
)))Sent: woensdag 27 november 2002 0:36
)))To:
)))Subject: Re: [BasicX] shiftout (lsb or msb first)?
)))
)))
)))From: "James Tu" <>
)))
)))> I couldn't find any documentation on the order of bits
)))> for the ShiftOut command. Does anyone know?
)))
)))MS bit is first. This is in the newest version of the docs, which
)))come with the beta 1 compiler:
)))
))) http://www.basicx.com/beta
)))
)))-- Frank Manning
)))-- NetMedia, Inc.
)))
)))
)))
)))
)))
)))
)))
)))
)))





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: shiftout (lsb or msb first)? - Frank Manning - Nov 27 11:48:00 2002

From: "Tom De Weyer" <>

> Can this be chanced into lsb? Because I own a Build your
> own robot kit, and it normally uses a basic stamp 2, but
> I want to use a bx-24 instead.
>
> The only proplem I have right now is the shiftout and
> shiftin Procedures who differ.

You can use FlipBits to control bit ordering. FlipBits generates a
mirror image of a byte.

-- Frank Manning
-- NetMedia, Inc.




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

RE: shiftout (lsb or msb first)? - Dan Bielecki - Nov 28 9:42:00 2002

I second Tom's request.
I have to flip bits at times.

Cant there be a Chip Window selection item?
Or an Option statement in code?

Option Explicit
Option LSB | MSB

If no option statement, defaults to the way it works now.
Make it function at the subprogram level would be even better....that way
one could have a process the performs by LSB and then call a different
process that functions by MSB.

If one has multiple devices attached to multiple pins (as most of us do) and
some read MSB and others read LSB, an Option statement at the subprogram
level would take care of it with one line of code.

.db. -----Original Message-----
From: Tom De Weyer [mailto:]
Sent: Wednesday, November 27, 2002 2:57 AM
To:
Subject: RE: [BasicX] shiftout (lsb or msb first)? Can this be chanced into lsb? Because I own a Build your own robot kit,
and
it normally uses a basic stamp 2, but I want to use a bx-24 instead.

The only proplem I have right now is the shiftout and shiftin Procedures
who
differ.

Thanks ,
Tom

)))-----Original Message-----
)))From: Frank Manning [mailto:]
)))Sent: woensdag 27 november 2002 0:36
)))To:
)))Subject: Re: [BasicX] shiftout (lsb or msb first)?
)))
)))
)))From: "James Tu" <>
)))
)))> I couldn't find any documentation on the order of bits
)))> for the ShiftOut command. Does anyone know?
)))
)))MS bit is first. This is in the newest version of the docs, which
)))come with the beta 1 compiler:
)))
))) http://www.basicx.com/beta
)))
)))-- Frank Manning
)))-- NetMedia, Inc.
)))
)))
)))
)))
)))
)))
)))
)))
))) Yahoo! Groups Sponsor
ADVERTISEMENT

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed]




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )