I was looking for PICO PIO work with DMA to do basically the same, read a message to idle into a DMA buffer - found this video very informative on what I'm trying to do being on the right lines and if I can't achieve with PIO then great to know about what the STM32 can do as another option. Great video!
@stm32worldАй бұрын
When I discovered that one about a year ago I think I was quite surprised that this is not being mentioned more often. The receive to idle makes it much easier to work with serial receive. Happy you enjoyed the video! Check out my other videos in the series - you might find another surprise or two (bit banding is a life safer too).
@niclash3 ай бұрын
Small nitpick; @5:51 "A much much better approach..." well, that depends on what you are using serial communications for. For instance, in more stateful protocols (often binary), then it can be a lot easier to do the interrupt-driven approach. And if the bitrate is really low, then the "wait to idle" might be unnecessary long (one full byte out of say (2-10 bytes), if the IRQ routine knows that an "end-of-packet" marker was just sent. "In many cases..." would have been a better wording. ALSO; Kudos on improving sound quality!!!
@stm32world3 ай бұрын
Well - just to be clear - I do love the nitpicks - that is the ONLY way I can improve this. And yes - I can easily imagine situations where interrupt - or even polling would work fine but I _think_ the vast majority of cases uarts are used it is to receive strings of sorts. So - audio quality if ok-ish now?
@niclash3 ай бұрын
@@stm32world Audio is a magnitude better than previously.
@stm32world3 ай бұрын
Compression enabled and level boosted
@bubaks23 ай бұрын
Curious , what software do you use for editing the video/audio?
@stm32world3 ай бұрын
@@bubaks2 I mentioned in the first video that I _really_ want to do these videos unscripted. I record them with OBS studio and two external cams. I use a noise cancelling Logitech headset for the audio (the noise cancellation is essential as I am sitting about 1 1/2 m from a fan). The audio compression was done inside OBS studio while recording. IF I edit anything I do that in an application called kdenlive, but many of the videos are one shot unedited.
@capistor13 ай бұрын
Awesome stuff!
@stm32world3 ай бұрын
Glad you enjoyed it
@niclash3 ай бұрын
Another small mistake I just noticed; @4:07 PA2 should go to PA1 (Tx -> Rx)
@stm32world3 ай бұрын
Right - I missed that. Not going to redo the video because of that detail ;) Let it be a learning experience for the viewers.