How to use the CC function of eTPU?

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

How to use the CC function of eTPU?

跳至解决方案
1,436 次查看
CatwitCh
Contributor I

Hi Everyone, I am trying to drive a valve by using eTPU functions. The main purpose is to control the duty cycle of PWM signal loaded on the valve with current control.

My way is to control PWMMDC function to output a PWM signal, which is adjusted by CC function with a ASDC function measuring current, however it did not work.

Does ASDC function need a external AD converter? or it has internal AD converter? or can I use eQADC module instead?

I have also checked the ASAC function, it seems have bit relationship with eQADC, but it confused me about how to link the eQADC and eTPU.

Appreciate your help, it would be better to example codes.

标记 (1)
0 项奖励
1 解答
1,410 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

None of the eTPU functions works directly with ADC. Trigger functions for measurement of analog values  as ASDC or ASAC are generating configurable trigger pulses. Which are possible connect to ADC and start the measurement.

You should separately configure ADC, eTPU does not have any internal ADC, it is pure digital IP.

These trigger functions can be used for processing of measured values, for example filtration, DC offset..
Here is a list of application notes for the functions you are mentioning:

AN2840 - DC Motor control PWM function


​AN2844 -  using Current Controller function

​AN2958 - using DC Motor Control eTPU Functions

 

AN2846 - using ASDC function

Here is full example project:
https://www.nxp.com/docs/en/application-note/AN3008.pdf

attached is the SW code.
best regards,
Peter

在原帖中查看解决方案

0 项奖励
2 回复数
1,411 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

None of the eTPU functions works directly with ADC. Trigger functions for measurement of analog values  as ASDC or ASAC are generating configurable trigger pulses. Which are possible connect to ADC and start the measurement.

You should separately configure ADC, eTPU does not have any internal ADC, it is pure digital IP.

These trigger functions can be used for processing of measured values, for example filtration, DC offset..
Here is a list of application notes for the functions you are mentioning:

AN2840 - DC Motor control PWM function


​AN2844 -  using Current Controller function

​AN2958 - using DC Motor Control eTPU Functions

 

AN2846 - using ASDC function

Here is full example project:
https://www.nxp.com/docs/en/application-note/AN3008.pdf

attached is the SW code.
best regards,
Peter

0 项奖励
1,421 次查看
johndiener
Contributor IV

A different application and a fairly old example, but it does demonstrate using eQADC and eDMA with the ASDC function - AN3008 (attached).

John Diener
0 项奖励