Kinetis ADC Windowing not in bean?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kinetis ADC Windowing not in bean?

ソリューションへジャンプ
1,396件の閲覧回数
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 解決策
944件の閲覧回数
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 返答(返信)
944件の閲覧回数
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 件の賞賛
返信
944件の閲覧回数
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 件の賞賛
返信
945件の閲覧回数
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 件の賞賛
返信
944件の閲覧回数
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 件の賞賛
返信
944件の閲覧回数
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 件の賞賛
返信