Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | Invert serial tx output

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

Invert serial tx output - Marco Trapanese - Jun 28 7:02:47 2008

Hello,

is there a way to invert the output of a serial tx via software?
I'm trying to avoid an external inverter.

In detail I'd like to invert the Serial D output (PC0).

Thank you
Marco / iw2nzm

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: Invert serial tx output - Bill_CT - Jun 29 9:58:59 2008

--- In r...@yahoogroups.com, "Marco Trapanese"
wrote:
>
> Hello,
>
> is there a way to invert the output of a serial tx via software?
> I'm trying to avoid an external inverter.
>
> In detail I'd like to invert the Serial D output (PC0).

Not without bit-banging the port i.e., manually driving the output pin
yourself. This is a poor solution since you have to disable
interrupts to keep the bit times right. I suppose you can use a timer
and interrupt on each bit to send but it's still a hassle.

Bill
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )

Re: Invert serial tx output - Marco Trapanese - Jun 30 5:23:02 2008

--- In r...@yahoogroups.com, "Bill_CT" wrote:

> Not without bit-banging the port i.e., manually driving the output pin
> yourself. This is a poor solution since you have to disable
> interrupts to keep the bit times right. I suppose you can use a timer
> and interrupt on each bit to send but it's still a hassle.
Ok, I'm going to add an external bjt... I need to use hardware uarts.

Thanks
Marco / iw2nzm

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )