Shop OBEX P1 Docs P2 Docs Learn Events
Need help reading in keypad — Parallax Forums

Need help reading in keypad

Steven.S.Steven.S. Posts: 4
edited 2008-04-24 18:08 in General Discussion
Hola,
I was wondering how I would read in a button with the SX-28 from the 4x4 matrix keypad sold by parallax
http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/txtSearch/keypad/List/1/ProductID/194/Default.aspx?SortField=ProductName,ProductName

I've looked at the program in the help menu and I can not get that program to compile. I'm new to this. I'm sure that I have the pin
and port configuration correct. All I want to do is read in a value once a button is pressed and put that value into a register.

Comments

  • VelocitVelocit Posts: 119
    edited 2008-04-24 06:59
    The program in the SX help files is configured for use with the SX28 and should compile/load without problems. What compile errors are you receiving?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
  • Steven.S.Steven.S. Posts: 4
    edited 2008-04-24 08:10
    Thanks for the reply. But, I've figured it out. I kept saving it as an SRC file. However I do have another question. I know that the max current
    output from a pin is 80mA but, I was confused at to what the max voltage output is. From the book I have I think it may be equal to Vdd.
    And, another question I have is what is the minimum voltage required to for the SX chip to operate after it has been programmed?

    -Thanks again
  • BeanBean Posts: 8,129
    edited 2008-04-24 11:10
    The voltage from a pin will be Vdd when the pin is HIGH and Vss when the pin is LOW.

    The max voltage for Vdd is 5.5 volts.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?

    www.iElectronicDesigns.com

    ·
  • VelocitVelocit Posts: 119
    edited 2008-04-24 18:08
    Steven.S. said...
    And, another question I have is what is the minimum voltage required to for the SX chip to operate after it has been programmed!

    It can operate with as low as 3.3V, but as you hinted at, it needs to be programmed with +5V.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
Sign In or Register to comment.