PDB period

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PDB period

570 Views
sarwath
Contributor IV

Hello Community,

Can anyone explain the Pdb period. I read from some examples but I didn't understand that. I am attaching the example ss for your reference.

1.sarwath_0-1669710560283.png

 

2.sarwath_1-1669710593838.png

Consider I want to set the PDB period to 1 milli second / 1 micro second then what are the configuration I have to make in PDB module.

Thanks in advance,

Sarwath

 

 

Tags (2)
0 Kudos
3 Replies

549 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @sarwath 

To offer better support, could you tell me which example you are using?

 

B.R.

VaneB

0 Kudos

547 Views
sarwath
Contributor IV

Hi @VaneB ,

1. I read from the ADC (AN12217) document.

2. S32K144_PDB_ADC_DMA_sdk_rtm_300

In my project I have to sense the analog signal. To do that I am using both ADC0 and ADC1 and to  trigger the ADC I am using the PDB.

By using below instruction I am setting the MOD value and Delay value.

PDB_DRV_SetTimerModulusValue(INST_PDB1,2000);
PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB1,0 ,0 ,180);

Consider If I want to read the ADC result at every 1ms, then how to configure the PDB to trigger the ADC.

BR,

Sarwath

0 Kudos

535 Views
VaneB
NXP TechSupport
NXP TechSupport

Take a look at these examples using ADC, PDB, and DMA. They will be useful to you.

Example S32K144 PDB ADC trigger DMA ISR S32DS 

Example S32K144 PDB ADC DMA S32DS.ARM.2018.R1 

0 Kudos