Greetings to all.
I am trying to understand the values of the parameters to be introduced in the PwmOut command.
In view of the formulas, the frequency of the MCU obviously influences these values.
While testing the PwmOut Wizard, I am surprised to get the same values at 16Mhz as for 4Mhz and also at 8Mhz as 32Mhz!
How is it possible ?
Bug in the wizard ?
PWMOUT Wizard
Picaxe : 08M2
Freq. : 10000Hz
Duty : 35%
Résults
Clock:
4Mhz PwmOut C.2, 99,139
8Mhz PwmOut C.2, 199,279
16Mhz PwmOut C.2,pwmdiv4, 99,139 same that 4Mhz !?
32Mhz PwmOut C.2,pwmdiv4,199,279 same that 8Mhz !?
----------------------
Oops, I missed the frequency divider introduced in the control!
Corrolar question:
When should you use this divider?
Regards
I am trying to understand the values of the parameters to be introduced in the PwmOut command.
In view of the formulas, the frequency of the MCU obviously influences these values.
While testing the PwmOut Wizard, I am surprised to get the same values at 16Mhz as for 4Mhz and also at 8Mhz as 32Mhz!
How is it possible ?
Bug in the wizard ?
PWMOUT Wizard
Picaxe : 08M2
Freq. : 10000Hz
Duty : 35%
Résults
Clock:
4Mhz PwmOut C.2, 99,139
8Mhz PwmOut C.2, 199,279
16Mhz PwmOut C.2,pwmdiv4, 99,139 same that 4Mhz !?
32Mhz PwmOut C.2,pwmdiv4,199,279 same that 8Mhz !?
----------------------
Oops, I missed the frequency divider introduced in the control!
Corrolar question:
When should you use this divider?
Regards
Last edited: