Shop OBEX P1 Docs P2 Docs Learn Events
RE: Propellar Powerup Reset — Parallax Forums

RE: Propellar Powerup Reset

schwiegjcschwiegjc Posts: 41
edited 2009-03-02 20:17 in Propeller 1
This a problem that has been described before.

If one is using BS2 functions, setting pin 31 to an input prevents the propellar from constantly resetting itself.

sensor.BS2_Start (30,31)
dira[noparse][[/noparse]31]~ 'prevents the propellar from constantly reset itself upon powerup.

I opened a new COG to run some BS2 functions, but the dira[noparse][[/noparse]31]~ in the main cog does not prevent the Propellar from setting itself.

Comments

  • Carl HayesCarl Hayes Posts: 841
    edited 2009-03-02 19:38
    Not familiar with what you're doing, but I suggest reversing the order of these two statements. Set the pin FIRST, and then do the other stuff. Worth a try?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-03-02 20:17
    The direction registers from all the cogs are ORed together. So if dira[noparse][[/noparse]31] is set in just a single cog, pin 31 will be an output, regardless of how it's set in the other cogs.

    -Phil
Sign In or Register to comment.