Quantcast
Channel: Confusion with polling data by an MCU using UART - Electrical Engineering Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by Justme for 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...

View Article



Answer by Dirceu Rodrigues Jr for Confusion with polling data by an MCU using...

...between HAL_UART_Transmit and HAL_UART_Receive I don't add any delaybut still I receive data without any problem. On the other hand, if Iadd delay between HAL_UART_Transmit and HAL_UART_Receive I...

View Article

Confusion with polling data by an MCU using UART

I'm using an MCU board(STM32 with HAL) and basically polling data from a device using serial protocol. The MCU sends a fixed byte array(6 bytes) to the device, and in response it receives a fixed byte...

View Article

Image may be NSFW.
Clik here to view.

Answer by jusaca for Confusion with polling data by an MCU using UART

UART works by starting and ending one "frame" of data (typically 8 Bit) with a start and a stop bit on the signal line. As long as the receiver does not see any such start bit, it simply waits until...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images