Тёмный
No video :(

#12 ARM Microcontroller Tutorial - USART Receiving 

BuildYourCNC
Подписаться 101 тыс.
Просмотров 2,4 тыс.
50% 1

Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1
amzn.to/3LFRaU5
My patreon:
/ newbiehack
How to set the clock speed to 48MHZ:
• #8 ARM Microcontroller...
Introduction to USART:
• #4 ARM Microcontroller...
In this video, I show how to receive a character.
All of the links below help support me at no extra cost to you.
Here are some logic analyzers that I recommend that are affordable:
16 channel Logic Analyzer: amzn.to/3EjzbzC
8 channel Logic Analyzer: amzn.to/3rrnKAv
DreamSourceLab Logic Analyzer: amzn.to/37WR4rG
The Saleae logic analyzer is similar to the one I am using in the video.
Saleae 16 channel logic analyzer: amzn.to/3KRotTi
ARM Kits: newbiehack.com...
Links to the software:
STM32CubeIDE: www.st.com/en/...
STM Studio: www.st.com/en/...
STM32CubeMonitor: www.st.com/en/...
Parts you will need in your prototyping environment:
Kits to get you up to speed quickly:
newbiehack.com...
If you already have the microcontroller, here are some breakout boards to use:
64 pin - amzn.to/3rUXeiq
48 pin and others - amzn.to/3IVkC6D
STM-Link V2 Programmer:
newbiehack.com...
amzn.to/3IIZlgj
Prototyping Breadboards:
newbiehack.com...
amzn.to/3o2Nh1g
Resistor Assortment Kit:
amzn.to/3H4R3ii
Solid core hook-up wire 22 AWG:
amzn.to/3IDGinA
amzn.to/3g5TKUJ
LEDs and Displays:
newbiehack.com...
amzn.to/3Az1zf7
Trimmer potentiometers:
newbiehack.com...
amzn.to/3H6q067
The Dynamixel servo I will be using in the USART videos:
amzn.to/35s3qHl
Microfarad Capacitor Assortment:
amzn.to/32BIX1G
Capacitors on Newbiehack.com:
newbiehack.com...
Electrolytic Capacitor Assortment:
amzn.to/33TtLxt
The cheap oscilloscope that I use (because it's cheap and will work all of the projects in these tutorials): amzn.to/2rSHnBa
A better oscilloscope and the one I would recommend: amzn.to/2qizK5M
The brand of the multimeter that I use and the one I recommend: amzn.to/2qicUez

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Hey all, sorry for the wait. I needed to go out of town to fix a machine that was damaged on delivery. Please consider buying the book (link in the description), and getting the microcontrollers from me to support these efforts. I also have a Patreon, link in the description. I have been doing Uber driving to make some extra money so I can keep doing this. Thank you all for watching and I hope you continue. It is truly a pleasure to create these videos for you.
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Please consider making comments. I think the RU-vid gods like that. Tell me what you think of using the same chip as the receiver to test the functionality of the transmit code.
@ZiclopDevices
@ZiclopDevices 2 года назад
Excellent tutorials!! Thanks for sharing.
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
My pleasure!
@mad1337nes
@mad1337nes 2 года назад
Good stuff, thank you.
@umargul5644
@umargul5644 2 года назад
Well come back, Great 👍 thanks, keep it 💯 updated 💯
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Thanks!!
@halisidrysdale
@halisidrysdale 2 года назад
Enjoyed the series so far - brilliant content :)
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Thank you so much!!
@glewiss6696
@glewiss6696 2 года назад
Can you use Serial Wire Viewer(SWV/SWO) via printf to Debug STM32 in STM32CubeIDE ?
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Yes, you can do this. I have seen it in other youtube videos, but I have not done it yet.
@Sebastian-69420
@Sebastian-69420 4 месяца назад
Hi, so I've got a question. I have a different microcontroller (stm32f401re). This µC only has a USART1_DataRegister to read or write from. Depending on whether you read or write to it, the µC puts the information into a TDR or RDR. But you can't access them specifically by name. So far, so good. My problem is with the while-loop that waits for the RXNE to tell you that it received data. I stepped through the program and found out that the TC-Bit (transmit_complete) is high at some point, prompting the RXNE-Bit to be high as well. This so far all makes sense. Now, before I am able to enter the while loop to wait for a receive, the RXNE-Bit goes LOW again and I am stuck in the loop. This doesn't make a lot of sense to me. Shouldn't the Bit be 1 as long as I received but didn't read from it? And only be 0 again once I read the data. I doesn't seem to work that way for me. Maybe someone here knows the answer :) BTW: I am really glad I found this tutorial series. It is really really good. Very well explained. In fact, your easy to understand explanations convinced me to buy your book. Didn't arrive yet, though. But I think the other half of episode #4 is missing. You started explaining how USART works and you wanted to use it to control a servo but I couldn't find the video where you actually did it :D
@PatrickHoodDaniel
@PatrickHoodDaniel 4 месяца назад
Hi Sebastian. Thanks! Are you storing the contents into a variable?
@Sebastian-69420
@Sebastian-69420 4 месяца назад
@@PatrickHoodDaniel Yes, I am storing it in myData = USART1->DR Die variable is volatile but I can't read it because I never get there.
@Sebastian-69420
@Sebastian-69420 4 месяца назад
@@PatrickHoodDaniel Well it appears to be working now. I don't know what changed. I went away from the computer and came back. Somebody else must have been here and fixed the problem ;) Or I just blinded by looking at this the whole day.
@OrbitalCookie
@OrbitalCookie 2 года назад
First step: order the MCU Second step: go have kids and wait for them to grow up Third step: receive the package and resume this tutorial
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
Not good to have kids with baby formula supply chain issues. I am experiencing these problems as well, but I am getting better at solving them. Sorry for the wait.
@OrbitalCookie
@OrbitalCookie 2 года назад
@@PatrickHoodDaniel Jokes aside, thanks for the tutorial - I am trying to use STM32G0 with RS485 transceiver.
@PatrickHoodDaniel
@PatrickHoodDaniel 2 года назад
@@OrbitalCookie awesome. Then this is the tutorial that will help. There are still a few more USART tutorials upcoming that will help in the RS485 realm. Are you more inclined to use register level code, or autogenerated code?
@OrbitalCookie
@OrbitalCookie 2 года назад
@@PatrickHoodDaniel I am mostly interested in registry-level, since I have written the simple wrappers myself in rust programming language. But I do sometimes use cube's auto-generation to check how they do it in C.
@rockroosterfootwearmarketi5378
@rockroosterfootwearmarketi5378 2 года назад
Hi, this is Rock Rooster Footwear. We sent you an email just now. Looking forward to your reply. Thank you!
Далее
STM32 Guide #2: Registers + HAL (Blink example)
30:02
Просмотров 193 тыс.
Коротко о моей жизни:
01:00
Просмотров 499 тыс.
Hacker's Guide to UART Root Shells
17:40
Просмотров 477 тыс.
Making robot navigation easy with Nav2 and ROS!
22:39
STM32 Guide #1: Your first STM32 dev board
12:12
Просмотров 206 тыс.