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

LED problems

Hi i am using the nordic nrf24e1 with combined 8051. I am very new to embedded and am just trying to blink an LED. For some reason it only works on pin 0 of port 0?? and on no other pin from ports 1 and 0. any ideas as to why this could be? i am using the correct header file (reg24e1.h) and it works on every pin in simulation, someone mentioned setting tri-states or as an output?? but i do not know how to do this. Any help will be greatly appreciated.

leigh

Parents
  • Thanks a bunch guys, i sm only using one LED and was hovering around the face that i would need to set the pins corretly and that it was just luck that P0^0 was already configured correctly, I never actually noticed the _DIR AND _ALT before, that seems almost certainly the problem. I will try that out and let you know if i have more problems........next step wireless connection (I hope you have your thinking caps on)

    thanks again

Reply
  • Thanks a bunch guys, i sm only using one LED and was hovering around the face that i would need to set the pins corretly and that it was just luck that P0^0 was already configured correctly, I never actually noticed the _DIR AND _ALT before, that seems almost certainly the problem. I will try that out and let you know if i have more problems........next step wireless connection (I hope you have your thinking caps on)

    thanks again

Children