Kinetis ADC Windowing not in bean?

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

Kinetis ADC Windowing not in bean?

跳至解决方案
1,521 次查看
Jeinstei
Contributor II

I've been trying to find it, but although the Kinetis hardware supports a windowing function and related interrupts, it seems that none of the ADC beans support this feature. Am I missing something?

Thanks.

标记 (2)
0 项奖励
回复
1 解答
1,069 次查看
vfilip
NXP Employee
NXP Employee

Hello,

This feature is supported within EnableAutoCompare/DisableAutoCompare methods. You can also use the corresponding PDD macros (ADC_PDD_SetCompareValue1Raw, ADC_PDD_SetCompareValue2Raw, ADC_PDD_SetCompareFunction).

To get these methods visible is necessary to switch to the Expert visibility mode in upper part of Component Inspector view.

Rgds

VF


在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,069 次查看
vfilip
NXP Employee
NXP Employee

Hello,

could you please point me to the section in RM that describes this feature? As far as I know that ADC device does not support such functionality but maybe I am missing something.

best regards

Vojtech Filip

Processor Expert Support Team


0 项奖励
回复
1,069 次查看
Jeinstei
Contributor II

Vojtech,

You can find it in all the reference manuals (K10-K70). In the K10P81M100SF2RM, you can see it in Figure 32-1, as the "compare logic" at the bottom of the image. These are described in section 32.3.5. The ACFE, ACFGT and ACREN bits in ADCx_SC2 turn on and off the compare functions of the part (32.3.6).

The operation is described in 32.4.6. The COCO only is triggered if the compare condition is true.

Thanks!

Josh E

0 项奖励
回复
1,070 次查看
vfilip
NXP Employee
NXP Employee

Hello,

This feature is supported within EnableAutoCompare/DisableAutoCompare methods. You can also use the corresponding PDD macros (ADC_PDD_SetCompareValue1Raw, ADC_PDD_SetCompareValue2Raw, ADC_PDD_SetCompareFunction).

To get these methods visible is necessary to switch to the Expert visibility mode in upper part of Component Inspector view.

Rgds

VF


0 项奖励
回复
1,069 次查看
Jeinstei
Contributor II

Vojtech-

I found the AutoCompare method, but using the PDD functions to change values that should be in the LDD seems a bit backwards. Are there any plans to add fields in the LDD for the two compare values and the compare mode?

I see how the method would work here and we can definitely use it for now.

Thanks for the heads up.

-Josh E

0 项奖励
回复
1,069 次查看
vfilip
NXP Employee
NXP Employee

Hello,

I have passed your requested to developers to consider support of settings of the compare values in UI for some next release.

best regards

Vojtech Filip

Processor Expert Support Team


0 项奖励
回复