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
  • "any ideas as to why this could be?"

    1. Your code is wrong;
    2. Your hardware design is wrong;
    3. Your hardware implementation is wrong;
    4. Your hardware is faulty;
    5. Any combination of the above.

    With absolutely no details at all of your code or your hardware (other than it involves a LED and a nrf24e1), it's really rather tricky to be any more specific...!

    "someone mentioned setting tri-states or as an output?? but i do not know how to do this."

    The nrf24e1 Datasheet (or some other manufacturer documentation) should tell you this.

    Note that this depends entirely on the chip and has nothing to do with the Keil tools. You need to consult the manufacturer documentation (and other support materials - app notes, helpline, etc) first to determine what needs to be done; if you then need help with how to do it in Keil C51, then this would be the place to ask!

Reply
  • "any ideas as to why this could be?"

    1. Your code is wrong;
    2. Your hardware design is wrong;
    3. Your hardware implementation is wrong;
    4. Your hardware is faulty;
    5. Any combination of the above.

    With absolutely no details at all of your code or your hardware (other than it involves a LED and a nrf24e1), it's really rather tricky to be any more specific...!

    "someone mentioned setting tri-states or as an output?? but i do not know how to do this."

    The nrf24e1 Datasheet (or some other manufacturer documentation) should tell you this.

    Note that this depends entirely on the chip and has nothing to do with the Keil tools. You need to consult the manufacturer documentation (and other support materials - app notes, helpline, etc) first to determine what needs to be done; if you then need help with how to do it in Keil C51, then this would be the place to ask!

Children
No data