ADC_LDD for Kinetis K10

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

ADC_LDD for Kinetis K10

Jump to solution
1,434 Views
Vagni
Contributor IV

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

0 Kudos
Reply
1 Solution
1,029 Views
vfilip
NXP Employee
NXP Employee

Hello,

ADC0_DM3 is not connected to any of single ended inputs of ADC0 device. If this physical pin need to be measured, it can be done via ADC1. This is reference manual bug. Confirmed by design team.


best regards

Vojtech Filip

Processor Expert Support Team

View solution in original post

0 Kudos
Reply
3 Replies
1,029 Views
vfilip
NXP Employee
NXP Employee

Hello,

thanks for reporting it. We are analyzing it now. Regarding workaround. Did you also correctly set the routing (MUX bitfield)?

I will provide more details soon.

best regards

Vojtech Filip

Processor Expert Support Team


0 Kudos
Reply
1,029 Views
Vagni
Contributor IV

Thank you, Filip.

No, I didn't set the MUX bitfield for all of those pins. They should be only analog pins without any other alternative function, right?

Furthermore, with my settings I have no issue on ADC0_DP0, ADC0_DM0 and ADC0_DP3 analog inputs; my issue is only on the ADC0_DM3 analog input.

Best Regards,

Alessandro Vagniluca

0 Kudos
Reply
1,030 Views
vfilip
NXP Employee
NXP Employee

Hello,

ADC0_DM3 is not connected to any of single ended inputs of ADC0 device. If this physical pin need to be measured, it can be done via ADC1. This is reference manual bug. Confirmed by design team.


best regards

Vojtech Filip

Processor Expert Support Team

0 Kudos
Reply