Code example KV5x ADC in differential mode please

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

Code example KV5x ADC in differential mode please

609 Views
winpennyjh
Contributor I


I need a code example of using the KV5x ADC in differential mode please.

Labels (1)
0 Kudos
2 Replies

343 Views
isaacavila
NXP Employee
NXP Employee

Hello Julian,

Kinetis KV5x series has 2 different ADC modules: 16-bit SAR ADC and 12-bit High Speed ADC (5MSPS).

For 16-bit SAR, this is the same module that is located in some Kinetis families, such as Kinetis 120MHz, with some little differences that are shown here: http://cache.nxp.com/files/microcontrollers/doc/app_note/AN5117.pdf?fpsp=1&WT_TYPE=Application%20Not... . These differences are  basically only one ADC instance, remove PGA module and other little differences in clock selection sources and trigger selection. You can use the Kinetis Migration Guide: K10 - 120 MHz to KV5x guide to migrate attached sample code that was created for K10_120MHz target. Sample code is reading ADC0_DP0 and ADC0_DM0 inputs in its basic configuration.

For HSADC module, There are no example codes for now (remember that KV5x part is still under preproduction stage). As soon as it gets ready for production, we can create sample codes for this module. Also, Kinetis SDK v2.0 is planned to support Kinetis V series family in mid July: Introducing Kinetis SDK v2.

For now, I hope this basic example code for 16-bit SAR configured in differential mode can be used as reference.

Regards,

Isaac

343 Views
winpennyjh
Contributor I

Many thanks for the example code :smileyhappy:

0 Kudos