How to use PGA Kinetis K10 ADC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to use PGA Kinetis K10 ADC

跳至解决方案
1,096 次查看
okaner
Contributor III

Hello,

     I want to use the PGA in Kinetis K10 microcontroller. I try to find Gain option in PE ADC_LDD, but I could not find anything. Is there anyone used PGA from PE.

Okan ERCAN

标签 (1)
标记 (3)
1 解答
702 次查看
santiago_lopez
NXP Employee
NXP Employee

Hi ERCAN

In the Processor Expert Components Library there is a peripheral initialization component named Init_PGA. You can use it to initialize the PGA settings like gain and operating mode. When configuring, just set the Pins/Signals options for Positive and Negative inputs to "Disabled" since the pin initialization is being performed in the ADC_LDD component.

Saludos

在原帖中查看解决方案

0 项奖励
2 回复数
703 次查看
santiago_lopez
NXP Employee
NXP Employee

Hi ERCAN

In the Processor Expert Components Library there is a peripheral initialization component named Init_PGA. You can use it to initialize the PGA settings like gain and operating mode. When configuring, just set the Pins/Signals options for Positive and Negative inputs to "Disabled" since the pin initialization is being performed in the ADC_LDD component.

Saludos

0 项奖励
701 次查看
MarkHaines
Contributor II

I don't think that answer was completely right.  I didn't get any PGA gain until I DID assign the positive and negative input pins for the PGA.  And after that you have to go to the ADC_LDD component and reassign the ADC inputs from the input pins to the PGA outputs PGAxDP and PGAxDM.  PEx did not change them automatically.

I implemented this on the TWR-K20D72M board where the microphone is the ADC1_DP0 input and the potentiometer is the ADC1_DM0 input. This allows you to adjust the pot to remove the 0.7V DC bias from the microphone output, which makes a very sensitive audio pickup.