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