STM32 UART #3 || Receive Data in Blocking Mode & Interrupt

  Рет қаралды 12,777

ControllersTech

ControllersTech

Күн бұрын

Пікірлер: 22
@domdom1941
@domdom1941 6 ай бұрын
5:30 Oh my god!!! This is exactly what I needed. I never knew why this callback function exists and when it is triggered. Great tutorial, way better than GPT 4o.......
@weiwei646
@weiwei646 7 ай бұрын
Thank you so much, been trying for hours but finally solved it after watching your video
@mahmutbucuk
@mahmutbucuk 10 ай бұрын
Thanks for the educational series. Is there a resource you would recommend to learn more ?
@fillempie1501
@fillempie1501 11 ай бұрын
Thanks for sharing. Always very practical topics. I am impressed of the HAL function knowledge. Is there somewhere a total overview of all the HAL functions (not only the UART)?
@ControllersTech
@ControllersTech 11 ай бұрын
Yes they are available for every series. You can google something like "stm32f1 hal documentation".
@fillempie1501
@fillempie1501 11 ай бұрын
Thanks! @@ControllersTech
@szapsis
@szapsis 11 ай бұрын
Thank you for your video!
@Diego2011Henrique
@Diego2011Henrique 11 ай бұрын
In my case I have an MCU that automatically sends data to the TX port, when I connect another MCU to get this data, the data does not fall into the same position in the buffer compared to what is being sent due to the receiver connecting in the middle of the transfer, like control this transmission to match the transmitter and receiver buffer positions? I do not know what to do 😔
@ControllersTech
@ControllersTech 11 ай бұрын
Asynchronous transfers can't do that. That is why there are SPI and I2C communications, where you use the clock to synchronize the data.
@Diego2011Henrique
@Diego2011Henrique 11 ай бұрын
@@ControllersTech The idea would be when you connect the MCU and it sends a command to the other to start the transfer process? In case of UART
@iacacch
@iacacch 4 ай бұрын
There’s something I don’t understand. If I put the Hal_receive_IT outside the while loop as in your video, it doesn’t work. If I put it inside the while it works.. any idea?
@ControllersTech
@ControllersTech 4 ай бұрын
That's not how it works. The interrupt shouldn't be put in the while loop, it defies the entire purpose of interrupt. When you call the interrupt receive (not in while loop of course), the function will wait in the background for the given number of bytes to arrive. Once the required number of data bytes has been received, an interrupt will trigger an RX Complete callback is called by default. When this callback is called, the receive IT interrupt gets disabled. This is how the HAL works. After you process the received data, call the function HAL receive IT again inside the callback itself. This will enable the interrupt again.
@AhmadAsmndr
@AhmadAsmndr 9 ай бұрын
thank you very much!
@woldecosgrove
@woldecosgrove 10 ай бұрын
whats the name of the serial terminal program you use to send "Hello" ? and where can i download it ?
@ControllersTech
@ControllersTech 10 ай бұрын
WCHSerialPort. It is available on appstore
@woldecosgrove
@woldecosgrove 10 ай бұрын
@@ControllersTech Can i=this work on Window11? is it free ?
@woldecosgrove
@woldecosgrove 10 ай бұрын
@@ControllersTech can i use Realterm to send the "hello" ?
@ControllersTech
@ControllersTech 10 ай бұрын
Yes you can use realterm
@lucvanhove9639
@lucvanhove9639 11 ай бұрын
Very interesting.
@amarashokraut2542
@amarashokraut2542 10 ай бұрын
Thanks you sir
@aaronartale
@aaronartale 7 ай бұрын
5:00
STM32 UART #2 || Use Interrupt & DMA to send Data
13:00
ControllersTech
Рет қаралды 19 М.
STM32 UART #4 || Receive Data using the DMA
20:29
ControllersTech
Рет қаралды 11 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 51 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 2,6 МЛН
Tutorial on STM32 External Interrupts and callback funktions
24:31
Serial UART with STM32 Microcontroller-Transmit and Receive Data
18:44
STM32 : USART/UART TX/RX Coding using STM32CUBE IDE
16:25
Hardware_Coding
Рет қаралды 12 М.
Basics of UART Communication | UART Frame Structure | RS 232 Basics | Part1
10:27
Touch GFX #5. How to Send  UART data to GUI || Sample from Interrupt
11:42
STM32 UART #1 || How to configure Parameters || Send Data
14:27
ControllersTech
Рет қаралды 21 М.
Large Language Models explained briefly
8:48
3Blue1Brown
Рет қаралды 867 М.
Interrupts | #8 STM32 GPIO button interrupt
23:48
Terminal Two
Рет қаралды 59 М.
Receive data using UART in STM32 || Poll || Interrupt || DMA
14:07
ControllersTech
Рет қаралды 126 М.