12.07.2015 Views

SUB-20 User Manual - Dimax

SUB-20 User Manual - Dimax

SUB-20 User Manual - Dimax

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

43<strong>SUB</strong>-<strong>20</strong><strong>SUB</strong>-<strong>20</strong> API3.7.9 PWMPWM outputs are available on GPIO24..GPIO31 pins (see GPIO Header). Outputs are referenced as PWM_0 ..PWM_7.PWM generation module shown below has configurable source clock, counter limit and separate comparator foreach PWM output.PWM module resolution and limit are configured with sub_pwm_config. Duty cycle of each PWM output can beset with sub_pwm_set.PWM module output signal controls output driver of the corresponding GPIO (see GPIO Functions). To gethigh/low transition of the GPIO pin it should be configured to output state with sub_gpio_config.Otherwise PWM module will enable/disable internal pull-up.Functionssub_fpwm_configsub_pwm_set3.7.9.1 sub_pwm_configSynopsisint sub_pwm_config( sub_handle hndl, int res_us, int limit )Configure PWM module.Parameters© <strong>20</strong>13 xdimax.com rev 2.17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!