Content originally posted in LPCWare by R2D2 on Tue Jan 28 01:26:03 MST 2014
Quote: stefi
...make the above code simper?????
You're kidding. That sample[color=#f00] is[/color] simple.
Quote: stefi
In above code i didnt get that..what are thoes values...14399,14211 assigned to the match registers... and how it comes??
Could be useful to read timer description of UM.
14399 is obviously the cycle length in MR3: 72MHz / (14399 +1) = 5 kHz
11421 should be the switching point (80%)in MR0.
That's obviously a typo, this value should be 11520...