Hi, I'm trying to use the synchronization feature of the ADC with PWM on a DSP56F805 and I don't find user manual clear on this subject. Form what I can understand, the PWM outputs a synchronization pulse connected as an input to the quad timer module C, input of TC2 at each reload. The output of TC2 is connected to the ADC A sync input. At each sync pulse, the ADC start a conversion if it isn't already in process. From what I found (I think), the PWM always generates a sync pulse on reload. The sync bit of the ADCR1 register must be set and the scan mode of the ADC is triggered sequential. My biggest questions are about the settings of the timer C. There isn't enough information in the User Manual or the Targeting Motorola DSP56F80x Platform using the SDK. Can someone have experience with this feature? Bruno |
|
ADC sync with PWM
RE: [motoroladsp] ADC sync with PWM
The operation is as you surmise, the pupose of the timer C is to add a timed delay between the PWM reload, and the start of the ADC conversion. C2 setup is as follows: const qt_sState quadParamC2 = { /* Mode =
*/
qtTriggeredCount,
/* CountFrequency =
*/ qtRepeatedly,
/* OutputMode =
*/
qtDeassertOnSecondary,
/* Master =
*/
0,
/* CaptureMode = */ qtFallingEdge, /* CompareValue1 =
*/ 40,
/* CallbackOnCompare =
*/ { 0, 0 },
I just open the device, and then enable it. There is a good app note in the motorola Documentation on this topic also. Jerry. -----Original Message-----
Hi, I'm trying to
use the synchronization feature of the ADC with PWM on a
From what I found
(I think), the PWM always generates a sync pulse on
Can someone have experience with this feature? Bruno _____________________________________
_____________________________________
To Join: m...@yahoogroups.com To Post: m...@yahoogroups.com To Leave: m...@yahoogroups.com Archives: http://www.yahoogroups.com/group/motoroladsp More Groups: http://www.dsprelated.com/groups.php3
" TARGET="_blank">http://docs.yahoo.com/info/terms/ ________________________________________________________________________
________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information visit http://www.messagelabs.com ________________________________________________________________________ |