XaiJu
beneater
beneater

patreon


The RS-232 protocol

New video? Yes! It's been a while... But I'm getting back to the 6502 computer with plans to add a serial interface, which will allow for a ROM monitor and ultimately a more functional computer. Anyhow, this video gets started by looking at the electrical and timing characteristics of the RS232 protocol.

As always, I appreciate your support! I realize it's been a while, so if you weren't expecting a post or otherwise aren't interested, my policy is always that if you simply ask, I'll refund your contribution. And of course, please let me know if you catch any errors or confusing bits.

Thanks again!

-Ben

The RS-232 protocol

Comments

Good to have you back indeed !

Fabien Wernli

Congratulations on your 1 millionth subscriber !

Michael McDonnell

Lol, I literally cancelled on Friday. If you’re back I’m back.

Jim McCaslin

I admire your way of explaining technical topics in ways that doesn't make it sound like you're speaking down to the viewer. A lot of your videos you take the viewer on a discovery journey and it feels clear you're purposedly getting into the hurdles you to illustrate points, making the viewer appreciate a better understanding of what goes on. I tried to explain RS232 to a friend and didn't even come close to this. Great video (as always).

Peter Larsen

At 24:20, by setting the counter in half_bit_delay to #6 instead of #13, we are not really waiting exactly half a bit though, are we? because the original counter of 13 included the time it took the routine to read the bit, whereas with half_bit_delay, we are waiting before the routine gets executed. Still works, because reading at 1/3 of a bit is fine with a well tuned clock.

Corin Baurmann

I'm currently ill in bed and it's great to have you back making videos.

Corin Baurmann

Great to have you back!!!!!

Daniel Varga

Glad to have you back, Ben!

Chris Bates-Keegan

Just happy you're alive and well :)

Jason Bowen

Welcome back! I am excited to check out this new video.

Ryan Helinski

Welcome back, Ben!

Tim Oriol

Return of the king

Cameron Peck

Really great to have a new video. Seeing the bits on the scope really helps with understanding how the protocol works and how it copes with lack of clock transmission.

Martin Noble

good to have you back

Andy Chang

at 22:56 you said 1ghz i think you meant 1 mhz

Michael McDonnell

I sort of knew what 8n1 (or 8e1, etc) meant but not at the bit level. It is great to see a video from you.

Michael McDonnell

YAY!! We missed you and are thrilled to have you back!!

-

I thoroughly enjoyed that, thanks! Well worth the wait.

Dave MInter

I'm just glad you're okay, and back making excellent videos! I learn so much from you!

Adrian Cochrane

So glad you're back!

Jonathan Turner

Welcome Back; glad to see you are ok. Also great video :D

Danzar

You are back! Great!

Lukasz Pacholik

I'm so glad you're back!!

Kerry Allan

Always happy to see a Ben Eater video! Hope to see you expand the 8-Bit BB Computer someday.

David Courtney

Welcome back! Looking forward to watching this!

Auctoris

Great video! Thank you. I think you should name it "The RS-232 protocol" though. Even if it's slightly inaccurate, it will generate more views IMO.

Ivan Toshkov

Restored my faith in humanity... all is not lost; thank you for the triumphant return and for affirming that serial is not dead!

Michael Weitman

Welcome back!!

Jo Ga

Odd transition at 9:27

David Dawkins

Wonderful to see you back

David Dawkins

Happy to see you back, hope you're doing ok!

alisianoi

Welcome back, Ben. I hope you and yours are O.K.

Fred Leckie

Tiny mistake, at 23:00 you say "1 Gigahertz clock" by mistake instead of "Megahertz". Thank for the video!

Matt Shaile

I got so much out of the breadboard computer series and I've been patiently waiting for a new video just so I could support you

Nik Klassen

At first, I thought, that you will use the R65C51 chip, and said to myself, oh I already implemented that on my computer, my jaws dropped when I saw that you are using a single transistor.

Elekes Karoly

What an amazing video to come back with!

Dylan Speiser

Glad to hear from you! Its fun to see you do deep dives into protocols that I use at work. We still use rs-232 in a handfull of locations to interface test equipment on an assembly line.

Jeff

Yay so glad to see a new post! I found your account a few months ago and I managed to build the 8 bit computer and 6502 computer, working on the graphics card next. But I was very sad to see that you had stopped uploading months before I encountered your channel. Super glad that your back, keep up the great work Ben!

LemonRamen Games

