Hello there! I have been reading the datasheets of AVR micros for countless hours, and I've discovered a pretty neat fact, that is relatively unknown, and could be helpful: by Writing a '1' bit to the PINx register, said bit within the PORTx register will toggle to the opposite of its current state! So: A bit-bang of a communication protocol could be implemented in fewer instructions, which incidentally makes the implementation a tad faster! I've used this neat trick to bit-bang I2C on ATtiny micros, and works like a charm! Really great video, this inspired me to double down on my hobby :D
Hello there!
I have been reading the datasheets of AVR micros for countless hours, and I've discovered a pretty neat fact, that is relatively unknown, and could be helpful: by Writing a '1' bit to the PINx register, said bit within the PORTx register will toggle to the opposite of its current state! So: A bit-bang of a communication protocol could be implemented in fewer instructions, which incidentally makes the implementation a tad faster!
I've used this neat trick to bit-bang I2C on ATtiny micros, and works like a charm!
Really great video, this inspired me to double down on my hobby :D
I did not know that! It will definitely come in handy. :)
I appreciate your efforts in producing high-quality videos on the fundamentals of electronics.
I hope you get the exposure you deserve.
Thank you very much!
This is amazing. I love the way you explain things so clearly.
Glad it was helpful!
love the way you leave cute comments mayank x)
Wow
I am really excited for the series
Thank you.
Thanks for watching!
Me too!
I noticed that GreatScott featured you as one of his subscriptions on his main channel- I hope it helps get you the recognition you deserve!
I hope so as well!
…. That noise in the background is annoying… you should consider getting rid of it..
The... Music? I agree it could be something a little quieter or less distracting but I think it's very welcome