SparkFun According to Pete 9-17-12: Serial Communication Demystified

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

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

  • @vaishakhmonti
    @vaishakhmonti 7 лет назад +3

    Don't get fooled by the lackadaisical and even casual presentation. It's loaded guys. Loved the scope bit. Appreciate the effort man! Keep em coming.

  • @haochencui4066
    @haochencui4066 8 лет назад +6

    Finally I understand serial communicaion. Thank you sir.

  • @tomkeyser8384
    @tomkeyser8384 8 лет назад +7

    Back in the OLD days.... Baud was 110, used for transmitting teletype. Actually before that baud was 33. Baud being is signal transitions. Back then being sent across telephone grade lines. really bad quality lines with analog repeaters that needed to be manually tuned, So, line noise and harmonics were horrible on these lines. Parity and stop bits were definitely required just to get a byte across the circuit reliably, usually being repeated several times.

  • @ITZMEEZYUBEEZY
    @ITZMEEZYUBEEZY 9 лет назад +4

    This is the same technology used in cars (uart) Its how crankshaft/camshaft position sensors and wheel speed sensors communicate with the powertrain control module or body control modules.

  • @johanburger6109
    @johanburger6109 5 лет назад +1

    Well said mate well said, besides understanding something so that you can fix it you also need the knowledge to expand on design in the future

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

    I suspect the reason 2 stop bits is a thing is because back in the dark ages some receivers needed a little extra time at high voltage for the start bit detector circuit to reset or time to transfer from the shift register to the receive buffer before the next string of bits started coming in.
    Also, in my experience (mostly PLC and HMI programming software) the com parameters would be [baud] 8n1 (or 8o1) not 8/1/N, because that's the order the bits come in. (DPS)
    Great video.

  • @carlinhosff
    @carlinhosff 12 лет назад +2

    the best explanation about UART I've ever saw! Can you give us, on the next one, a example of a microcontroller interfacing with a computer? Thx!

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

    Much more enthusiastic than my embedded systems professor. As for the reason for multiple stop bits, my very old professor mentioned that it had something to do with older devices, specifically teletypewriters.

  • @MohammedGamal5
    @MohammedGamal5 10 лет назад +17

    A-W-E-S-O-M-E : one byte at a time xD

  • @75blackviking
    @75blackviking 3 года назад

    Thank you for the really helpful explanation! Great vid.

  • @ZaragonArt
    @ZaragonArt 12 лет назад +1

    I believe two stop bits were originally for the original mechanical teletypes tto print the received character before receiving the next character.

  • @thijss1170
    @thijss1170 12 лет назад +3

    This is better than my university class ...

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

      Really it's a greag video to learn easily. Thanx sir.

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

    unforgettable explanation thanks !!!!

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

    loved this thank you!

  • @yellowcrescent
    @yellowcrescent 12 лет назад

    Using a USART in synchronous mode is just like using a serial shift register or other synchronous serial comms (like SPI). Instead of just RX/TX, you've also got CLK (XCK), which is your clock line (baud rate)... One device is the master (clock generator), while the other(s) are the receivers which use the clock as the baud rate reference. Although you can do this without using a USART and bit-bang it just as well....

  • @atiqahmad5342
    @atiqahmad5342 10 лет назад

    This is really very good video. I was trying understand the basics of serial communication and it helped me very much.thanks pete

  • @hertelfrank
    @hertelfrank 12 лет назад

    Nicely presented!

  • @Dirtdigger257
    @Dirtdigger257 10 лет назад +4

    Great vid i got inspired half whey through broke out the oscilloscope measured the baud rate did the math and it all made sense. Then watch the rest of the video and you ended up doing what i just did lol. Thank for the vid you made it easy to understand.

  • @MurrayPearson
    @MurrayPearson 12 лет назад

    Thanks, Lawrence. I was actually thinking of a star-shaped cluster of Arduinos - one master controller driving specialist subsystems on separate machines. It looks like this could implement that nicely - or, there’s always I2C. :-)

  • @SparkofMagic
    @SparkofMagic 12 лет назад

    Great Explanation.
    Thanks Pete.
    P.S. looking forward for the next video.

  • @sigalgalkin
    @sigalgalkin 10 лет назад +3

    THANK YOU. ENJOY SUDY FROM YOU.
    I DO HAVE A QUSTION: will it work with lego (simens)?
    i do have a sierial adaptor and my computer have usb.
    thank you again

  • @nathanlilienthal1604
    @nathanlilienthal1604 11 лет назад

    You do the same thing I do when spelling words. Love it. Also great videos.

  • @MurrayPearson
    @MurrayPearson 12 лет назад

    I assume the Arduino pins used are TX and RX (pin 1 and 0 on my Duemilanove clone)? Suppose you had three Arduinos and you wanted to talk between them with UARTs for some reason (obviously this can be handled with I2C, but we’ll ignore that for now), can you have multiple serial I/Os on one µcontroller?

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

    TY Pete

  • @lawrencejob
    @lawrencejob 12 лет назад +1

    If you don't have a capable Arduino, check out (Google) 'Arduino Software Serial'. It only has two physical ports but, being a microcontroller, you can simulate it.

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

    hey dude your head is on backwards or maybe it's the hat? ha ha great video. i work on a x-ray camera that uses the RTS, CTS, DTR, DSR pins as pause and run. thanks a lot...:)

  • @4lifeNerdfighter
    @4lifeNerdfighter 12 лет назад

    You need to also do a video on USB protocols.

  • @carrierspace
    @carrierspace 12 лет назад

    Can we get more videos like this please.

  • @kamotecues
    @kamotecues 10 лет назад

    very informative. thank you sir

  • @yuanchenghe8592
    @yuanchenghe8592 10 лет назад +1

    AAAAAAAAAAAAAAAAAAAAAAAWESOME!!!!!

  • @lawrencejob
    @lawrencejob 12 лет назад +1

    Yeah, it'll work but it will saturate the ports on the 'server' Arduino. Even without UART, you're making a very expensive project -> using multiple Arduinos (unless you have to) isn't very cost effective at all.

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

    O my!... Now I know everything!

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

    truly inspiring...i want to study the communication between pc and smart ups connected by serial interface ,db9 at ups end and db25 at pc end...how can i monitor communication between them...

  • @90chevytruck
    @90chevytruck 12 лет назад

    How is that ATTEN oscilloscope?? Is it good compared to an Owon brand or Rigol?

  • @Galfonz
    @Galfonz 12 лет назад

    Avionics uses parity. Wouldn't want a bad byte to cause your plane to go down instead of up. The UART is 32 bits. Google ARINC-429

  • @mokmo23
    @mokmo23 12 лет назад

    lookimg forward to the part on I2C

  • @johnrees44..G4EIJ
    @johnrees44..G4EIJ 4 года назад

    Many thanks from an 'old timer' who thought he understood serial☹️....

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

    I have never heard of USART..

  • @HemaBasha33
    @HemaBasha33 11 лет назад +1

    U really really look like johnny depp :) nice video

  • @dubbbear
    @dubbbear 12 лет назад

    radical

  • @AxelWerner
    @AxelWerner 12 лет назад

    dual isdn is just 128k max. in the us even less sinxe they often only got 56k per chan.

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

    i was gonna like this but your like hand said 666 LOL.

  • @thenerdyouknowabout
    @thenerdyouknowabout 12 лет назад

    Never used usart

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

    I know I really late on this one .... he has no idea on the history of data communications ....
    In the beginning ... machines or teletypes would send out the information bit by bit each bit was short and went out all messages were created on punched tape ... Paper tape and ir depended on the vintage the old machine used 5 bit for each character ... the they added more characters so that they could send more descriptive messages and went to the 8 bit code ASCII and there are many dielectric of ASCII .... the the computer , or electronic communications evolved and they invented the UART ... this has been around forever at the same time the USART was developed ... the reason for the UART is that machine to machine communications is very slow and computer to computer is very fast so they needed something to store the character until each bit was received and then sent to the next computer ... the BAUD rates hes is talking about .. WELL they were SLOW and started at 300 then went to 1200 the 2400 then 56000 then up and up 96000 then higher com lines in the past were bad and noisy so the slow speed to-day they are still noisy but at the sending end all is encoded from analogue to digital before it leave your home or place of business ... I could go on ... but that is enough for now ... OHHH the USART was ment to be used computer to computer where they could send the characters and clock them at computer speeds but they found it still not practical ....