Hi David Lee,
About the ADC sample code, please refer to the KSDK1.3.0, Kinetis SDK rev 1.x
After you install the KSDK1.3.0, you will find the sample code in folder:C:\Freescale\KSDK_1.3.0\examples\frdmkl26z\driver_examples\adc16\iar
But this sample code is just the sigle-ended, if you wan to use the differential, you need to configure the ADC channel as the kAdc16Chn0 to kAdc16Chn3, then configure the diffential mode:
chnConfig.diffConvEnable = true;
You can try to modify the code, and associate with the KL26 reference manual
About the KL16, actually, the ADC module is the same as the KL26, the KSDK is also supporting the KL16, but it don't have the sample code directly, you should refer to the KL26 sample code, and modify the header file and the according code for KL16.
Wish it helps you!
If you still have question, please contact with me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------