MP5748G using DAC in comparator

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

MP5748G using DAC in comparator

Jump to solution
2,596 Views
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 Kudos
Reply
1 Solution
2,566 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, just digital signal, high and low level.

BR, Petr

View solution in original post

0 Kudos
Reply
3 Replies
2,576 Views
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 Kudos
Reply
2,567 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

no, just digital signal, high and low level.

BR, Petr

0 Kudos
Reply
2,584 Views
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 Kudos
Reply