How to inverted serial port?

10 Jan 2010

I need to get an inverted serial port wich I will use to receive streams from a GPS with an old rxtx-radio module.

The question is how to get an inverted serial port in the mbed.

10 Jan 2010

What is "inverted serial port"? mbed's serial port can both send and receive data.

10 Jan 2010

Sorry for my bad english.

"Inverted serial port" is when at the Rx pin low level are translated into high level and so on.

Ok, i can do it with a transistor.

11 Jan 2010

You could have a transistor that when the pin out was high it turned the transistor on and pulled the signal low, you would need a pull up resistor to pull the signal high when the transistor wasn't on. I would have thought that this was easier to do in software, something like x = !x

11 Jan 2010

Ok, its working!

 

Many thanks.