AVR USART (Serial Communication) Explained
HTML-код
- Опубликовано: 5 авг 2024
- Contents:
00:00 Start
00:19 USART0 Features
01:55 USART0 Register Structure
07:19 USART Block Diagram
10:33 USART Frame Format
11:55 Frame Example 1 (8 bits, Even Parity, 1 Stop Bit)
14:02 What is parity? (Even Parity Example)
15:14 Frame Example 2 (7 bits, Odd Parity, 2 Stop Bits)
15:55 Odd Parity Example
16:53 Error Checking Example
18:00 USART Configuration: BAUD RATE
19:13 USART Configuration: Mode
19:41 USART Configuration: Parity
19:59 USART Configuration: Stob bits
20:08 USART Configuration: Char Size
20:42 Error Checking in USART
22:03 USART Example (Transmission Only)
24:44 USART Example Program in C (Atmel Studio)
Hands down the most informative video I have ever seen. You have made my class project that much easier to do.
Thanks. Best video to understand USART.
Это потрясающе детальное и доходчивое объяснение!
Very nice video with full of information
One of the best videos on this topic, Thank you very much.
Genius tutorial! Best work over there!
Its a superb video Joel. Keep posting !
Very Informative. Thanks!
*Many Thanks*, perfect video with many useful information's
Perfect! Thanks.
Awesome! Thank you.
muy buen video, enfocado y directo, muchas gracias like y sub nuevo :)
That was helpful, thanks!
Really a great lesson
Excelente todos tus videos
Gracias por tu comentario. Saludos!
sick tutorial
great!
You are wonderful , may all dreams come true
hi :'D
@@AnharAbdalmottaleb-- woooow ...hi back :'D حازم حازم
great video
Valeu!
Thanks...
nice explanation
Good video
greattttttttttttttttttttttt
hi Joel, how can configure to work master and multiple slave (MPCM)?
It is awesome. Thanks for clear description. Have you any video lecture on USB like this?
Mahmudul Russel No I dont. sorry, thanks for the comment.
thnk u very much sir ,good explaining ,can you tell me about avr programming .its my humble request
If I were trying to use two "rf" tranceivers to allow two microcontrollers to communicate with eachother (wirelessly), would the frequency of the mirocontrollers have to match the frequency of of the tranceivers. If so, how exactly would I go about that (like, step by step).
It depends, if the transceivers act like "buffers" then yes, they would have to have the same frequency (bps). I would check the datasheet and specs of the transceivers to be sure. Best of luck!
Joel Castillo
Hello joel. Thank you for your reply. I am using hc-11's. I have done my very best to synchronize everything (including the baud rate, frequency, and the power supply). something is clearly being received by the receiving microcontroller, but it is not responding the way I programmed it to. This leads me to beleive that I have established communication, but the receiving microcontroller is not capable of interpreting the information correctly. I think this means that the there must be something wrong with the timing. I am using an atmega328p and the "c" programming language, and if you don't mind, I would like to send you the code I have for the transmitting microcontroller and the receiving microcontroller so that you can take a look at it, and show me what I am doing wrong. If I don't receive a reply, I will take the hint and leave you alone.
Thanks again.
Sure, you can send me your code(s): my email is joel.castillo@gmail.com. I don't promise to answer soon though, but I'll check it once I get a chance. Regards
at 16.50 you have placed odd parity as 0, but we can put 1 also(you put 0 based on logic operation right, ) so even parity 0 odd parity 1 . no need to stick right , based on our logic we have to consider parity bit right?
nice tutorial, but you have a mistake in it, 0x3A = 0b111010 not 0b1111010, so the diagram is wrong for 0x3A but it's ok for 0x7A
Thanks for your comment, the info on the video is already corrected (there is a textbox that says it is actually 0x7A) but thanks for leting me know. Best regards
Well explained.
1 question:
Why we decrement variable?
Well, in this case I wanted to make a simple program that sends DATA that decrements every time it sends new information. So what this program does is send first a number 255, then 254, then 253, and so on, until it sends 1, then 0, and then it restarts again at 255.
@@joelcastillo1017 Thank you Sir! 🙃
what if i choose no parity, will the parity bits are going to be don't care or what?
If the microcontroller is generating the output (transferring data) then it is not going to calculate nor send the parity. If the microcontroller is going to read data (receiving) then it is going to assume no parity bit is going to be received, and thus, it could result in a Frame Error if the data received does contain a parity bit.
Joel Castillo thank you
Why the 50ms delay? This limits you to 20 characters per second. Is there a more precise way to do this, like wait for a status flag?
Yes, the best way to do it its by checking the flag but this was just an example.
Thanks Joel for your quick response. And by the way, this is a great video filled with all the details I was looking for. Thanks for making it.
+John deLassus no problem. Thanks for your comment.
Great Video.. please sir were can I download your slides
Sure, I only ask that you use the creative commons licence, as indicated in the bottom of my video: creativecommons.org/licenses/by-nc/4.0/
Thank you very much sir...I actually do not want the video i just want your notes is it possible i can download?
Sure, it's actually the same. =)