S32K146 Adc Channel configurations array with hw trigger

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K146 Adc Channel configurations array with hw trigger

879件の閲覧回数
Micha4566465
Contributor II

Hello,

I create an ADC channel configurations array with PDB trigger-hardware.

But I get only an interrupt for (ControlChanIdx == 0).

I configured the system completely in RTD as you can see in the pictures.

Can you help me why there is no interrupt for (ControlChanIdx == 1)?

 

My source code:

// Interrupt routine

void AdcConversionCompleteNotif(const uint8 ControlChanIdx)

{

data = Adc_Ip_GetConvData(ADCHWUNIT_0_INSTANCE, ControlChanIdx);

}

 

int main(void)

{

Adc_Ip_StatusType adcStatus;

Adc_Ip_Init(ADCHWUNIT_0_INSTANCE, &AdcHwUnit_0);

 

adcStatus = Adc_Ip_DoCalibration(ADCHWUNIT_0_INSTANCE);

while (adcStatus != ADC_IP_STATUS_SUCCESS)

{

adcStatus = Adc_Ip_DoCalibration(ADCHWUNIT_0_INSTANCE);

}

 

Pdb_Adc_Ip_Init(PDBHWUNIT_0_INSTANCE, &PdbHwUnit_0);

Pdb_Adc_Ip_SwTrigger(PDBHWUNIT_0_INSTANCE);

 

while (1);

}

タグ(4)
0 件の賞賛
返信
1 返信

842件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Micha4566465

This problem seems to be caused by setting the delay time of the two trigger channels to be the same.

You can try setting different delay parameters for the two pre-trigger channels.

Senlent_0-1744703480586.png

 

0 件の賞賛
返信