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 peripherals

I am doing a christmas lights program for an 8051 as part of a college project. I downloaded the evaluation version (uVision V2.40a) and it's great except I don't have the LED option in the peripherals menu. I've heard it might be a plug-in but I can't find it anywhere. Anyone able to enlighten me?

Parents
  • Andrew -

    All of the magic going on inside your microcontroller is really designed to do two things: read pin values (high or low) and set pin values. You probably won't find anything specifically dealing with LEDs in uVision, unless you find a plugin or a simulator module specifically designed for that purpose.

    Take a look at the "Blinky" example program that comes with the tool set. It flashes 8 port pins (to which you could connect an array of LEDs) and is easily modified. Blinky is a good starting point but, if you want to do something more complicated, like control an entire string of lights, the project becomes a bit more involved.

    Good luck.

Reply
  • Andrew -

    All of the magic going on inside your microcontroller is really designed to do two things: read pin values (high or low) and set pin values. You probably won't find anything specifically dealing with LEDs in uVision, unless you find a plugin or a simulator module specifically designed for that purpose.

    Take a look at the "Blinky" example program that comes with the tool set. It flashes 8 port pins (to which you could connect an array of LEDs) and is easily modified. Blinky is a good starting point but, if you want to do something more complicated, like control an entire string of lights, the project becomes a bit more involved.

    Good luck.

Children