I read all the links that you sent me and now I have an idea of what you meant. So I have to create a lookup table with the values of the sine wave (the great common division, as the guy calls it, is just the dimension of the lookup table and the greater it is, the greater the resolution of the sine wave is, correct?) and implementing an interrupt system I have to increment the counter that will be the index for the lookup table. At every interrupt, the DAC outputs the sine wave value of the lookup table corresponding at the position pointed by the counter, correct?
/* We need to calculate a proper value to load the counter.
* The following loads the value 248 into the Timer 2 counter
* The math behind this is:
* (Desired period) = 64us.
* (CPU frequency) / (prescaler value) = 125000 Hz -> 8us.
* (desired period) / 8us = 8.
* MAX(uint8) - 8 = 248;
In my case, how can I identify my period and the prescaler value? It is not specified anywhere