Hi,
I am somewhat new to microcontrollers and am just getting to the point where I am starting to mess around with the timer registers. I have learned how to use the CTC features to generate divided clock outputs. In doing this I discovered that the changes that I made to the timer control registers seem to be persistent, when I load in a new program using the Arduino IDE. I had assumed that whenever I loaded in a new program, the control registers would be reset to some default initial state (i.e. all "0"). Am I correct that the timer control registers do not get reset when loading in a new program?
I am currently forcing the timer control registers back to an initial "0" state at the top of my program before I start setting the bits I want to play around with. I am mainly asking because I have never seen any other code example where the control registers get reset to "0" at the beginning, and I am wondering if I am perhaps doing something wrong.
Thanks.