
I-8088W API Reference Manual, Version 1.0.0, Aug. 2010 --- 18
2.3.2. How to Setup the Trigger PWM
There are 8 DI pins on I-8088W, normally these DI pin just acts as digital input
channels. We can also configure them as external trigger signal pins to start or
stop the PWM output.
Step 1: Follow the same way in
and set PWM duty and frequency.
Step 2:
Enter “1” to set “Hardware Trigger PWM”
There are three options to set the DI channels as PWM trigger signal:
“0” : Normal DI.
If you set it as "Normal DI" mode, it will be unrelated to the PWM function.
“1”: Accept DI signal to start the PWM output.
“2”: Accept DI signal to stop the PWM output.
You can use i8088W_SetHardwareTrigChannel (
) or
pac_i8088W_SetHardwareTrigChannel (
) function to configure
each DI pin.