Kinetis ADC Windowing not in bean?

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

Kinetis ADC Windowing not in bean?

Jump to solution
1,519 Views
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.

Tags (2)
0 Kudos
Reply
1 Solution
1,067 Views
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


View solution in original post

0 Kudos
Reply
5 Replies
1,067 Views
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 Kudos
Reply
1,067 Views
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 Kudos
Reply
1,068 Views
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 Kudos
Reply
1,067 Views
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 Kudos
Reply
1,067 Views
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 Kudos
Reply