| Electronic Components Datasheet Search |
|
AD5940 Datasheet(PDF) 92 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
AD5940 Datasheet(HTML) 92 Page - Analog Devices |
|
92 / 130 page ![]() AD5940 Data Sheet Rev. 0 | Page 92 of 130 WAVEFORM GENERATOR The AD5940 implements a digital waveform generator for generating sinusoid, trapezoid, and square waveforms. This section describes how to use the waveform generator. WAVEFORM GENERATOR FEATURES The waveform generator features sine wave, trapezoid, and square wave capabilities and can be used with the high speed DAC or the low power DAC. SINE GENERATION TRAPEZOID GENERATION DAC DAC CODE (DC) Figure 41. Simplified Waveform Generator Block Diagram WAVEFORM GENERATOR OPERATION To enable the waveform generator block, set the WAVEGENEN bit in the AFECON register to 1. When this bit is enabled, the selected waveform source starts and loops until either the block is disabled (WAVEGENEN = 0), or another source is selected. When the block is disabled, the DAC output maintains the voltage until a different waveform is selected by writing to the TYPESEL bit in the WGCON register, or if the waveform is reset. Sinusoid Generator The block diagram for the sinusoid generator is shown in Figure 42. SINE GENERATION PHASE ACCUMULATOR PHASE TO AMPLITUDE CONVERSION SCALING COMMON-MODE ADJUSTMENT DAC PHASE OFFSET AMPLITUDE OFFSET FREQUENCY CONTROL WORD Figure 42. Sinusoid Generator The output frequency (fOUT) is adjusted using the frequency control word (WGFCW, Bits[30:0]) with the following formula: fOUT = fACLK × SINEFCW/230 where: fACLK is the frequency of ACLK, 16 MHz. SINEFCW is Bits[30:0] in the WGFCW register. The sinusoid generator includes a programmable phase offset controlled by the WGOFFSET register. When enabled, the phase accumulator is initialized with the contents of the phase offset register. After the sinusoid generator starts, the phase increment is always positive. Trapezoid Generator The definition of the trapezoid waveform is shown in Figure 43 DC LEVEL 2 DC LEVEL 1 DELAY 1 TIME SLOPE 1 TIME DELAY 2 TIME FIRST PERIOD SECOND PERIOD SLOPE 2 TIME DELAY 1 TIME Figure 43. Trapezoid Waveform Definition The six parameters shown in Figure 43 are user programmable through the WGDCLEVEL1, WGDCLEVEL2, WGDELAY1, WGDELAY2, WDSLOPE1, and WGSLOPE2 registers. These variables define the trapezoid waveform. By setting the WGSLOPEx register to 0x00000, a square wave is generated. The times are expressed in the number of periods of the DAC update clock, which is set to 320 kHz for the trapezoid function. A period of the trapezoid waveform begins at the start of WGDELAY1 and completes at the end of WGSLOPE2. The trapezoid continues to loop until it is disabled by the user. USING THE WAVEFORM GENERATOR WITH THE LOW POWER DAC Although the waveform generator is primarily designed for use with the high speed DAC, it can also be used with the low power DAC for ultra low power and low bandwidth applications. To configure the low power DAC for generating waveforms, set Bit 6 in the LPDACCON register to 1. Trapezoid or sinusoid can be selected as described previously. The 32 kHz oscillator must be selected as the system clock when using the waveform generator with the low power DAC, which limits the bandwidth of the signal. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |