BCTU EMIOS Extra Triggering Issue

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

BCTU EMIOS Extra Triggering Issue

1,694件の閲覧回数
serhatTUG4N
Contributor I

I need help with an issue related to BCTU. I’m trying to trigger multiple ADC channels (ADC0 CH40 and ADC1 CH6) simultaneously using BCTU. You can find the screenshot of the BCTU settings I made below.

serhatTUG4N_0-1710275673522.pngserhatTUG4N_1-1710275709615.png

I’m using the BswAdc_Bctu_Watermark_Notification and BswAdc_Bctu_Trigger_Notification functions to observe when the program enters these functions by toggling certain pins. In a 100 us callback function, I’m calling Bctu_Ip_SwTriggerConversion to software trigger the BCTU (the TRGCFG_0.TRIGEN bit is set to 0). As can be seen in the logic analyzer screenshot, the BswAdc_Bctu_Trigger_Notification and then BswAdc_Bctu_Watermark_Notification functions are called as expected every 100 us.

serhatTUG4N_2-1710275801803.png

However, when I comment out the place where the software trigger function is called and set the TRGCFG_0.TRIGEN bit to 1 (hardware trigger), as can be seen in the screenshot below, these functions are called more than once in each cycle. It’s as if another source is triggering the BCTU. But EMIOS channel 0 should have triggered it only once every 100 us.

serhatTUG4N_3-1710276013927.png

I’m wondering what could be causing this extra triggering.

 

 

 

0 件の賞賛
返信
3 返答(返信)

1,661件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@serhatTUG4N

Could you please provide me with your test project so that i can reproduce the issue.

0 件の賞賛
返信

1,642件の閲覧回数
serhatTUG4N
Contributor I

I have prepared the code that I can share with you. By default, it will work with Hardwire Trigger. If you want to use Software Trigger, simply define the BCTU_SW_TRIGGER macro inside the main.c file.

0 件の賞賛
返信

1,619件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@serhatTUG4N

I didn't test your code because I already saw some errors when I opened the project.

Senlent_0-1710382839791.png

you can refer to the attachments which i wrote before.

the hardware is S32K3X4-Q257, hardware trigger BCTU via emios-pwm to sample ADC.

 

0 件の賞賛
返信