At first my partner and I used the example code in the Driver Library for pwm generation and we saw the pulse wave on the oscilloscope. Problem is that the clock frequency was too small, so we change the clock frequency as shown in the code above and the oscilloscope showed a constant voltage. I think the problem is with the way the clock is initialized and timer A's interrupt.
↧