This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

help me in DAC using 89c4051

Sir, I am using 89c4051 to convert digital to analog. pin 1.0 and 1.1 are used, but I am confused how to us? please help me I don't know anything.

Parents
  • ya, your are correct, mcu will provide the reference voltage. while designing we need to set the reference voltage. But the problem here is how to start the comparison? do i need to write software coding for that or it keeps on comparing? As you said we need to enable the comparator i.e set bit CEN of ACSR. but 89c4051 does not have ACSR. what to do? please help me bit in coding... help me in coding how to start comparing? using interrupt or enabling comparator? or any other metods? if you have code please post it

Reply
  • ya, your are correct, mcu will provide the reference voltage. while designing we need to set the reference voltage. But the problem here is how to start the comparison? do i need to write software coding for that or it keeps on comparing? As you said we need to enable the comparator i.e set bit CEN of ACSR. but 89c4051 does not have ACSR. what to do? please help me bit in coding... help me in coding how to start comparing? using interrupt or enabling comparator? or any other metods? if you have code please post it

Children