The good thing is you can use the same Arduino IDE for this. In this arduino timer tutorial we are going to avoid the usage of this delay() function and instead actually deal with the Registers themselves. For example when a delay() function is used it actual sets the Timer and Counter Register bits of the ATmega microcontroller. Hence, to understand what is happening inside the pre-built functions we need to dig behind these terms. The Arduino programs are not similar to other Embedded C coding where we deal with register bits and make them high or low based on the logic of our program. while the low level machine language is hidden behind them. This is because the Arduino Programming language is very easy to understand as most of the work is done by pre-built functions like digitalWrite(), AnalogWrite(), Delay(), etc. and program it using their native applications. While it is okay to begin with Arduino, it is important to slowly move into the core microcontrollers like AVR, ARM, PIC, STM, etc. But then, because of its easy to use nature it was soon adapted by electronics beginners and hobbyists around the world and today it is even preferred for prototype development and POC developments. Its intention was to help non-engineers to work with basic electronics and microcontrollers without much programming knowledge. The Arduino Development Platform was originally developed in 2005 as an easy-to-use programmable device for art design projects.
0 Comments
Leave a Reply. |