NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
SuperPro analog output mode constants

Constants for controlling the 2 analog output modes. More...

Macros

#define DAC_MODE_DCOUT   0
 
#define DAC_MODE_SINEWAVE   1
 
#define DAC_MODE_SQUAREWAVE   2
 
#define DAC_MODE_SAWPOSWAVE   3
 
#define DAC_MODE_SAWNEGWAVE   4
 
#define DAC_MODE_TRIANGLEWAVE   5
 
#define DAC_MODE_PWMVOLTAGE   6
 
#define DAC_MODE_RESTART_MASK   0x80
 

Detailed Description

Constants for controlling the 2 analog output modes.

Two analog outputs, which can span 0 to 3.3 volts, can be programmed to output a steady voltage or can be programmed to output a selection of waveforms over a range of frequencies.

In the DC output mode, the DAC0/DAC1 voltage fields control the voltage on the two analog outputs in increments of ~3.2mV from 0 - 1023 giving 0 - 3.3v.

In waveform modes, the channel outputs will center on 1.65 volts when generating waveforms. The DAC0/DAC1 voltage fields control the signal levels of the waveforms by adjusting the peak to peak signal levels from 0 - 3.3v.

In PWFM voltage mode, the channel outputs will create a variable mark:space ratio square wave at 3.3v signal level. The average output voltage is set by the O0/O1 voltage fields.