hw triggering using eMIOS BCTU ADC configuration is not in sync with generad pwm/ timer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hw triggering using eMIOS BCTU ADC configuration is not in sync with generad pwm/ timer

329 Views
aditya_barve
Contributor III

Hello,

I am trying to route the eMIOS_CH_3 -> BCTU -> ADC1 to convert 3 channels P0, P2 and P4 using a CL.
The EMIOS0_CH3 is operating at a frequency of 65kHz, in PWMCB_leaing edge mode.
Once a trigger is generated the ADC conversion takes around 3 us for completion, however the next trigger to the ADC is initiated after 25us. This does not match the period of the PWM signal which is triggering the ADC.
I have measured the adc conversion from the trigger enable notification and last conversion notification which comes to around 3us. This is acceptable. However, the BCTU trigger is missing for the next cycle.

Can someone provide any hints on above topic? (I also tried the PWM in OPWMT but the  resultss is the same. The frequency of PWM and trigger donot match).

 

Thankyou,

Aditya

Tags (1)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2295519%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ehw%20triggering%20using%20eMIOS%20BCTU%20ADC%20configuration%20is%20not%20in%20sync%20with%20generad%20pwm%2F%20timer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295519%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20am%20trying%20to%20route%20the%20eMIOS_CH_3%20-%26gt%3B%20BCTU%20-%26gt%3B%20ADC1%20to%20convert%203%20channels%20P0%2C%20P2%20and%20P4%20using%20a%20CL.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EThe%20EMIOS0_CH3%20is%20operating%20at%20a%20frequency%20of%2065kHz%2C%20in%20PWMCB_leaing%20edge%20mode.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EOnce%20a%20trigger%20is%20generated%20the%20ADC%20conversion%20takes%20around%203%20us%20for%20completion%2C%20however%20the%20next%20trigger%20to%20the%20ADC%20is%20initiated%20after%2025us.%20This%20does%20not%20match%20the%20period%20of%20the%20PWM%20signal%20which%20is%20triggering%20the%20ADC.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EI%20have%20measured%20the%20adc%20conversion%20from%20the%20trigger%20enable%20notification%20and%20last%20conversion%20notification%20which%20comes%20to%20around%203us.%20This%20is%20acceptable.%20However%2C%20the%20BCTU%20trigger%20is%20missing%20for%20the%20next%20cycle.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ECan%20someone%20provide%20any%20hints%20on%20above%20topic%3F%20(I%20also%20tried%20the%20PWM%20in%20OPWMT%20but%20the%26nbsp%3B%20resultss%20is%20the%20same.%20The%20frequency%20of%20PWM%20and%20trigger%20donot%20match).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThankyou%2C%3C%2FP%3E%3CP%3EAditya%3C%2FP%3E%3C%2FLINGO-BODY%3E