Shop OBEX P1 Docs P2 Docs Learn Events
PWMPAL Question — Parallax Forums

PWMPAL Question

ArchiverArchiver Posts: 46,084
edited 2004-06-09 04:33 in General Discussion
I'm using two PWMPAL outputs(P13 & P14) to drive two power logic level
FETs
via 220ohm gate resistors. In addition I would like to use P15 as an output
to a OneWire
device and P12 as a simple on/off output(via 220ohm res) to a logic level
FET. In
reading the PWMPAL documentation, it is unclear to me whether this will
cause conflicts.
Do I need to use outputs other than P12 and P15 for this?
Thanks fo any help/info.
Tom Fisher
Dallas,TX

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-06-08 18:58
    Tom,

    I think that will work fine. I have done a similar scheme with success.

    Jonathan

    www.madlabs.info


    Original Message
    From: "TBooneFisher" <tboonefisher@s...>
    To: <basicstamps@yahoogroups.com>
    Cc: <support@p...>
    Sent: Tuesday, June 08, 2004 9:13 AM
    Subject: [noparse][[/noparse]basicstamps] PWMPAL Question


    > I'm using two PWMPAL outputs(P13 & P14) to drive two power logic level
    > FETs
    > via 220ohm gate resistors. In addition I would like to use P15 as an
    output
    > to a OneWire
    > device and P12 as a simple on/off output(via 220ohm res) to a logic level
    > FET. In
    > reading the PWMPAL documentation, it is unclear to me whether this will
    > cause conflicts.
    > Do I need to use outputs other than P12 and P15 for this?
    > Thanks fo any help/info.
    > Tom Fisher
    > Dallas,TX
    >
    >
    >
    >
    >
    > 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.
    >
    > Yahoo! Groups Links
    >
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-09 04:10
    Tom
    All PWMPAL I/Os default to an input state. So P12 & P15 can be used by the stamp as I/O to your needs.

    Regards,
    Chuck
  • ArchiverArchiver Posts: 46,084
    edited 2004-06-09 04:33
    > Tom
    > All PWMPAL I/Os default to an input state. So P12 & P15 can be used by the
    stamp as I/O to your needs.
    >
    > Regards,
    > Chuck
    >
    Thanks Chuck. So just to verify, IF I only enable PWM on
    one or two of the PWM out pins, the other PWM output pins
    can be used for normal I/O e.g. OWOUT, OWIN etc.
    The reason I ask is that I have one of the beta PWMPAL
    modules(higher clock speed). If I enable PWM on MM2(P13) then OWIN and
    OWOUT commands fail on Pin 15. When I replace the
    beta PWMPAL with a standard PWMPAL, the OW commands
    then work.
    I haven't been able to try to track this down with a scope yet
    as I'm busy trying to get other circuitry/software going on
    a new protype I'm working on.
    Any thoughts will be appreciated.
    Thanks,
    Tom Fisher
    Dallas,TX
Sign In or Register to comment.