solarbbq2003 said:
to the7:
what would be the freq the chip is running on for 4,000rpm?
would it be over 48Mhz? ( or khz sorry not sure which units it is)
The PWM frequency for C-controller is usually about 17kHz (I don't have V2 to confirm its exact value).
The PWM frequecncy is scaled down from the MCU clock frequency with a fixed ratio.
It is better to restrict the maximun motor frequecncy to less than 1/20 of the PWM frequency.
So the maximun motor phase frequency is restricted to 850 Hz.
Analog LP filter for Hall signal could be also designed on this motor frequency.
The motor frequency is NOT related to the MCU clock frequency but to rpm of the rotor.
What happen iIf the MCU clock frequency is up-clocked twice (say from 24 MHz to 48 MHz) and assume the MCU still works?
(1) The PWM freq will be also twice (say 17 kHz to 34 kHz).
The PWM switching loss in FET will be twice. FET will be hotter.
May be it will allow a higher "maximum motor frequency" (say from 850 Hz to 1700 Hz).
But don't think it is adviceable to operate motor at such high frequency.
The LP filter of Hall signal may not allow for such high frequency.
(2) The rate of excuting programming instruction will be twice.
The MCU will run hotter.
Time deriving from the clock frequency will be "wrong".
Edited: (1) and (2) may not applicable to V2. Please read rkosiorek's post for the operation of the MCU in V2.