Bitwise Operations Tutorial

preview_player
Показать описание
Here i go into the bitwise operations that we all love and use, how they work to set clear toggle and shift bits into the registers of microcontrollers.
I do apologize if i am unclear in my explanations , i am just trying to get the hang of trying to express and share my knowledge clearly to others
Рекомендации по теме
Комментарии
Автор

thanks man! there´s nowhere I could find something like this and I really appreciate this, greetings from Chile!

ivancorrea
Автор

Hi Eddie. Try and not be too hard on yourself, you have done well with this tutorial. i've just understood how to use Bitwise operators for microcontrollers.

I've been watching your tutorials and they are very helpful.
Keep up the good work.

craigkinney
Автор

There is another way to look at XOR operator: if number of inputs with 1 is even, then output is false (0), if odd then output is true (1). If you have XOR gate with 20 inputs, and only 5 are 1, then output is 1, if for example all 20, then output is 0. Or, you can look another way (for cryptography): each next true (1) input change state of previous input. So, if first input is 0, and second is 1, then it output is 1 (chaned 0 to 1), if first is 1, then second is 1, output is 0...

MilanKarakas
Автор

Hi Eddie can you help explain the following. it's from stuff you have taught.
GPIOA->moder |=(1<<13|1<<12)
I dont get the ORing between the shifting and the left operator. can you or anyone else explain this for me please I'm a bit stuck

Thanks in advance

craigkinney