I am developing my application on a Kinetis K10DX256VLH7 64-pin cpu with CodeWarrior 10.2 and MQX 3.8.1.
I am using a BSP based on Processor Expert embedded components v5.3.
I use ADC_LDD embedded component to read the following analog inputs in single-ended mode:
- ADC0_DP0 (pin 9)
- ADC0_DM0 (pin 10)
- ADC0_DP3 (pin 11)
- ADC0_DM3 (pin 12)
I have an issue defining the ADC0_DM3 input for the ADC0 in the ADC_LDD embedded component: ADC0_DM3 is not present in the list of the available analog inputs.
So, as workaround I choose another channel input (e.g. TempSensor or PGA0_DP), lunch the Code Generation and then I change the ADC0_SC1A register value for the 4th channel input stored in the StaticSampleGroups table in the embedded ADC module source file. For the ADC0_DM3 input I set 0x55 as ADC0_SC1A register value.
Running my application, I properly read all the channel inputs above, except for ADC0_DM3, which always results 0 and never changes.
How can I read ADC0_DM3 analog input with ADC_LDD embedded component? Is there another workaround that works properly?
Attached is my Processor Expert project file.
Thank you.
Original Attachment has been moved to: ProcessorExpert.pe.zip