Discussion forum for the BasicX family of microcontroller chips.
|
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. |
|
|
|
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. |
|
|
|
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. ))) ))) ))) ))) ))) ))) ))) ))) ))) |
|
|
|
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. |
|
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] |