cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32F103C8 USART2 Init not indepently about time

Cyanl.1
Associate

I use Keil and V6 complier as project eaxmple in link, there is local var s in main() if set s=120 take more time USART2 Tx (PA2) can't send anything but set s=2,or comment this take time line it's work�?? when not work condition PA2 always low ,but we know when normal PA2 was High when Send empty bus Idle and fall low at send high . so confuzzz please Check and think a reason ...

1 REPLY 1
Cyanl.1
Associate

amazingly both work and not work case ,comparing all GPIOA,USART2 regs it's same either.