MP5748G using DAC in comparator

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MP5748G using DAC in comparator

ソリューションへジャンプ
2,616件の閲覧回数
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,586件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, just digital signal, high and low level.

BR, Petr

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,596件の閲覧回数
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,587件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, just digital signal, high and low level.

BR, Petr

0 件の賞賛
返信
2,604件の閲覧回数
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 件の賞賛
返信