Software Trigger in ADC using MCAL module of ADC for S32K1xx

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

Software Trigger in ADC using MCAL module of ADC for S32K1xx

1,100件の閲覧回数
gkunalupta
Contributor III

Can't we use softwares trigger in adc via mcal modules of adc. Software trigger i mean of ADC peripheral by writing value in SC1A register of S32K1xx MCU's.

1) As even though in gui, we have set software trigger in Group conversion.

but still in API Adc_StartGroupConversion() which is used for starting the adc channel conversion uses the api AdcUpdateStatusConversion & AdcIpwStartNormalConversion api's. And in these API, ADC triggering method is always by hardware method... as you can see in AdcIpwStartNormalConversion API, it always sets triggering method as hardware

Screenshot 2024-08-01 163517.png

 

2) Also one thing i found is that when gui ADC module configuration in GUI. The configuration strcuture of ADC Ip layer, in that trigger method is set as hardware always and channel configured are 0 always. Even though i have configured channels but still channels configured variable is zero and i cant find any section from where i can change the trigger method as software for configuration structure of ADC Ip layer. 

Though for structure of ADC group i can change from software or hardware trigger but in Software API's it seams it is hardcoded only for hardware trigger. as mentioned in point 2.

Screenshot 2024-08-01 164830.png

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

1,038件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as far as I know MCAL driver is written in that way, let me reuse feedback from SW team...

Because S32K1 only support 1 SC register with software trigger, so to improve performance (use all of SC registers), we use PDB to trigger each channel configured in SC registers. PDB will be triggered by software in this case. In case of you configure hardware trigger, then PDB will be configured as hardware trigger.

BR, Petr

0 件の賞賛
返信

978件の閲覧回数
gkunalupta
Contributor III

Okay, so its like ADC trigger via Software is kind of available by Configuring ADC in hardware trigger and then selecting PDB and triggering PDB via software. 

Correct?

0 件の賞賛
返信

862件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

correct,

BR, Petr

0 件の賞賛
返信