Shop OBEX P1 Docs P2 Docs Learn Events
Downgrading from SX52 to SX48 and PORTA — Parallax Forums

Downgrading from SX52 to SX48 and PORTA

oberg3oberg3 Posts: 3
edited 2006-06-22 18:14 in General Discussion
With the downgrading from SX52 to SX48, I am obviously losing the high nibble of port A.

I have code similar to the following, with port a set to outputs:

MOV $05,#$FF

If I were to test pins 4-7 using SB or SNB, would it be accurate?

Thanks,
Mark

Comments

  • NateNate Posts: 154
    edited 2006-06-21 21:48
    I would·assume that they would be valid...... but at risk of being·considered flippant, why don't you give it a try and tell us?

    Nate
  • oberg3oberg3 Posts: 3
    edited 2006-06-22 12:02
    I currently do not own the device. The simulator claims it works.
  • BeanBean Posts: 8,129
    edited 2006-06-22 13:33
    Mark,
    Yes, If the pins are set to output, they will read-back the value they are set.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com

    "I reject my reality, and substitute yours." NOT Mythbusters
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-06-22 18:07
    Bean is correct, the bits are there, they just arn't connected to anything on the outside of the chip, so you can use them as general purpose bits in your program as flags, or other needs. Be sure to configure it to output first as Bean has said.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Life is one giant teacup ride.
  • oberg3oberg3 Posts: 3
    edited 2006-06-22 18:14
    Thanks
Sign In or Register to comment.