Port Register Control | Increase speed of Read/Write - Arduino101
VloĆŸit
- Äas pĆidĂĄn 31. 10. 2020
- $2/5pcs 2Layer & $2/5pcs 4Layer PCBs: jlcpcb.com
đ„Another class for the Arduino 101 series. These videos will have some more difficult Arduino programming. In this video I show you how use the port register control and why is that better...
đLINKS
-------------------------------------
Tutorial Website: electronoobs.io/tutorial/201
Tutorial: electronoobs.com/eng_arduino_...
ATmega328p datasheet: bit.ly/3csU1i6
Get Arduino UNO: www.banggood.com/custlink/mvv...
đ€SUPPORT
-------------------------------------
ELECTRONOOBS.io: electronoobs.io
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.io/forum/index.php
Facebook page: / electronoobs
Canal en Español: / electronoobs en español
Like share and subscribe to motivate me. Thank you
#Arduino
#tutorial
#registers - VÄda a technologie
PLEASE CONTINUE WITH THE ADVANCED STUFF THERE IS A SERIOUS LACK ON THE INTERNET FOR THAT
I agree! 114%
Truer words have never been spoken!
Well there's stuff on internet, the problem is that is not well explained and this videos helps a lot.
still facing this problem
You are so underrated đ
Yes, I am amazed by the amount of knowledge I got from this video
I think programming directly using Register Control is more fun as we are literally seeing what the controller is actually doing.... More like an assembly level Language đ„.
- Thankyou from India đ
ERROR: To invert a byte we use "~" and not the "!" Sowy! :)
Arduino Course (Spanish): bit.ly/3ldW6kO
Follow me on FACEBOOK for more: facebook.com/Electronoobs
Help me on Patreon: www.patreon.com/ELECTRONOOBS
Thank you for the vidéo!!!
Could you please tell me which software do you use to make video animations ?
Ok
I did not realise the Arduino IDE could accept direct port addressing.
Thanks
Amazing, crystal clear explanation . wow, nobody explains it better than you. You deserve a million subs man.
For our project we used âFastIOâ headers that define helpful macros to initialize, read, and write to the port bits using the digital PIN number, concealing all the binary math. They really speed up digital I/O, so we extended them to several platforms. For analog pin reading you can do similar tricks, by first setting up the pin for reading, then starting the ADC, and then going off to do other things and picking up the ADC result later, instead of calling analogRead() and waiting for it to return. That would make a good related subject for a future video. Cheers!
If you need performance, then write in pure c/c++.
@@richardlighthouse5328 I don't know what you mean. Arduino is a pure C++ set of libraries, with just some cosmetic things handled automatically (like function prototypes).
@@MD-vs9ff I meant without any framework. Just AVR helpers.
@@richardlighthouse5328 What it means: using FastIO is not only having near equal the direct (without any framework) but also platform independent. The hard part is always making the code has near highest performance BUT at the same time platform agnostic (i.e. can be run on Mega, ESP32, etc without changing your code).
This is really a great explanation as well as great presentation. Port manipulation now looks more easy to get understand. Thank you. đ€©
Very Good Explanation! We really do need more of this type of thing as there is not much available, and not as easy to understand as yours is. Clear, concise and relevant.
One of the best videos Iâve ever seen on CZcams for arduino tutorial đ keep going bro! đȘđ» love from IRAN đźđ·
The diagrams of the ports on the arduino board were so helpful and saved me from scrolling through pages of documentation as a noob, thank you!
The production value of your videos is next level... I LOVE the motion tracked labels. New subscriber achieved.
You explained it very well. I am a mechanical engineering graduate and have lots of projects which involved heavy use of electronic. This video was very clear and understand everything you said. Well done!!
Last time i honestly told you that the video(internal comparator one) wasnt very understandable for intermediate or new people. DRAMATIC IMPOROVEMENT. Awesome tutorial......i will use this in my led cube project.....Thanks!
I will be a serious follower of this more advanced line of arduino info. This is the stuff that makes all my old projects finally work properly đ
Very informative, thanks for putting in the effort to edit the video. I like the inclusion of the result comparison at 6:50 and the video presentation overall looks professional, I bet new players will learn a lot from this Arduino101 series. Looking for more videos like this one to come soon, again, great job mate.
i've programmed in C since Bell Labs in the late '70-s and know the concepts like this better than the back of my hand, but rarely have I seen such a clear and careful explanation. Great Job!
I learned so much from this video. This guy has a serious talent.
Much love from the UK
This is an excellent explanation of boolean port manipulation that should be easy for newcomers to understand. Great work! I see that others have already pointed out some errors, but this is still a great video.
This video has finally demystified port manipulation. Thank you!!
very clear and well explained, I wish I could listen to this in my highschool years :) Lucky newbies
U deserve so much more...
Just don't stop ur work...
Luv from India â€
This is the video that I was searching for months. This video is awesome. Please make more arduino tutorials.
Finaly clearly able to know bitwise operator use in Arduino... Thanx for ur awesome graphical presentation which makes the education more fun and interactive
I never seen this so clearly explained before. Excellent!
I love you!!!
This ist the first Video that explanes everything nicely
Excellent tutorial..!! Did some assembly programming years ago in college.. This has helped me to remember things I forgot I had learned..;)
This is one clearest tutorial of port manipulation. Good job!
You are doing great I really like this. Such type of videos are very rare on internet which is teaching on register level for Arduino. Thanks
Bro....This is one of the best explanations i have ever listened to..Great work
right now im at the midle of the video and im so excited about this great explanation that made me write this comment. its great.thats exactully what i needed.
I found this video and channel today, this is extremely amazing, the information and the quallity are top-notch, really thank you for your hardwork
Amazing channel. I'm from software engineering and I understand this stuff but just don't know it all works like this. Thank you for clarifying!! I became a subscriber
Great video man! Best explanation I've seen out there.
To make your code easier to read you can also use constants like so:
DDRB |= (1
thanks a lottt, it's worked
PORTB ^= (1
Best explanation about Port Register Control so far !
Loved this!! I felt like I was finally learning how to use arduino as a tool
You also could use , some of its function is pretty useful
Puro Oro!!!! Saludos y Gracias por tu aporte a esta comunidad!!!!
This is a masterpiece , I love this kind of videos
Always waiting for such a atmega mcu program learning videos.
Thank you so much, its so great to learn these and importance of register. I'll definitely implement these in my codes from now on.
Please keep making these videos about advance coding.
Thanks again
Very Nice Explaination! Fallen in love with this tutorial!
One of your best arduino code videos yet, thanks!!
Nice video! This is helping me out with my graduation project. Thanks :)
Very well explained. Wish you'd don't this video a few months ago so that I wouldn't have had to spend hours reading the datasheet and doing it myself. Excellent stuff
Very well prepared video about advanced operations on Arduino. Very well explain - THANKS !!!
PLEASE continue this subjects for advanced operations !!!
Super helpful. Thank you very much. My university expected expected us to know these magically.
Great video! The explanation was clear and concise!
Thank you, I have been waiting for This tutorial, big help!
A lot of great info, thanks. I did watch this one at least 15 times
Nice tutorial. There are a lot of things that I did not understand until now. Also would be nice to have any tutorial like this talking about Timers and how to change it to change PWM signals for example.
Explained it really well and helped me understand, very nice !
Amazing video... Expecting more of such class...
Wow! Thanks for a very good explanation on the Arduino ports.
this is great..i never imagined there would nano to micro variation!!
Thanks bro.. you explain these stuffs with human language.. subscribed and liked.. đđđ
This is what I've subscribed for! COOL! Thank you!
Great video ! This is a perfect foundation for future learning.
best tutorial i've found yet! i do have a question though. how do you read analog value? PINC register only stores the digital value of the analog pins.
Great and informative video as always.... :-)
Sir, please make a video on how to interface external ADCs, selection of ADC, important specification while selecting a ADC.....
Great video as always! đ
Great presentation. Nice video editing and great use of motion graphics.
A,fantastic explanation made easier to understand with superb animations. Thank you for sharing your knowledge.
Cool video man. Optimized code gets me going.
Nice video, your didactics is something else!
Waiting for it for a long time......
Very interesting! Great graphics. Learned a lot. Thanks for sharing!
You nailed it đ„đ„
Best explanation and great animation. Very clearly stated.
Thank you! Always good to learn something new đ
This is the best tutorial for port register control
Muito show sua apresentação.
Curto muito o seu canal.
Vc Ă© sensacional.
Absolutely Fantastic Content.. Thank You !!!
Wow, awesome vid! please make a vid on timers n interrupts if it's possible. thank you
Very nice production quality. Using a define for the pin value B0001000 etc would make the code easier to understand, but I understand you were trying to explain bit access for which your method was clearer to someone new to the topic.
U R absolutely awesome
I needed these information way long time ago
Thank you for sharing it
đ„°â
Great video! At 12:20 in the upper "loop()" commands, shouldn't those be: PORTD |= 0001000 and PORTD &= 00001000 accordingly? We're trying to set bit 3 of the register (Arduino pin D3). If we leave it as is in the video, it sets bit 1 of the register (Arduino pin D1). Do I miss something?
Incredible is an understatement...
Hard-Work đ. Easy to Understand.
Your videos are amazing and have helped me so much!! Thank you !!! Is there any way to read an analogue signal without using the analogRead function but rather the Port register instead?
Pls make more and more video on 101 arduino. I need to learn embeded system from you.. you are the best in teaching microcontroller.
A very detailed and great explanation to low-level optimization to Arduino. However we should point out that this only works on specific Arduino type, different type might require different configuration (and thus different code on different platform), while on the other hand a common Arduino function like digitalRead / Write is platform agnostic, it can even run on ESP32 or ESP8266 and many other types that conform with Arduino.h standard without changing code (except the pin number). So, for the sake of simplicity and portability there is always performance hit to pay. This is true for all programming language. The more you into performance, the more specific/limited device your code can work.
This is awesome! Have you done DMA on the arm cortex m mcu's I would love to seem more on those. Like the stm32 or samd range.
Keep up the great work!
Yeah!!! I would love to get more insight on how to control DMA
Dear frnd..excellent explanation...even better than greatscott's...on this subject...nice...
Finally something that I badly needed.....
Great explanation!! Thanks.
Excellent video man, thanks!
Thank you, this tutorial is excellent!
This video is awesome, thank you to show us
Masterpiece đŻ
Thanks for sharing this precious knowledge â€ïžâ€ïžđ„
You r so great! Love u so muchâ€ïžâ€ïžâ€ïž
Very good video and thanks for taking the time to do this. I think the views counter is broken because in my opinion it should be at lease 10 timers higher by now.
I would like to see more advance content like this. Please consider making an advance video on interrupts using -all- the pins of the Arduino. Thanks!
Next part will be on interrupts
Great stuff! I bought the starter kit only to get disappointed at the analogRead sample rate. Do you have a similar video for analogRead?
great video! you are well done!
ĐŃлОŃĐœĐŸĐ” ĐČĐžĐŽĐ”ĐŸ! ĐŃ ĐŒĐŸĐ»ĐŸĐŽĐ”Ń!
Wow, the reactions you are getting are beautiful :) I recently started as a self-employed software developer / hardware modder. Will check in and hopefully soon become patreon
great, please make a copy of rebol and port it and patch it to esp32 then create a github for this tested code and notify carl and this channel.
github.com/rebol/rebol
You're the BESTT!!
Thank you for that lesson!
Thanks very much for this clip!
please explain even more about the arduino, this video helped me a lot, please make even more videos