MC9RS08KA2 LED connection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9RS08KA2 LED connection

1,051 Views
jackabo
Contributor I
Hey everyone,
  I am very new to the world of microcontrollers but am working on a project for school using the MC9RS08KA2. What I need to do for now is just connect an LED to the microcontroller and make it light up. Can anyone lead me in the right direction? Any suggestions would be appreciated. Thanks.
     Jackabo

Message Edited by jackabo on 2007-02-0205:29 PM

Labels (1)
0 Kudos
Reply
1 Reply

261 Views
joerg
Contributor II
Hi jackabo

it is very simple to connect a LED to a microprocessor (MPU). A LED acts like a lamp, BUT you have always to connect a resistor in series with a LED!!! The resistor as to have a value of 2200 OHMs or 2.2kOhms. Simply connect the LED with the anode (usually the longer leg) to a GPIO (general purpose input output) the cathode on the resistor and the hter leg of the resistor to GND. That should work. Then you have to program your device to set the bit you have chosen for the LED to be set to HIGH and the LED should turn ON.

Saluti Joerg

PS. if you like a simple OS try EBS08

infos here

http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&message.id=4284;

Message Edited by joerg on 2007-02-0207:09 PM

Message Edited by joerg on 2007-02-0207:11 PM

Message Edited by joerg 3 times because the automatic stuff does NOT work! on 2007-02-0207:12 PM

Message Edited by joerg on 2007-02-0207:13 PM

0 Kudos
Reply