Software Trigger in ADC using MCAL module of ADC for S32K1xx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
correct,
BR, Petr