AnsweredAssumed Answered

ADC port definition, K20dx256Z

Question asked by Robert Lewis on Apr 3, 2013
Latest reply on Apr 30, 2013 by Robert Lewis

Hi

I am trying to test our ADC on a custom board using mqx 3.8.1. and CW10.3. I downloaded and built the example mqx 3.8.1 app: adc_twrk40x256 without error, but this is set to use a twrk40dx256 and we are using our custom board with a k20dx256z part and not a Tower module.

 

We are using the bsp for the twrk40dx256, so I looked in the twrk40x256.h file and can see a definition for ADC1_SOURCE_AD1, but I don't know what that translates to; is this ADC1_DP1, or ADC1_DM1, or the differential pair??

 

We want to use a SE (single ended), ADC1_DM1 pin 15 for conversion. Can someone suggest how I go about making a definition for that channel please?

 

I tried following the declarations in the debugger but I do not get a specific define that I can relate to the base package. Thanks for the help.

 

Robert

Outcomes