Arduino Workshop - Chapter 4 - Bit Math

preview_player
Показать описание

In this section, you'll be learning about control individual bits within bytes using bit-wise operators and logic.

Рекомендации по теме
Комментарии
Автор

It's a "no" from me. I got lost when he started describing shift registers.

chimpspecialist
Автор

The difficulty in these vids is predicting the prior knowledge of the audience. I only really understood this once I had implemented a shift register on my Arduino. You have to be prepared to grind your way through this to really appreciate how you can save memory, I/O and RAM by ‘bit banging’ for helping us.

whitefields
Автор

This is just what I need to get my full-size 2 legged Robot to work with CAN bus. I would be honored if you check it out on my channel and tell me what you think thanks.

Build_the_Future
Автор

BETWEEN does not include the end points. Should say; "enter value from 0 to 255"
You should explain WHEN and WHY to use bitwise operators. Ex: to clear a specific bit, use ??? To invert a specific bit, use ???

jcjensenllc
Автор

Thanks a lot for the video.
I am just having one query...When i tried implementing the same code in Arduino...once the program solves for a particular value that we have asked for eg: 75, then it again starts solving the entire thing for 0 (which i did not gave as input at all)...it would be good if you could help me out with this...Thanks!

nevilmehta
Автор

I’m a programmer of 7 years I’m also high and it’s like 6am lmao idk why I’m here

bestcreations
Автор

I have not heard any reference to the CARRY BIT in any lecturers. Almost all microprocessors do have one to carry or borrow with an ADD or SUBT instruction. Most microprocessors allow you to ROTATE via the CARRY bit and test or set and clear its state. There is no reference to the ROR or ROL, or RORC or ROLC through CARRY operations. These instruction can be very useful at times. A notable example is generating a CRC-16 data packet checksum. The shift out bit to carry can be used to do specific XOR bits on a standard x16 + x12 + x5, + x1 polynomial calculation at high data speeds. Perhaps these bit-wise operations do exist for C++ on the Arduino IDE, but not published?

robertlivingston
Автор

Shouldn't you? have also checked for negative numbers by simply putting an OR in that IF statement?

Javaman
Автор

It looks like the shiftWrite function doesn't exist. i can't find any documentation on google and the core-electronics page in the description doesn't explain it either. Can you clarify this please? is there an alternative to this nonexistant function you're using? thanks!!

jean-christophesicotte-bri
Автор

Excellent explanation, please continue ....

hubertmargreiter
Автор

So-So not what I was looking for but it helped..

RayVT
Автор

nice style. i like how you included white board and IDEs. first video i've seen on bitwise operations, very informative

jonbauer
Автор

Thanks for your great video.
If we used two 74HC595 shift registers connected in series, is it possible to shift bits between both shift registers? For example shift the last bit of the first shift register into the first bit of the second one?

danduran
Автор

I used the sample on the website but the lights wont work.

d-
Автор

what is the difference between a OR and a XOR?

taranagnew