4 pwm configuration, Pwm configuration – ADLINK PCI-8124-C User Manual

Page 76

Advertising
background image

66

Function Library

6.4

PWM Configuration

@ Name

@ Description

_8124_set_pwm_source:

This function is used to set the PWM source (trigger source). A
PWM has 3 kinds of source, LIN, CMP and timer respectively.
Those three kind of sources are independently. Users can
enable them at the same time. The default setting is CMP.

_8124_set_pwm_mode:

There are two types of TRG output. One is pulse type output,
the other is level-switch output. Users can select output type by
this function.

_8124_set_pwm_pulse_width:

If you selected the pulse type output as the PWM output. You
can adjust the pulse width by this function.

_8124_set_pwm_toggle_dir:

If you selected the level-switch output as the PWM output, you
can set the toggled condition by this function. There are 3 con-
ditions (count directions) that the level output could be toggled.

@ Syntax

C/C++ (Windows 2000/XP)

I16 _8124_set_pwm_source( I16 CardId, I16

Channel, I16 CmpEn, I16 LinearEn, I16

TimerEn );

_8124_set_pwm_source

Set the source of PWM

_8124_set_pwm_mode

Set the mode of PWM ( Pulse or Toggle output)

_8124_set_pwm_pulse_width Set the output pulse width

_8124_set_pwm_toggle_dir

Set the count direction to toggle the level output

Advertising