Sadly no :(

Jeff Geerling

So good to hear from you, Ben! Welcome back. You've definitely been missed.

Mike Swanson

Wow! I for sure though you had left us all. Very happy (and relieved) to hear from you again.

Magnus Hugemark

Great to see you back. I recently discovered your excellent videos, and was somewhat dismayed to see you weren't active online. I'm feeling very inspired by your 8-bit computer and 6502 series, and I remarked to a friend (who has built your 8 bit computer) that it was a shame you didn't seem to be active, and he mentioned this new post, so here I am, a brand new backer :)

Nick

Welcome babies, Ben.

Robert Brown

Glad to see you back and hope all is well or at least better.

Steve Robillard

Great to see another video! Some small corrections on the cycle counting: JSR is 6 cycles JMP is 3 conditional branches are 2 if not taken and 3 if taken (plus another one if crossing a page boundary) This probably doesn't change things enough to matter (since it obviously works), because it's still within tolerances when reading 8 bits after the start bit synchronization.

Kris Kennaway

Does Red Shirt Jeff have a breadboard 6502?

Douglas Moore

At about 23:03, you said, "... with a 1GHz clock". Pretty sure you meant to say "one megahertz".

Mark Day

FYI, there is an alternate way to get the input bit into the carry flag, if you can wire the input to either bit 7 or bit 0 of PORTA. You do a LDA PORTA followed by a ROL (for bit 7) or ROR (for bit 0). Of course, this modifies the accumulator, so you have some choices: * Push and pull the A register around the LDA PORTA / ROL(R) * Keep the input byte in RAM (you would do ROR $addr to shift in the bit) * If you're not using PORTA for output, you could ROL/ROR PORTA directly to move the input bit into the carry flag, without changing the accumulator. Note that all of these avoid conditional branches, which makes things easier if you're counting cycles for timing purposes.

Mark Day

Hello Ben, Thank you for another great video! Other avenues to explore: Flow control (RTS/CTS, handshakes), differential signals (LVDS) or analog electronics (how to generate a negative voltage from a positive one, charge pumps). Maybe you already had those planned. Best regards, Ed.

Edward Meewis

Great to see you making videos again!

Jim Knowler

Welcome back! :)

Spencer Ruport

Really enjoyed it. Looking forward to the next videos and the associated kit.

Scoth Harris

Yes, I remember those videos. Thanks for reminding me. In my memory, they weren’t related to the 6502 “series”, though. Might be an opportunity to reference those older videos in the current one!

Shelton

He already demonstrated that in three earlier videos. You may want to review those. - Ed.

Edward Meewis

Woo-hoo! Can't wait to get a chance to sit down and watch this one!

Jeff Jetton

So good. Enjoyed every second of the video. Glad you‘re back!

Joffito

Holy crap welcome back Ben!

Jeremy Tice

Welcome back. This is great. I like that you're moving to the ability to use a terminal emulator to communicate with it. But how about "just" a keyboard (like an old serial or PS2 style). Some of us may actually have an old one. I'm not suggesting to edit the video -- other than perhaps to mention if it would be at all possible or not (even if not wise) to connect just a keyboard. (And, maybe this is for a later video where you introduce the Serial chips.)

Shelton

Great video, glad to see you're back!

John Castle

I wanted so much to add serial to my build! This will surely be super helpful! Welcome back, Ben!

Vito Sartori

Exciting to see it! I love your deep dives into these protocols that I use often (abstracted through libraries) but never really dove into much.

Jeff Geerling

Beyond elated to see this. It may be unfair of some of us to be concerned but you are a part of our existence now.

David Craig

Super glad to see you back!

James Helms

Thanks for the video

Thomas Eriksen

And now, all these names and values that I "just knew" make so much more sense! Great intro to serial communications. Minor note: right around 23:02-23:03 you said "...each clock cycle is a micro-second with a one gigahertz clock", when you likely meant "one megahertz clock". Should be fairly obvious you meant "megahertz" since you went over the speed, timing and clock earlier in the video.

Hugo Dahl

Welcome back Ben! We missed you! :)

Naphtali Levy

Yay, making a big batch of popcorn to enjoy this video!

Xavier

Welcome back :)

AlesK56

So good to see you back!

Richard

We were all worried about you. Hope all is well and that you are in good health.

Kevin Snaden

Dude I've been legitimately worried about you! Glad to see you're seemingly good and back at it! Excited to watch the video!

Tim Soderstrom

So glad you’re back!

Tyler Arbogast

YESSSS, so happy for more of your work

Danny M

So glad to hear of your return!

Joe Rork

I couldn’t agree more

Ori Shamir

Christmas has come early!

Douglas Moore


More Creators