HW normal conversion and HW injected conversion for the same adc instance

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

HW normal conversion and HW injected conversion for the same adc instance

ソリューションへジャンプ
868件の閲覧回数
olof1
Contributor I

Hi,

Is it possible to have on a adc instance:?

* one group that have a hw trigger source and conversion type injected

* one group that have hw trigger source and conversion type normal

I have tried this but only the first group that is setup is actually started. If I use injected conversion type for both groups both are started, but this is not preferred as I want to make sure the first group always will start conversion directly when triggered.

 

Thanks!

Olof

0 件の賞賛
返信
1 解決策
804件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tried it on the EVB using debugger directly, so set/enable few channels for normal and injected conversions and enable HW triggers to start it. I used eMIOS channels as those HW triggers and both triggered conversions started repeatedly. I saw no issue here, seems it worked as stated in the RM.
Unfortunately I do not know HLD drivers a lot, so lets wait for feedback from SW team handling your previous question on; https://community.nxp.com/t5/S32K/S32K344-use-both-hw-normal-and-hw-injected-trigger-for-an-ADC/td-p...

BR, Petr 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
837件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, it is possible to do both HW triggered normal and injection chain conversions on the same instance.

BR, Petr

0 件の賞賛
返信
829件の閲覧回数
olof1
Contributor I

Hi,
I can't get it to work. HW injected and SW normal works, but not HW injected and HW normal. Only the first group I enable by calling Adc_EnableHardwareTrigger() is actually doing conversion, so I can start either the HW injected group or the HW normal group, depending on which I enable first. I tried to find where in Adc_EnableHardwareTrigger() the enabling fails, and it seem to fail in Adc_ValidateNotBusyEnableHwTrig() where this comment is
/* It's possible to run (normal HW - injected SW) or (injected HW - normal SW) combination */

As I can get both groups (HW injected or HW normal) to start conversion by changing the order I call Adc_EnableHardwareTrigger() I think they are setup correctly? Do I need to do something special to get them both to start conversion?

 

BR

Olof

0 件の賞賛
返信
805件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

I tried it on the EVB using debugger directly, so set/enable few channels for normal and injected conversions and enable HW triggers to start it. I used eMIOS channels as those HW triggers and both triggered conversions started repeatedly. I saw no issue here, seems it worked as stated in the RM.
Unfortunately I do not know HLD drivers a lot, so lets wait for feedback from SW team handling your previous question on; https://community.nxp.com/t5/S32K/S32K344-use-both-hw-normal-and-hw-injected-trigger-for-an-ADC/td-p...

BR, Petr 

0 件の賞賛
返信