cancel
Showing results for 
Search instead for 
Did you mean: 

non-inverted UART output

juerg
Associate II
Posted on February 27, 2013 at 09:28

Hi

I am trying to command a Pololu Maestro device from my STM32 device. The Pololu requires a non-inverted TTL signal for commands.

I can send out the command through an attached UART board to a hyperterminal session on my PC but as I understand the PL 2303 on that addon board inverts the signal. I actually wanted to use the SW-attached UART-Pin as Tx signal. I tried to find a setting for the UART or Pin to be non-inverting but could not see anything like that.

Can I define a Pin to be always in the inverted state of another Pin?

Juerg

#uart
20 REPLIES 20
stm322399
Senior
Posted on February 12, 2016 at 13:40

(void)EXTI->PR;

That should be enough to cope with the behavior I explained.

If you did not solve the issue with the ''while'' loop (never write such an unlimited while loop inside an interrupt handler), the ground reason should be something else.