Reply by Johnson, Jerry March 7, 20032003-03-07
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,
    /* InputSource = */             qtPrescalerDiv1,
    /* InputPolarity = */           qtNormal,
    /* SecondaryInputSource = */    qtSISCounter2Input,

    /* CountFrequency = */          qtRepeatedly,
    /* CountLength = */             qtUntilCompare,
    /* CountDirection = */          qtUp,

    /* OutputMode = */              qtDeassertOnSecondary,
    /* OutputPolarity = */          qtNormal,
    /* OutputDisabled = */          1,

    /* Master = */                  0,
    /* OutputOnMaster = */          0,
    /* CoChannelInitialize = */     0,
    /* AssertWhenForced = */        0,

    /* CaptureMode = */             qtFallingEdge,

    /* CompareValue1 = */           40,
    /* CompareValue2 = */           40,
    /* InitialLoadValue = */        0x0,

    /* CallbackOnCompare = */       { 0, 0 },
    /* CallbackOnOverflow = */      { 0, 0 },
    /* CallbackOnInputEdge = */     { 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-----
From: Bruno Tremblay [mailto:b...@gentec.ca]
Sent: Friday, March 07, 2003 10:32 AM
To: m...@yahoogroups.com
Subject: [motoroladsp] ADC sync with PWM


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

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

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
________________________________________________________________________


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information visit http://www.messagelabs.com
________________________________________________________________________
Reply by Bruno Tremblay March 7, 20032003-03-07
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