KW01 ADC Trigger Problem

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

KW01 ADC Trigger Problem

跳至解决方案
2,243 次查看
dorianhildebran
Contributor I

Hello guys

i have a Problem getting the ADC to work on a MKW01Z.

My previous processor was the MKL15Z, and it was working great there.

I'm using KDS 3 with Processor expert, but without KSDK.

The idea is to read the analog Inputs while processor is sleeping.

So, i have a ADC_LDD with DMA enabled.

The Trigger Input is TPM1_Overflow. So it pulses every ms, and i get exactly 1000 samples in a second.

On the MKL15Z its working great.

But on the MKW01Z i cannot use a timer-Trigger (it doesnt matter if dma is enabled or disabled).

In the Trigger type source, if i select TPM0_Overflow it shows me that its unsoported (see attached picture).

The same for all the other timer-Triggers. Only the cmp0_output seems to work.

Does anybody know why i cant use a timer-Trigger on my MKW01Z, and some workaround?

Best regards

Dorian

标签 (1)
0 项奖励
回复
1 解答
1,951 次查看
isaacavila
NXP Employee
NXP Employee

Hello Dorian,

It seems to be an issue on ADC_LDD component. When you add KSDK support and use the fsl_adc16 component, you are able to select the TPM as input trigger source.

I will report this bug on Proccessor Expert Team and let you know when this gets solved.

Sorry for all the inconvenience it might cause,

Best Regards,

Isaac

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,952 次查看
isaacavila
NXP Employee
NXP Employee

Hello Dorian,

It seems to be an issue on ADC_LDD component. When you add KSDK support and use the fsl_adc16 component, you are able to select the TPM as input trigger source.

I will report this bug on Proccessor Expert Team and let you know when this gets solved.

Sorry for all the inconvenience it might cause,

Best Regards,

Isaac

0 项奖励
回复
1,951 次查看
dorianhildebran
Contributor I

Hello Isaac,

thank you very much for your answer and the Support.

I helped myself by setting the Trigger->Trigger Signal 0 to "disabled" and then setting SIM_SOPT7 manualy to 0x88 (for TPM0 Overflow).

Works like a charm.

Best regards

Dorian

0 项奖励
回复