beautypg.com

Sensoray 826 User Manual

Page 52

background image

Register

Value

Mode

0x00008020

Snapshot Configuration

0x00000009

Preload0

0x00000000

Pulse Generator

Generate an output pulse on ExtOut in response to a trigger signal applied to the IX input. Also, a software trigger can
be invoked by calling S826_CounterPreload. ExtOut must be routed to a DIO channel (see
S826_DioOutputSourceWrite).

Register

Value

Mode

0x004C0520 (retriggerable), or
0x00CC0520 (non-retriggerable)

Preload0

Pulse duration in µs

PWM Generator

Output a pulse width modulation (PWM) signal on ExtOut, which must be routed to a DIO channel through the
DIO_out signal routing matrix (see S826_DioOutputSourceWrite).

Register

Value

Mode

0x01682020

Preload0

PWM “on” time in µs

Preload1

PWM “off” time in µs

Synchronized PWM generators can be implemented by configuring the PWM channels as hardware triggered one-shots
(pulse generators). Use an additional channel to generate a common trigger for the PWM channels; this channel should
be configured to generate periodic output pulses at the desired PWM frequency. The duty cycle of each PWM channel
is controlled by adjusting its output pulse width.

826 Instruction Manual

47

Counters