Тёмный
No video :(

#8 Simple Demo of Binary Coded Decimal (BCD) for Real Time Clocks (such as the DS3231 and DS1307) 

Ralph S Bacon
Подписаться 54 тыс.
Просмотров 4,5 тыс.
50% 1

A very quick explanation of Binary Coded Decimal (BCD) as used in the Real Time Clock modules DS3231 and DS1307 often used in Arduino projects.
Also a 60-second trick to convert any decimal number to binary.
You don't have to know this to work with those clock modules but it can help you understand what's going on in some of the C++ code.
It's painless and easy once you understand the concept.
And my channel is here:
/ ralphbacon
How can I remember this? Memory tip: "See" Ralph Bacon, geddit?

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@duncanmarks1590
@duncanmarks1590 9 месяцев назад
Hi, as I am old enough to see through the mist of time, my opinion is that the reason BCD rather than integers are being "stored" is that a most of the programming was previously done in assembly language or at best FORTRAN. So hardware and software were very closely connected i.e. you had to be aware on how the information was moved and used by the processors registers to program the device. This is still the case if you are "interfacing" a generic hardware chip to a specific microcontroller without the advantage of higher level languages, like C++ or Python, which have "libraries" that isolate you from need to deal with data on a bit level. This is meant as adding content as your post is very good as an example of using the bit level value of a register to drive hardware outputs. Thank you for the effort. Bye
@RalphBacon
@RalphBacon 9 месяцев назад
It also saved memory, Duncan. In the old days, of which you speak, computers had only kilobytes of memory rather than megabytes (nevermind the gigs we speak of today). I'm pretty sure the the first "mainframe" computer I worked on had only 8Mb of memory total. Sounds ridiculous now, of course.
@RoyNBarlow
@RoyNBarlow 4 года назад
Is writing on big pieces of paper with a permanent marker as a lecture just a really common thing in the UK or what? It seems like everyone on the Computerphile channel seems to do it too. It does make the lesson very clear I must say, it's just a little unusual to me as someone grown up in the US. Everyone here seems to just use dry erase boards or a ballpoint pen instead.
@RalphBacon
@RalphBacon 4 года назад
And I got both, Roy! If I'm videoing the drawing process then I use the whiteboard. If it's just a picture then a piece of paper is what I use. This video is so old I had no whiteboard. I barely had a camera!
@kendrickapps674
@kendrickapps674 5 лет назад
hi only just watched your video going through them all. a type of digit has been lost in the mists of time but has been resurrected in the RTC and I'm sure a few others it's called the nibble and is 1 hex digit, as if we have an integer(2 bytes) less than 255 it can be converted into a byte saving space and if you only have an on stored as 1 or off stored as 0 so you can reduce it to a bit saving a lot of space the space saver that has been lost is converting to the nibble (one hex digit) if the number to be store is between 0 and 15 decimal or 0 and f hex, you will still find them used in simple password encryption programs. kendrick
@RalphBacon
@RalphBacon 5 лет назад
Spot on, Kendrick. I've mentioned this I'm sure, it's especially useful when trying to pack data in. In fact, it's sometimes called Packed Data. Glad you like the video, thanks for posting.
@seamonkeys12y
@seamonkeys12y 7 лет назад
Cats can sense work. Whenever there are pieces of paper on the table my cat tries its best to get up and sit on it.
@RalphBacon
@RalphBacon 7 лет назад
In my case, Benny tries to show me my mistakes so insists on "helping" me write the code, as he finds the keyboard difficult without thumbs although the two-paw hunt-and-peck approach seems to work for him most days. He says he wants to get more involved in my videos too...
@RobotmakerEu
@RobotmakerEu 8 лет назад
Thanks for such an excellent explanation - it makes all sense.now :-)
@RalphBacon
@RalphBacon 8 лет назад
+ROBOTmaker Glad you found it enlightening. I hope all my videos unravel the mysteries of Arduinoland!
Далее
#3 Beginner's Guide to Arduino Hardware Part 1
7:32
🎙ПОЮ ВЖИВУЮ!
3:17:56
Просмотров 1,5 млн
Binary Coded Decimal (BCD) Code
16:46
Просмотров 922 тыс.
The Most Legendary Programmers Of All Time
11:49
Просмотров 552 тыс.
Designing a 7-segment hex decoder
15:33
Просмотров 3,7 млн