DS5101 Digital Waveform Output Board dSPACE Catalog 2008

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Modular Hardware

DS5101 Digital Waveform Output


Board
For generating
pulse patterns

Key Features  Generates digital pulse patterns  Standard pulse patterns such as
autonomously PWM included

 25 ns resolution on 16 channels

Description Application Areas Key Benefits


Digital pulse patterns are required in almost any The DS5101 autonomously generates any TTL
control application. The demands made on PWM pulse patterns on up to 16 channels with high
resolution and flexibility are very high, especially accuracy. With a time resolution of 25 ns, the
in drives control. With ordinary timing I/O, you DS5101 meets even the toughest requirements.
come up against the limits very quickly. Digital The ability to change pulse widths in real time
signals in automotive applications usually require combined with various trigger and interrupt
less resolution, but the demands on flexibility mechanisms give the DS5101 board unbeatable
can nevertheless be high, for example, for the flexibility and programmability.
simulation of crankshaft signals.

Pulse Pattern Library


A library with standard pulse patterns is supplied.
However, you can also program your own pulse
patterns in an intuitive high-level language.

 1-phase PWM
 3-phase PWM
 3-phase/6-channel PWM
(includes converted signals)
 Incremental sensor simulation
 Monoflop signal generation

390
2008 Catalog 2008 • dSPACE • Technologiepark 25 • 33100 Paderborn • Germany • info@dspace.de • www.dspace.com
DS5101 Digital Waveform Output Board

Technical Details
Parameter Specification
General  16 timing I/O channels
 External reset input
 Interrupt controller
Memory Dual-port memory (DPMEM)  DPMEM for program (states) and data (delays)
 Stores 512 delay parameters (30 bits) and 128 program states (90 bits) for each
channel
Interrupt controller  All timing I/O channels share a single physical interrupt to the processor board.
Any channel can generate an interrupt. Interrrupt arbitration is performed by
software.
 Interrupt on external reset
Timing I/O Time base  25 ns time resolution
channels  40 MHz internal or 20 ... 40 MHz external common time base
 2 MHz maximum output frequency
 250 ns ... 26 s pulse widths
Triggering  Mutual triggering of all channels
 Output channels configurable as input channels for trigger signals
Voltage range  TTL input/output level
Output current  Max. -15 mA/+64 mA
External reset input  TTL input level
Physical connections  37-pin female Sub-D output connector
Host interface  One 8- or 16-bit ISA slot (power supply only)
Physical Physical size  340 x 125 x 20 mm (13.4 x 4.9 x 0.8 in)
characteristics Ambient temperature  0 ... 70 °C (32 ... 158 °F)
Power supply  +5 V ±5%, 0,5 A

Order Information

Product Order Number


DS5101 Digital Waveform Output Board  DS5101

Relevant Software and Hardware

Software Order Number


Included  C functions for accessing/controlling the DS5101 –
 Standard pulse patterns –
 Intuitive high-level language for –
programming pulse patterns
Required  Real-Time Interface (p. 146)  RTI

Hardware Order Number


Optional  Connector Panel for DS5101 (p. 414)  CP5101

391
Catalog 2008 • dSPACE • Technologiepark 25 • 33100 Paderborn • Germany • info@dspace.de • www.dspace.com 2008
Modular Hardware

Block Diagram
���������� ����������
������� �����

�������
��������� ����������

���
����������

����������
������� ���������
����

��������
������
����������

����������
����� ���������
�����
���������
������

���������
���������������
����
���������
�����������
�����
������
������

��
�������

392
2008 Catalog 2008 • dSPACE • Technologiepark 25 • 33100 Paderborn • Germany • info@dspace.de • www.dspace.com
DS5101 Digital Waveform Output Board

Working with the DS5101

Programming Language Programming Details


 Intuitive high-level language  Synchronized update of parameters
 Mutual triggering of all channels in real time
 Loop counter  Interrupt generation
 Conditional branching

Command Definition List of Commands


(Excerpt)
CH Defines the current output channel for all states to follow.
DECCTR Decrements the 8-bit channel loop counter.
DELAY Defines a delay constant that defines the time after which the next state will be
executed.
GOTO Causes the current channel to continue execution at a state defined by a label.
IF ... ELSE Allows conditional branches on flags, loop counter, or other channel I/O.
LDCTR Loads the 8-bit channel loop counter with a specified value.
LOOP Causes the current channel to continue execution with the first state.
LPHSINT Generates an interrupt to the processor board.
RESET Sets the output level low.
SET Sets the output level high.
SYNCEN Updates all delay constants simultaneously.
TOGGLE Changes the basic time unit for all delays.
TR Triggers other channels to proceed to their next state.
UNIT Defines the basic time unit for all delays.
WAIT Causes the current channel to wait for a trigger event before proceeding to the
next state.

393
Catalog 2008 • dSPACE • Technologiepark 25 • 33100 Paderborn • Germany • info@dspace.de • www.dspace.com 2008
Modular Hardware

Use Cases
Incremental Encoder Generating Sensor Signals Controlling the Simulation
Simulation A typical application is the generation of sensor As you can see from the program listing below,
signals, for example, for hardware-in-the-loop controlling the simulated rotation is an easy task.
simulations. The incremental encoder simulated To change the direction, just set or reset flag 1. In
in the first example can be used for any number this simulation, the direction changes after 2000
of lines per revolution. The output signals are time units. The speed can be influenced simply by
phi_0 (channel 1) and phi_90 (channel 2). Each increasing or decreasing the delay t_enc.
period is divided into four sections to ensure
synchronous operation, for example, when the
rotation speed is changed.

Program listing for an example of sensor signal generation.

394
2008 Catalog 2008 • dSPACE • Technologiepark 25 • 33100 Paderborn • Germany • info@dspace.de • www.dspace.com
DS5101 Digital Waveform Output Board

Generating Digital Signals Connection to the Processor Board PWM Generation


The simulation result below shows the generated The processor board transfers new parameters
digital signals for the two switches of a 1-phase to a buffer on the DS5101 board, and all new
PWM inverter. The PWM carrier frequency se- parameters become effective simultaneously.
lected is 10 kHz. Any other frequency could be This occurs once at the beginning of each loop
chosen by modifying the delay t_master in the on channel 1. The wait statement switches a
program. The specified delays can be overwrit- channel to idle state until another channel sends
ten at any time by applying the syncen mecha- a trigger with the trx command.
nism.

Various Commands
In the example, the master clock on channel 1 inputs and execute the controller code. In the
sends triggers to channels 2 and 3. The phsint example, phsint is executed once in a loop on
command generates an interrupt on the pro- channel 1.
cessor board, for example, to sample analog

Program listing for a PWM signal generation example.

395
Catalog 2008 • dSPACE • Technologiepark 25 • 33100 Paderborn • Germany • info@dspace.de • www.dspace.com 2008

You might also like