MC9RS08KA2 LED connection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9RS08KA2 LED connection

1,097件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

307件の閲覧回数
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 件の賞賛
返信