i know pwm frequency is PWM frequency = CORE_CLK / global prescaler / internal prescaler / (B1+1).
but don't understand how is set that parameter.
this pics are my current pwm frequncy setting.
i am using CH4(emios0).
and i got pwm frequency is 3.906kHz.
i wanna set pwm frequency is 30kHz.




i think CORE_CLK is 160Mhz, global prescaler is 1. internal prescaler is 1??? b1 is 32768.
so i expect pwm frequency is 160000000/1/1/(32768+1) = 4.882Khz.
1. how i set parameter for getting 30Khz pwm parameter???
2. what is mean 0x5000 in Emios_Mcl_Ip_SetCounterBusPeriod function parameter?

i changed smaller than 0x5000 value like 0x1000.
then pwm frequency is changed more higher(3.906kHz->19.53Khz).
what is mean that value and what influence that value for pwm frequency formula?