Hi to all. I'm new to this processor so I may be doing something dumb here , but I cant get the PWM output to go over 50Khz. I am working in Codewarrior v5.5.1272. I have tried setting up the pwm using the "processor Bean" functions and doing the settings manually with the same results.The bean shows that I should be getting 5Mhz output , but I'm getting 50 KHz. I seem to be 100 times off in frequency.I'm using clock B as the source , with prescalar set to 0 (bus clock).If I set the prescalar to 4 I get a output of 12.5Khz instead of 1.25Mhz.The internal frequency is supposed to be 25Mhz. Is there any way I can accurately check this. I have tried toggeling a pin in an infinite loop. This shows the pin toggeling at about 250ns , with other interrupts etc running.The processor internal bus can't be running 100 times to slow!! My 1ms timer is also spot on. Any ideas. Cheers Rob
- posted
17 years ago