Hello all,
First let me make my questions and then give more details:
Q1) what is the max PWM I can create (not with the PWM module only)?
Q2) what is the max pulse sequence frequency I can read at?
Now for the details.
For Q1 --> How can I calculate the max PWM (not only for this microcontroller but for any). From what I can think of, using timers is the best chose. We give the max clock frequency we can to the timer. We use the interrupt of the timer to toggle a pins output. Then by finding out how many machine cycles each command needs, we can calculate the exact max PWM we can produce (extra question, how fast a command it executed depends on the frequency of the CPU?). Is this the only this to consider when wanting to make the max PWM that the microcontroller can produce?
For Q2 --> Similar with before, how fast can I read a pulse sequence? If we use an interrupt for a pin to call when it has a rising edge, then it is only limited by how fast the commands can be executed (machine cycle)?