Тёмный

AVR C Basics Part1: Setting and clearing bits 

BuildStorm Technologies
Подписаться 11 тыс.
Просмотров 59 тыс.
50% 1

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

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@anwar6971
@anwar6971 3 года назад
Your explanation has helped me understand bitwise operations for shiffting and clearing bits in AVR.
@Exploreembedded
@Exploreembedded 3 года назад
Glad it helped!
@mimlennig
@mimlennig 4 года назад
Fantastic explanation. Couldn't find any other sources that explained this as clearly.
@juremales4185
@juremales4185 6 лет назад
If you guys hear him saying resistor he is actually saying register.
@parthpatel1605
@parthpatel1605 3 года назад
😂Indian tutorial Mai na inko thik se English ATI hai or English ke chakkar Mai hindi b bhulgaye hai. Better to watch foriengn channel for MCU rather then these.
@doforget399
@doforget399 3 года назад
@@parthpatel1605 india wale feeling samjh jate h
@andressergio1532
@andressergio1532 3 года назад
instablaster...
@ainstaink8312
@ainstaink8312 5 лет назад
Thank you for this great video! This is exactly what I was looking for! So many instruction on how to toggle the bits but nowhere if you want to CLEAR particular bit and leaving the others unchanged!
@gilberttanui4376
@gilberttanui4376 5 лет назад
Thanks for ur good explanation I have been trying to understand before but now I have well understood. Thanks
@CB-kt7qd
@CB-kt7qd 7 лет назад
This is the best video i ever watched on setting and clearing bits, it dives into details. Great job. Subscribed+=1;
@zuhaibchoudhary4635
@zuhaibchoudhary4635 7 лет назад
Best video on embedded till date
@senthilkumarm9248
@senthilkumarm9248 7 лет назад
Great job dude. Content is crystal clear.
@n.aminr.7175
@n.aminr.7175 5 лет назад
even with bit off accent and pronunciation but still acceptable and quite comprehensive arrangement. Good Job
@shenalperera4604
@shenalperera4604 3 года назад
Best Tutorial ever❣️
@Exploreembedded
@Exploreembedded 3 года назад
Thank you so much 😀
@learningexploration4608
@learningexploration4608 4 года назад
Informative, good explanation
@guhan755
@guhan755 3 года назад
Why we are go for bot padding with port registers instead of directly write on port registers
@sudharasahan1751
@sudharasahan1751 4 года назад
Where can I find a memory address pdf as shown in the video ?
@lahiruwarusavithana
@lahiruwarusavithana 3 года назад
Thank you very much
@heinzergrinder1901
@heinzergrinder1901 8 лет назад
Hi , i use to do that like this : #define PORTA *(volatile unsigned char *) 0x18 // 0x18 physical adress of portA #define bitset(var,bitno) ((var) |= (1
@МихаилДу-п4ш
@МихаилДу-п4ш 7 лет назад
Henzer zak suck
@muhammadhabibalkhairi7946
@muhammadhabibalkhairi7946 3 года назад
Thank you sir!
@Abdullah-Electronics
@Abdullah-Electronics 5 лет назад
thanks for your explain
@onurolce
@onurolce 5 лет назад
in 17:45 Why you don't use directly as PORTA = PORTA & (0
@MultiBrunoCG
@MultiBrunoCG 4 года назад
because that way you don't guarantee that all the other bits will be 1, which is necessary to ensure that the other bits won't change
@basitimran3368
@basitimran3368 5 лет назад
Nicely explained :-)
@dpratte
@dpratte 6 лет назад
Very nice. Thank you.
@rashmiranjannayak3251
@rashmiranjannayak3251 4 года назад
Very perfect method cool and with grate patients. Thanks for sharing. The initialized value of Port A = ob 10101010; is a default or any arbitrary bits if we want to make change in TCCR1A register to ob10100010 what to do in Studio.
@keresztesbotond740
@keresztesbotond740 4 года назад
Why use bit shift operators? Instead of PORTA |= (0x01
@montpierce424
@montpierce424 3 года назад
You can. And that will work just fine. However, it's not as readable. There is no runtime cost to use (1
@dualpower19
@dualpower19 Год назад
Great Video but Please correct "AND(&), OR(|) operation,
@sabihasiddique7797
@sabihasiddique7797 7 лет назад
Kindly make some videos on atxmega128A3u
@junbug3312
@junbug3312 6 лет назад
Thank you!!
@amholdhieu2598
@amholdhieu2598 5 лет назад
set 1.75 speed, n you're good
@Rendon276
@Rendon276 3 года назад
5:11 Probably not a good idea to connect an LED between a pin and ground without an inline register.
@skanslovakia553
@skanslovakia553 3 года назад
oh yes, 150 ohm register would be useful lmao
@Amitpattel1
@Amitpattel1 6 лет назад
What if we want to turn on two bits at same time Or multiple bits turn on same time ? Eg 0101 0011 Then 0111 0111 3rd and 6th position at same time ?
@n.aminr.7175
@n.aminr.7175 5 лет назад
if the PortB data register = 0101 0011 then, Var1 = 0b0010 0100; PORTB |= Var1;
@montpierce424
@montpierce424 3 года назад
Sure. Just OR the bits together before ORing them into the port. PortA |= (1
@roopuchikku
@roopuchikku 5 лет назад
Lot of lagging. But great
@irgski
@irgski Год назад
Your pronunciation of ‘register’ sounds like ‘resistor’.
@FROMBORN2DEATH
@FROMBORN2DEATH 4 года назад
Is it not possible to set a single bit like 8051 ? Ex: set p1.1. Or clr p1.1.
@montpierce424
@montpierce424 3 года назад
Yes in assembly there are instructions to set/clear a bit. Some C compilers can embed ASM instructions. Atmel Studio has macros defined for sei() and cli() to enable/disable interrupts. Standard C cannot directly access bits via p1.1 You can also define structures with bitwise variables. But this usually just makes it more complicated. You can also define easy to remember macros to handle bit manipulation.
Далее
AVR C Basics Part 2 Data types and their signifance
19:17
“Hello, world” from scratch on a 6502 - Part 1
27:25
HOW TRANSISTORS REMEMBER DATA
16:58
Просмотров 342 тыс.
Bitwise Operations & Bit Masking
13:08
Просмотров 36 тыс.
AVR USART (Serial Communication) Explained
26:41
Просмотров 35 тыс.
I built my own 16-Bit CPU in Excel
15:45
Просмотров 1,5 млн
Level Up Your Arduino Code: Registers
21:09
Просмотров 185 тыс.