This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using sbit on MCB2100 - LPC2129

Hi,
I'm using a MCB2100 dev board with LPC2129 chip. I am used to using a 8051 based chip and have used the sbit declaration for pin assignment previously. However it doesn't really like it with my new board. How do I go about reading from an individual pin?
thanks
Andy

Parents
  • Thanks, but how do I read from a specific pin? For example if I was to connect a switch to P0,6 then how would I read from that pin without considering what all the other pin values are on that port?
    IOPIN0 would equal 0x00000040 when just that pin was high, but what if the other pins were high as well?
    thanks,
    andy

Reply
  • Thanks, but how do I read from a specific pin? For example if I was to connect a switch to P0,6 then how would I read from that pin without considering what all the other pin values are on that port?
    IOPIN0 would equal 0x00000040 when just that pin was high, but what if the other pins were high as well?
    thanks,
    andy

Children