Shop OBEX P1 Docs P2 Docs Learn Events
Wiring a button on the breadboard of sx28ac — Parallax Forums

Wiring a button on the breadboard of sx28ac

KamKam Posts: 1
edited 2006-01-18 04:02 in General Discussion
Could some please assist me in the proper wiring of a input button to the bread board attached to the SX28AC.

I have one wire connected to ra.o port the other end connected to one side of the button on the board. Then another wire is connected to Vss or ground with the other end connected to the opposite side of the button.·I have chosen to use pull up resistor rather than to attach a external pull-up resister confused.gif . Unfortunately, when in the debug mode my program gets stuck there indicating the button is not recognized in the program. shakehead.gif

Thanks

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-01-18 04:02
    If you're using the internal pull-up then your [noparse][[/noparse]normally-open] button should be connected between the I/O pin and ground (Vss). Make sure that your button pin is an input -- if it's made an output and high while the button is pressed you'll have a short between the pin and ground. For this reason we often recommend putting a 220-ohm resistor between the pin and the button.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.