Now that the PORTS have been pretty much figured out, time to get on the timers. After reading about the timers in the datasheet I elected to modify my test project and add a timer to create an interrupt (or is that an EVENT, or a CALLBACK?) to increment a variable. In AVRland this is a no brainer. HEre, not so much
I fired up start and added a Timer Driver and it was names Timer_0. Thing is, START does not offer the ability to configure up all the options that I read in the datasheet like MODE for example.
Here is what I see when I open the driver and enable the event:
Nothing about MODE selection, or any of the other features I read about in the datasheet. I elect to update the project and back to Studio I go. Now what?
I decide to do a debug session and see what was configured and it looks like it loaded the defaults, but it did not enable the counter. How do I do that? I am guessing I do a bit set and I will try that later.
What if I wanted to have an 8 bit counter? or 32bit? Can I do that in Start?
But what about the 'interrupt', 'callback', or 'event'? Which is it I wonder. And how do I implement it?
I guess my long winded lead in is mostly about the interrupt....how to implement? I am hoping to avoid ASF