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)

Комментарии • 52

  • @negativ3dB
    @negativ3dB 4 года назад +7

    Hands down the most informative video I have ever seen. You have made my class project that much easier to do.

  • @ranjana_official
    @ranjana_official 8 лет назад +14

    Thanks. Best video to understand USART.

  • @nickolaysosnitsky3420
    @nickolaysosnitsky3420 3 года назад +1

    Это потрясающе детальное и доходчивое объяснение!

  • @narasimha4660
    @narasimha4660 2 года назад

    Very nice video with full of information

  • @zhirayrshirinyan2370
    @zhirayrshirinyan2370 4 года назад

    One of the best videos on this topic, Thank you very much.

  • @SavageStyle77
    @SavageStyle77 6 лет назад

    Genius tutorial! Best work over there!

  • @SimpleBrains
    @SimpleBrains 7 лет назад

    Its a superb video Joel. Keep posting !

  • @Shim267
    @Shim267 6 лет назад

    Very Informative. Thanks!

  • @thenightwhisper2872
    @thenightwhisper2872 5 лет назад

    *Many Thanks*, perfect video with many useful information's

  • @NiloofarKazemi1994
    @NiloofarKazemi1994 7 лет назад +1

    Perfect! Thanks.

  • @andrewmasden6352
    @andrewmasden6352 3 года назад

    Awesome! Thank you.

  • @xNideaquiNideallax
    @xNideaquiNideallax 8 лет назад

    muy buen video, enfocado y directo, muchas gracias like y sub nuevo :)

  • @abolfazlghobadi1656
    @abolfazlghobadi1656 3 года назад

    That was helpful, thanks!

  • @kevinchahine7553
    @kevinchahine7553 7 лет назад +1

    Really a great lesson

  • @RSC2194
    @RSC2194 7 лет назад +1

    Excelente todos tus videos

  • @AliG.G
    @AliG.G 6 лет назад

    sick tutorial

  • @lyricallizard7817
    @lyricallizard7817 7 лет назад

    great!

  • @alaahesham250
    @alaahesham250 5 лет назад +4

    You are wonderful , may all dreams come true

  • @knagalingam4091
    @knagalingam4091 5 лет назад

    great video

  • @roms_jr
    @roms_jr 6 лет назад

    Valeu!

  • @mustafacagraltindal
    @mustafacagraltindal 4 года назад

    Thanks...

  • @ExplainedIn4Minutes
    @ExplainedIn4Minutes 5 лет назад

    nice explanation

  • @latino81
    @latino81 6 лет назад

    Good video

  • @alibehrouz9833
    @alibehrouz9833 6 лет назад

    greattttttttttttttttttttttt

  • @ggarcia236
    @ggarcia236 4 года назад

    hi Joel, how can configure to work master and multiple slave (MPCM)?

  • @mahmudulrussel9408
    @mahmudulrussel9408 7 лет назад

    It is awesome. Thanks for clear description. Have you any video lecture on USB like this?

    • @joelcastillo1017
      @joelcastillo1017  7 лет назад

      Mahmudul Russel No I dont. sorry, thanks for the comment.

  • @aravind2890
    @aravind2890 8 лет назад

    thnk u very much sir ,good explaining ,can you tell me about avr programming .its my humble request

  • @quisyNeals
    @quisyNeals 7 лет назад +1

    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).

    • @joelcastillo1017
      @joelcastillo1017  7 лет назад

      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!

    • @quisyNeals
      @quisyNeals 7 лет назад

      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.

    • @joelcastillo1017
      @joelcastillo1017  7 лет назад

      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

  • @nravikiran4661
    @nravikiran4661 2 года назад

    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?

  • @Adrian-Carstea
    @Adrian-Carstea 7 лет назад +9

    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

    • @joelcastillo1017
      @joelcastillo1017  7 лет назад +5

      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

  • @shahzaibishaque
    @shahzaibishaque 4 года назад

    Well explained.
    1 question:
    Why we decrement variable?

    • @joelcastillo1017
      @joelcastillo1017  4 года назад +1

      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.

    • @shahzaibishaque
      @shahzaibishaque 4 года назад

      @@joelcastillo1017 Thank you Sir! 🙃

  • @kevin62125
    @kevin62125 6 лет назад

    what if i choose no parity, will the parity bits are going to be don't care or what?

    • @joelcastillo1017
      @joelcastillo1017  6 лет назад +1

      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.

    • @kevin62125
      @kevin62125 6 лет назад +1

      Joel Castillo thank you

  • @jd080657
    @jd080657 8 лет назад

    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?

    • @joelcastillo1017
      @joelcastillo1017  8 лет назад

      Yes, the best way to do it its by checking the flag but this was just an example.

    • @jd080657
      @jd080657 8 лет назад

      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.

    • @joelcastillo1017
      @joelcastillo1017  8 лет назад

      +John deLassus no problem. Thanks for your comment.

  • @michaelkhantal2223
    @michaelkhantal2223 6 лет назад

    Great Video.. please sir were can I download your slides

    • @joelcastillo1017
      @joelcastillo1017  6 лет назад

      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/

    • @michaelkhantal2223
      @michaelkhantal2223 6 лет назад

      Thank you very much sir...I actually do not want the video i just want your notes is it possible i can download?

    • @joelcastillo1017
      @joelcastillo1017  6 лет назад

      Sure, it's actually the same. =)