This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

run PWM and sensor hub booster pack code



Hi,

I just wonder, so when I wrote down PWM configuration in MPU 9150 sample main code, and I ran the code, then I measured duty cycle, why was the duty cycle going up and down? But when I only ran the PWM in different main code, the duty cycle just stay stable.

Thanks.

  • Is it not likely that the "9150 code" changes the PWM duty cycle - based upon the value of certain "9150 Registers or variables?" You should be able to search through the code - looking for any code line which impacts the PWM Duty cycle.

    When you ran that "different code" is it not likely that the PWM duty cycle was set just once - or was set proportionally - to a variable which holds constant? In such case - no change in PWM duty cycle is expected.
  • Hello Ferz

    How is MPU9150 and PWM related? Did you check the examples in TivaWare for PWM Module?

    Regards
    Amit