I-8088W API Reference Manual, Version 1.0.0, Aug. 2010 --- 56
4.6. pac_i8088W_SetPWMDuty_Deci
The function is used to set the PWM parameters precisely.
Syntax
short pac_i8088W_SetPWMDuty_Deci (int slot,int ch,
unsigned long deci_Hz,unsigned int deci_duty);
Note:
pac_i8088W_SetPWMDuty_
Deci
is the same as
pac_i8088W_SetPWMDuty_
float
in usage, but the
pac_i8088W_SetPWMDuty_Deci will
run faster
than
pac_i8088W_SetPWMDuty_floa for the floating calculation reason
Parameter
1. slot 0 ~ 7
2. ch 0 ~ 7
3. deci_Hz, example: 100 means deci_Hz = 10 Hz
4. deci_duty 0~999, for example: 503 deci_duty = 50.3% High Part
5. Low Part=1000 - 503= 497 => 49.7% Low Duty cycle
Return Values
Please refer to Error Code Table.