AVR USART (Serial Communication) Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

ความคิดเห็น • 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.

  • @nickolaysosnitsky3420
    @nickolaysosnitsky3420 3 ปีที่แล้ว +1

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

  • @ranjana_official
    @ranjana_official 8 ปีที่แล้ว +14

    Thanks. Best video to understand USART.

  • @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.

  • @alaahesham250
    @alaahesham250 6 ปีที่แล้ว +5

    You are wonderful , may all dreams come true

  • @thenightwhisper2872
    @thenightwhisper2872 5 ปีที่แล้ว

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

  • @kevinchahine7553
    @kevinchahine7553 7 ปีที่แล้ว +1

    Really a great lesson

  • @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!

  • @RSC2194
    @RSC2194 7 ปีที่แล้ว +1

    Excelente todos tus videos

  • @andrewmasden6352
    @andrewmasden6352 4 ปีที่แล้ว

    Awesome! Thank you.

  • @mahmudulrussel9408
    @mahmudulrussel9408 8 ปีที่แล้ว

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

    • @joelcastillo1017
      @joelcastillo1017  8 ปีที่แล้ว

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

  • @ExplainedIn4Minutes
    @ExplainedIn4Minutes 5 ปีที่แล้ว

    nice explanation

  • @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! 🙃

  • @knagalingam4091
    @knagalingam4091 5 ปีที่แล้ว

    great video

  • @abolfazlghobadi1656
    @abolfazlghobadi1656 4 ปีที่แล้ว

    That was helpful, thanks!

  • @aravind2890
    @aravind2890 8 ปีที่แล้ว

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

  • @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?

  • @NiloofarKazemi1994
    @NiloofarKazemi1994 7 ปีที่แล้ว +1

    Perfect! Thanks.

  • @latino81
    @latino81 6 ปีที่แล้ว

    Good video

  • @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

  • @ggarcia236
    @ggarcia236 5 ปีที่แล้ว

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

  • @mustafacagraltindal
    @mustafacagraltindal 4 ปีที่แล้ว

    Thanks...

  • @AliG.G
    @AliG.G 6 ปีที่แล้ว

    sick tutorial

  • @xNideaquiNideallax
    @xNideaquiNideallax 8 ปีที่แล้ว

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

  • @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

  • @michaelkhantal2223
    @michaelkhantal2223 7 ปีที่แล้ว

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

    • @joelcastillo1017
      @joelcastillo1017  7 ปีที่แล้ว

      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 7 ปีที่แล้ว

      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  7 ปีที่แล้ว

      Sure, it's actually the same. =)

  • @lyricallizard7817
    @lyricallizard7817 7 ปีที่แล้ว

    great!

  • @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.

  • @roms_jr
    @roms_jr 7 ปีที่แล้ว

    Valeu!

  • @kevin62125
    @kevin62125 7 ปีที่แล้ว

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

    • @joelcastillo1017
      @joelcastillo1017  7 ปีที่แล้ว +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 7 ปีที่แล้ว +1

      Joel Castillo thank you

  • @alibehrouz9833
    @alibehrouz9833 6 ปีที่แล้ว

    greattttttttttttttttttttttt