MP5748G using DAC in comparator

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

MP5748G using DAC in comparator

跳至解决方案
2,595 次查看
karma_JC
Contributor I

Hi:

Can we just use DAC in comparator to generate voltage on pin???

I'm using MPC5748G EVB, and configured CMP2 to generator a voltage on PB10.  The following is my code extraction for trying to generate the voltage on PB10:

 

 

CMP_DRV_GetDACConfig(INST_COMPARATOR2, &tDacConfig);

status = CMP_DRV_GetDACConfig(INST_COMPARATOR2, &tDacConfig);
if(status == STATUS_SUCCESS){
    	tDacConfig.voltage = 0x3F;
    	status = CMP_DRV_ConfigDAC(INST_COMPARATOR2, &tDacConfig);
    	data++;
}

 

 

Will this work????  Or, do you have example for this type of operation????

 

Thanks

James

0 项奖励
回复
1 解答
2,565 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, just digital signal, high and low level.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,575 次查看
karma_JC
Contributor I

Hi Petr:

 

If the is the case, is there any components in MPC5748G being able output "voltage" on a pin????

 

Thanks

Jamews

0 项奖励
回复
2,566 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, just digital signal, high and low level.

BR, Petr

0 项奖励
回复
2,583 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as RM states... The DAC from a comparator is available as an on-chip internal signal only and is not available externally to a pin.

BR, Petr

0 项奖励
回复