AnsweredAssumed Answered

PDB - ADC back to back triggering (S32K micro)

Question asked by Tanto Sugiarto on Jan 26, 2017
Latest reply on Feb 9, 2017 by Petr Stancik


I attempt to trigger ADC via PDB in back to back fashion.  

I have read other link on how to do this. The link provides an example where 

initial trigger is performed by software trigger. However, I would like to perform

the initial trigger by trigger delay from PDB.  I can't get it to work with my 

PDB configuration. Below, is some of relevant PDB configuration that I think 

is critical.  Basically, I try to trigger 2 A2D channel (Ch0 and Ch1 of ADC0).

Ch0 is triggered by pre-trigger delay of PDB, Ch1 is triggered after it receives

COCO flag from Ch0  (back to back). 




PDB0->MOD = 950;

PDB0->CH[0].C1 |   =   PDB_C1_BB(0b00000010) //Pretrigger Back to Back: 0= disabled, 1=enabled
                                       | PDB_C1_TOS(0b00000001) //Pretrigger Output Select: 0=bypassed , 1=enabled
                                       | PDB_C1_EN(0b00000001); //Pretrigger Enable: 0=enabled , 1=enabled

PDB0->CH[0].DLY[0] = 200;


The behavior that I see is in the debugger, Ch0 of ADC0 seems get triggered. 

It generates COCO flag, however Ch1 of ADC0 doesn't seem to respond to COCO flag 

from Ch0.  


Thank you in advance for your help.