4 votes
Accepted

Confusion with polling data by an MCU using UART

No, because your code must be ready listening back the response before the device starts sending it. The device may start sending the response right aftet MCU has send the last byte of the command to ...
Justme's user avatar
  • 147k
4 votes

Confusion with polling data by an MCU using UART

...between HAL_UART_Transmit and HAL_UART_Receive I don't add any delay but still I receive data without any problem. On the other hand, if I add delay between HAL_UART_Transmit and HAL_UART_Receive I ...
Dirceu Rodrigues Jr's user avatar
3 votes
Accepted

Low drive strength of level shifter

Sometimes, the recommended operating conditions table show values for IOH and IOL. But in general, these values are specified as test conditions for VOH and VOL in the electrical characteristics table:...
CL.'s user avatar
  • 19.3k
3 votes
Accepted

STM32 Help receiving serial data sent from python's pyserial

As someone said, "You're using it wrong"! HAL_UART_Receive_IT() is a non-blocking function meant to prepare for receiving data. You pass your buffer address and length to the HAL, and then ...
bobflux's user avatar
  • 77.1k
3 votes

UART Transmitter implementation using Verilog

Another problem is that you have the statement bit_counter = bit_counter + 1; in an unclocked always block -- this will ...
Dave Tweed's user avatar
  • 173k
2 votes

UART Transmitter implementation using Verilog

The Tx pulse is too short. You need to keep it high long enough for counter to roll over (from 108 to 0). In the testbench, ...
toolic's user avatar
  • 8,153
2 votes

Low drive strength of level shifter

You can't expect a logic level communication to work over 3m, with that level shifter, and at such high speed. You should switch to something that is intended for 3m communication between devices, ...
Justme's user avatar
  • 147k
2 votes
Accepted

Reducing EMI caused by unterminated serial TX line

When something is connected, the receiver will be a high-impedance CMOS input, which behaves pretty much the same as an open end. So there is no practical difference between connected and unconnected. ...
CL.'s user avatar
  • 19.3k
1 vote
Accepted

STM32 UART only works while ST-Link is connected

You have initialized the pin as open drain pin and without pull-up. There is no reason to expect the pin ever to go high by itself, if there is no internal pull-up enabled or no external pull-up ...
Justme's user avatar
  • 147k

Only top scored, non community-wiki answers of a minimum length are eligible