LWADC/ADC confusion on twr52259

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

LWADC/ADC confusion on twr52259

373 Views
CarlFST60L
Senior Contributor II

Hi,

I have ported our application from MQX3.8 to 4.1.1, so far it has required a little more coffee than I thought it would, but getting close to completing this job.

1. The MQX_IO_User_Guide.pdf that comes with MQX4.1.1 still has chapter 8 ADC Driver. The Release notes say this is no longer supported (but it does work). LWADC appears to be the only interface I can use?  Figure 2 in the MQX release notes shows the LWADC is supported in TWR52259, but, the LWADC.c files are not there, only the old ADC.c? And searching the BSP/PSP for LWADC comes up with 0 results, only the ADC stuff (which isnt supported according to the release notes)....... The lwadc files are not in the BSP, the examples are not... how do I use ADC in twr52259?

3. The project wizard also has no option for TWR LWADC example if you try to create it using that. The wizard for some reason has 52259evb and 52259demo which are not supported in MQX4.1.1 according to the release notes and builds available. Should the wizard reflect what is actually available? Would it be possible to have the wizard look at custom BSP's and allow you to use them (would be nice for creating empty projects with your custom BSP

Before I start, is this is the same for LWGPIO? Is the old GPIO driver supported or only the new LWGPIO? Will i have the same problem as above?

0 Kudos
1 Reply

197 Views
RadekS
NXP Employee
NXP Employee

Yes, ADC Driver is obsolete but there isn’t any replacement for Coldfire MCUs, therefore ADC driver is still there for backward compatibility and it will be in MQX until Coldfire MCUs will be supported.

ADC driver has limitation – it is not possible open more than two channels simultaneously on Kinetis MCUs.

So, in your case ADC driver is only choice.

GPIO driver is slightly different case. This driver works without limitation but it is unnecessarily slow and complicated. Therefore new LWGPIO driver was implemented for all platforms and GPIO driver is still part of MQX mainly for backward compatibility.

I hope it helps.


Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos