Ahmad Syazwan

GPIO pins for input and output to LED circuit

Discussion created by Ahmad Syazwan on Mar 7, 2009
Latest reply on May 26, 2013 by GUITTET JOEL

Greetings all.

 

I am using MC9S08GT60 MCU and from the manual I understand that there are lots of pins that I can use as GPIO if I don't use their intended function.

 

What I'm trying to do is, connect the GPIO to a custom built circuit with relays and LEDs (those will represent devices that I want to control remotely) so my question is, how do I give output and receive input from the circuit with GPIO? Is it as simple as directly connecting the pin to a demultiplexer on the LED circuit assuming there will be volt emitted when output pin is set to high?

 

I'd appreciate on any advice.

 

Thanks in advance.

Outcomes