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 ...
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 ...
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:...
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 ...
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 ...
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, ...
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, ...
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.
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
uart × 1615stm32 × 287
serial × 286
microcontroller × 261
pic × 176
usb × 134
c × 115
avr × 105
arduino × 99
rs232 × 94
interrupts × 81
atmega × 77
embedded × 70
communication × 68
rs485 × 62
ftdi × 59
spi × 54
i2c × 45
baudrate × 42
bluetooth × 41
microchip × 40
ttl × 37
dma × 35
fpga × 34
msp430 × 33