Shop OBEX P1 Docs P2 Docs Learn Events
82C54 on BS2e — Parallax Forums

82C54 on BS2e

ArchiverArchiver Posts: 46,084
edited 2003-04-12 22:09 in General Discussion
Does anybody know how to control 82C54 Programable Timer from Bs2e?


Is possible to use BS2e I/O pins as 82C54 data bus and address bus?


if Anybody have a sample code or documentation about this question,
please send me.




thank's




Vanderson

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-04-11 07:29
    I have just started fooling with talking to an 8255 from an BS2SX. I am
    using it as a high-speed interface to a PC, instead of the clunky serial
    port method. I have some pretty basic Mode-0 I/O working already talking to
    a PORT-A bus. I haven't attempting using interrupt signaling yet....I
    should give it a whirl in the next day or two. I'll post my results when I
    have some.


    - Ted


    Original Message
    From: kloggerr [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=SbQ_KH0YV7osjCJ-yIA8EM1MkF4afJZb35Ahlp5757WBk3aMI854tJ2OC4mEQKYaB7WixriQw4lzdwQHhw]loggerr@b...[/url
    Sent: Thursday, April 10, 2003 7:21 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] 82C54 on BS2e




    Does anybody know how to control 82C54 Programable Timer from Bs2e?


    Is possible to use BS2e I/O pins as 82C54 data bus and address bus?


    if Anybody have a sample code or documentation about this question,
    please send me.




    thank's




    Vanderson



    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 2003-04-11 18:04
    I don't believe that the Stamp has an interrupt
    structure. The *INTerrupt pin from the 8255 can only
    go into a discrete I/O pin which is then _polled_ for
    the active level.

    kevin
    --- Ted Larson <ted@l...> wrote:
    >
    > I have just started fooling with talking to an 8255
    > from an BS2SX. I am
    > using it as a high-speed interface to a PC, instead
    > of the clunky serial
    > port method. I have some pretty basic Mode-0 I/O
    > working already talking to
    > a PORT-A bus. I haven't attempting using interrupt
    > signaling yet....I
    > should give it a whirl in the next day or two. I'll
    > post my results when I
    > have some.
    >
    >
    > - Ted
    >
    >
    >
    Original Message
    > From: kloggerr [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=xpLjwbhsyvBYv4bKu9udFmFfQhSLuYprpGVmMO7-QlFJhD9jar-4z5Wap1Zg06EaiqKV-I-idxlYUA]loggerr@b...[/url
    > Sent: Thursday, April 10, 2003 7:21 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] 82C54 on BS2e
    >
    >
    >
    >
    > Does anybody know how to control 82C54 Programable
    > Timer from Bs2e?
    >
    >
    > Is possible to use BS2e I/O pins as 82C54 data bus
    > and address bus?
    >
    >
    > if Anybody have a sample code or documentation about
    > this question,
    > please send me.
    >
    >
    >
    >
    > thank's
    >
    >
    >
    >
    > Vanderson
    >
    >
    >
    > 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/
    >
    >


    __________________________________________________
    Do you Yahoo!?
    Yahoo! Tax Center - File online, calculators, forms, and more
    http://tax.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-12 18:43
    Ciao,

    I just started working on the 82C54 PIT and a BS2p24, but through a pair of
    PCF8574 I2C I/O extenders (one for the data bus, and the other for the
    remaining address and control lines, for I/O limitations), but actually I'm
    just writing the program codes and didn't try any test.

    If you have I/O enough for directly controlling the PIT, you can do it.
    Anyway I suggest you to put a 74HC... buffer through the lines used for the
    data bus, mainly for the safety of the Stamp (the PIT data bus is
    bi-directional). Second, remember that when powered on the PIT has its
    internal registers in an unknown condition (it isn't provided by a reset
    pin), therefore you have to set them anyway.

    I'm following only the data sheet of the PIT, that seems something plain to
    me. If you tell me what application you are working around (that is, what
    operating modes of the internal counters do interest you), maybe I can be of
    any help for you.

    I.e., I'm using the PIT in two PWM controller boards, one for AC and one for
    DC motor, and that requires two counters - with different modes - in each
    board.

    Alberto, IZ2EWV.

    Original Message
    From: "kloggerr" <loggerr@b...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, April 11, 2003 4:20 AM
    Subject: [noparse][[/noparse]basicstamps] 82C54 on BS2e


    > Does anybody know how to control 82C54 Programable Timer from Bs2e?
    >
    > Is possible to use BS2e I/O pins as 82C54 data bus and address bus?
    >
    > if Anybody have a sample code or documentation about this question,
    > please send me.
    >
    > thank's
    >
    > Vanderson
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-12 20:50
    My project require only one 82C54 PIT on basic PWM arrange,counter0 on
    mode 2 and counter 1/2 on mode 1 to control a 50 Hz PWM motor.


    Now, I am using almost all I/O pins from my BS2e for 82C54 control.
    It's very bad, I'll need more I/O or another Bs2e !!


    I would like to use a any IC for expand Bs2e I/O pins.Do you know
    anything to make that?






    Vanderson






    --- In basicstamps@yahoogroups.com, "Alberto Calderara"
    <albertocalderara@t...> wrote:


    > Ciao,


    >


    > I just started working on the 82C54 PIT and a BS2p24, but through a
    pair of


    > PCF8574 I2C I/O extenders (one for the data bus, and the other for
    the


    > remaining address and control lines, for I/O limitations), but
    actually I'm


    > just writing the program codes and didn't try any test.


    >


    > If you have I/O enough for directly controlling the PIT, you can do
    it.


    > Anyway I suggest you to put a 74HC... buffer through the lines used
    for the


    > data bus, mainly for the safety of the Stamp (the PIT data bus is


    > bi-directional). Second, remember that when powered on the PIT has
    its


    > internal registers in an unknown condition (it isn't provided by a
    reset


    > pin), therefore you have to set them anyway.


    >


    > I'm following only the data sheet of the PIT, that seems something
    plain to


    > me. If you tell me what application you are working around (that is,
    what


    > operating modes of the internal counters do interest you), maybe I
    can be of


    > any help for you.


    >


    > I.e., I'm using the PIT in two PWM controller boards, one for AC and
    one for


    > DC motor, and that requires two counters - with different modes - in
    each


    > board.


    >


    > Alberto, IZ2EWV.


    >


    >
    Original Message


    > From: "kloggerr" <loggerr@b...>


    > To: <basicstamps@yahoogroups.com>


    > Sent: Friday, April 11, 2003 4:20 AM


    > Subject: [noparse][[/noparse]basicstamps] 82C54 on BS2e


    >


    >


    > > Does anybody know how to control 82C54 Programable Timer from
    Bs2e?


    > >


    > > Is possible to use BS2e I/O pins as 82C54 data bus and address
    bus?


    > >


    > > if Anybody have a sample code or documentation about this
    question,


    > > please send me.


    > >


    > > thank's


    > >


    > > Vanderson
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-12 22:09
    74HC595 for Serial out (Data, Clk, Grn)
    to Parallel set of signals?
    (Use SHIFTOUT to control)
    (AND you can put multiples in series!)

    74HC165 for Parallel in to Serial set of signals?
    (Again, use SHIFTIN )

    --- In basicstamps@yahoogroups.com, "kloggerr" <loggerr@b...> wrote:
    > My project require only one 82C54 PIT on basic PWM arrange,counter0
    on
    > mode 2 and counter 1/2 on mode 1 to control a 50 Hz PWM motor.
    >
    >
    > Now, I am using almost all I/O pins from my BS2e for 82C54 control.
    > It's very bad, I'll need more I/O or another Bs2e !!
    >
    >
    > I would like to use a any IC for expand Bs2e I/O pins.Do you know
    > anything to make that?
    >
    >
    >
    >
    >
    >
    > Vanderson
    >
    >
    >
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Alberto Calderara"
    > <albertocalderara@t...> wrote:
    >
    >
    > > Ciao,
    >
    >
    > >
    >
    >
    > > I just started working on the 82C54 PIT and a BS2p24, but through
    a
    > pair of
    >
    >
    > > PCF8574 I2C I/O extenders (one for the data bus, and the other
    for
    > the
    >
    >
    > > remaining address and control lines, for I/O limitations), but
    > actually I'm
    >
    >
    > > just writing the program codes and didn't try any test.
    >
    >
    > >
    >
    >
    > > If you have I/O enough for directly controlling the PIT, you can
    do
    > it.
    >
    >
    > > Anyway I suggest you to put a 74HC... buffer through the lines
    used
    > for the
    >
    >
    > > data bus, mainly for the safety of the Stamp (the PIT data bus is
    >
    >
    > > bi-directional). Second, remember that when powered on the PIT
    has
    > its
    >
    >
    > > internal registers in an unknown condition (it isn't provided by
    a
    > reset
    >
    >
    > > pin), therefore you have to set them anyway.
    >
    >
    > >
    >
    >
    > > I'm following only the data sheet of the PIT, that seems
    something
    > plain to
    >
    >
    > > me. If you tell me what application you are working around (that
    is,
    > what
    >
    >
    > > operating modes of the internal counters do interest you), maybe
    I
    > can be of
    >
    >
    > > any help for you.
    >
    >
    > >
    >
    >
    > > I.e., I'm using the PIT in two PWM controller boards, one for AC
    and
    > one for
    >
    >
    > > DC motor, and that requires two counters - with different modes -
    in
    > each
    >
    >
    > > board.
    >
    >
    > >
    >
    >
    > > Alberto, IZ2EWV.
    >
    >
    > >
    >
    >
    > >
    Original Message
    >
    >
    > > From: "kloggerr" <loggerr@b...>
    >
    >
    > > To: <basicstamps@yahoogroups.com>
    >
    >
    > > Sent: Friday, April 11, 2003 4:20 AM
    >
    >
    > > Subject: [noparse][[/noparse]basicstamps] 82C54 on BS2e
    >
    >
    > >
    >
    >
    > >
    >
    >
    > > > Does anybody know how to control 82C54 Programable Timer from
    > Bs2e?
    >
    >
    > > >
    >
    >
    > > > Is possible to use BS2e I/O pins as 82C54 data bus and address
    > bus?
    >
    >
    > > >
    >
    >
    > > > if Anybody have a sample code or documentation about this
    > question,
    >
    >
    > > > please send me.
    >
    >
    > > >
    >
    >
    > > > thank's
    >
    >
    > > >
    >
    >
    > > > Vanderson
Sign In or Register to comment.