KL05 ADC Group B

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

KL05 ADC Group B

278 Views
matheus_pinto1
Contributor II

Hello,

I am using the FRDM-KL05Z board with ADC.

I acomplished to use ADC in single, continuous and hardware (TPM0) trigger modes.

However, when I try to set my channel for Group B, it is not work (doesn't set the COCO flag).

As far as I know, I just need to worry about a few things to choose between Group A and B:

- The ADC0->S1[0] is for Group A and ADC0->S1[1] is for Group B, for setting the channel;

- The ADC0->R[0] is for Group A and ADC0->R[1] is for Group B, for reading the conversion value;

- Group B can only be triggered by hardware.

 

There is something I am missing?

 

Thanks in advance

0 Kudos
1 Reply

237 Views
RaRo
NXP TechSupport
NXP TechSupport

Hello @matheus_pinto1,

In KL05Z Sub-Family Reference Manual. Chapter 28. Analog-to-Digital Converter (ADC). Section 28.3.3. ADC Configuration Register 2 (ADCx_CFG2) mentions the usage of bit MUXSEL, which changes the ADC mux setting to select between alternate sets of ADC channels.

RaulRomero_0-1685464203928.png

[KL05 Sub-Family Reference Manual. ADCx_CFG2 field descriptions]

Could you please try to configure this bit to Adxxb to be selected?

Best regards, Raul.

0 Kudos