James Reynolds / AD594x Driver
Embed: (wiki syntax)

« Back to documentation index

WGTrapzCfg_Type Struct Reference

WGTrapzCfg_Type Struct Reference
[TypeDefinitions]

Trapezoid Generator parameters The definition of the Trapezoid waveform is shown below. More...

#include <ad5940.h>

Data Fields

uint32_t WGTrapzDCLevel1
 Trapezoid generator DC level1, this value is written directly to corresponding register.
uint32_t WGTrapzDCLevel2
 DC level2, similar to DCLevel1.
uint32_t WGTrapzDelay1
 Trapezoid generator delay 1.
uint32_t WGTrapzDelay2
 Trapezoid generator delay 2.
uint32_t WGTrapzSlope1
 Trapezoid generator Slope 1.
uint32_t WGTrapzSlope2
 Trapezoid generator Slope 2.

Detailed Description

Trapezoid Generator parameters The definition of the Trapezoid waveform is shown below.

Note the Delay and Slope are all in clock unit.

 DCLevel2         _________
                 /         \
                /           \
 DCLevel1 _____/             \______
         |     |  |       |  |
         Delay1|S1|Delay2 |S2| Delay1 repeat...
 Where S1 is slope1 and S2 is slop2

The DAC update rate from Trapezoid generator is SystemClock/50. The default SystemClock is internal HFOSC 16MHz. So the update rate is 320kHz. The time parameter specifies in clock number. For example, if Delay1 is set to 10, S1 is set 20, the time for Delay1 period is 10/320kHz = 31.25us, and time for S1 period is 20/320kHz = 62.5us.

Definition at line 4403 of file ad5940.h.


Field Documentation

uint32_t WGTrapzDCLevel1

Trapezoid generator DC level1, this value is written directly to corresponding register.

Definition at line 4405 of file ad5940.h.

uint32_t WGTrapzDCLevel2

DC level2, similar to DCLevel1.

Definition at line 4406 of file ad5940.h.

uint32_t WGTrapzDelay1

Trapezoid generator delay 1.

Definition at line 4407 of file ad5940.h.

uint32_t WGTrapzDelay2

Trapezoid generator delay 2.

Definition at line 4408 of file ad5940.h.

uint32_t WGTrapzSlope1

Trapezoid generator Slope 1.

Definition at line 4409 of file ad5940.h.

uint32_t WGTrapzSlope2

Trapezoid generator Slope 2.

Definition at line 4410 of file ad5940.h.