LWADC settings MQX4.2, K60 Tower

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

LWADC settings MQX4.2, K60 Tower

612 Views
markdoxbeck
Contributor II

According to init_lwadc.c, the lwadc init structure has a Normal power setting.

However, in lwadc_kadc.c, the code has the following line

    adc_ptr->CFG1 |= ADC_CFG1_ADLPC_MASK;

This causes the ADC to use the Low power configuration.

Is there someplace that states what all the ADC settings should be, for the LWADC driver?

0 Kudos
1 Reply

526 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Mark:

There are two types of adc driver in MQX package, one is legacy adc driver, the other is lwadc driver.

From MQX 4.1, we removed all the adc demos that based on the legacy adc driver because the legacy adc driver has some limitations.

You can get the info from the release note of MQX 4.1.0

Driver Updates

-- The LWADC driver has been ported to all supported board support packages. The support of the legacy ADC driver was discontinued.

Regards

Daniel

0 Kudos