Shop OBEX P1 Docs P2 Docs Learn Events
Bs2sx programm for unipolar 4 phase stepping motor — Parallax Forums

Bs2sx programm for unipolar 4 phase stepping motor

ArchiverArchiver Posts: 46,084
edited 2002-04-10 21:58 in General Discussion
hi, i am required to learn BS2SX programming for examination
purposes. However , i do not understd what does outa=1,2,4 mean.Thx.[noparse]:)[/noparse]
outa=1
pause delay
outa=2
pause delay
outa=4
pause delay

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-04-10 14:48
    OUTA refers to the first four output bits (P0,P1,P2,P3) taken as a 4-bit
    word. OUTB refers to P4,P5,P6,P7, etc. There are other special words
    that let you treat the I/O pins as a word or byte. These are useful when
    you need to talk to devices that require parallel output like LCDs, for
    example.

    Al Williams
    AWC
    * Easy RS-232 Prototyping
    http://www.al-williams.com/awce/rs1.htm



    >
    Original Message
    > From: danger_21sg [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kQMpjOMf3l7kpqQybZma9lmMQPfBPf-jtCyxYyxTUfenthMrWEzTpVoBkCf5xxyJWWv4jkPHBCJD2fEhx34HCLQ]danger_21sg@y...[/url
    > Sent: Wednesday, April 10, 2002 8:38 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Bs2sx programm for unipolar 4 phase
    > stepping motor
    >
    >
    > hi, i am required to learn BS2SX programming for examination
    > purposes. However , i do not understd what does outa=1,2,4
    > mean.Thx.[noparse]:)[/noparse] outa=1 pause delay outa=2 pause delay outa=4 pause delay
    >
    >
    >
    > 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 2002-04-10 15:00
    You'll find the BASIC Stamp manual very helpful in your efforts. You can
    download a PDF version at no charge from www.parallaxinc.com.

    As to your question below, OutA refers to pins 0, 1, 2 and 3 of the BASIC
    Stamp. Using binary (%) notation for numbers, it's a bit easier to see
    what's going on:

    OutA = %0001 ' turn on pin 0
    PAUSE delay
    OutA = %0010 ' turn on pin 1
    PAUSE delay
    OutA = %0100 ' turn on pin 2
    PAUSE delay

    -- Jon Williams
    -- Applications Engineer, Parallax


    In a message dated 4/10/02 8:41:27 AM Central Daylight Time,
    danger_21sg@y... writes:


    > hi, i am required to learn BS2SX programming for examination
    > purposes. However , i do not understd what does outa=1,2,4 mean.Thx.[noparse]:)[/noparse]
    > outa=1
    > pause delay
    > outa=2
    > pause delay
    > outa=4
    > pause delay
    >




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-04-10 21:58
    Read the manual first, then ask a specific question.
    Original Message
    From: "danger_21sg" <danger_21sg@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Wednesday, April 10, 2002 6:38 AM
    Subject: [noparse][[/noparse]basicstamps] Bs2sx programm for unipolar 4 phase stepping motor


    > hi, i am required to learn BS2SX programming for examination
    > purposes. However , i do not understd what does outa=1,2,4 mean.Thx.[noparse]:)[/noparse]
    > outa=1
    > pause delay
    > outa=2
    > pause delay
    > outa=4
    > pause delay
    >
    >
    >
    > 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.