PDB period

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PDB period

571 次查看
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

 

 

标记 (2)
0 项奖励
3 回复数

550 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @sarwath 

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

 

B.R.

VaneB

0 项奖励

548 次查看
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 项奖励

536 次查看
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 项奖励