I am having a lot of problems with programming the timers on the TM4C123GH6PMI on my Tiva C Series Launchpad.
Basically I want to trigger interrupts corresponding with two different load values in Timer0. The Timer is going to run periodically once it is started. I want the timer to tick every one microsecond so I can have periods from 1 us to 65.6 ms with 16-bit load-values.
I have set up a simple periodic timer with an interrupt handler and it works so far. However, I am very much unsure how to calculate the prescaler and load value for a given time period. Do I need to run Timer0 in dual 16-bit split mode in order to make it work with two different load values?
I would like an example how to set this up using the TivaWare library functions.
Any help is appreciated - thanks in advance :-)