![Connect Tech DAG103 Скачать руководство пользователя страница 21](http://html.mh-extra.com/html/connect-tech/dag103/dag103_user-manual_2652840021.webp)
Xtreme I/O Express ADC-DAC
Users Guide
Document: CTIM-00435
Revision: 0.08
Page 21 of 47
Connect Tech Inc. 800-426-8979 | 519-836-1291
Date: 2016-11-18
The Base Memory Address field is interpreted as the address in the block memory where the first two
voltage levels of the signal to be output are stored and the Read Count field is seen as the address of
the final two (as an offset from the first address). Additionally, the block controller will look to the
To Chan field to determine which channel on the signal should be output to and the D flag to decide
whether it should slow the signal down with the subdivision value stored in SAMPLE_DIV_CNTR.
PWM Mode
The PWM mode will generate a square wave of variable period between two specified analog values.
The waveform is controlled by PWM_HIGH_COUNT and PWM_LOW_COUNT registers, represent
the number of clock cycles in which the pulse will remain high and low. The count values are passed
to the pulse generator unit, switching between counting up to the high and low values from 0, and
toggling the analog output between the value specified in PWM_HIGH_VAL and PWM_LOW_VAL.
The duty cycle of the pulse is controlled by the ratio of the high count to the period count (which is
determined by summing the high and low count values). The frequency of the resulting signal can be
calculated as follows:
Frequency = 1 / [ (PWM_HIGH PWM_LOW_COUNT ) x FREQ_FAC x
INTERNAL_CLK_PRD ]
Where INTERNAL_CLK_PRD = 1/102 MHz = 9.8ns
Since The DAC has settling time of 6 us, the high count and low counr should be at least 4 or 5 times
the settling time.