Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
I am adding comparator module for my existing project to support for the overcurrent monitoring, In comparator module the reference voltage can be taken from VREF(internal/external). In my case the VREF+ pin is hooked with the 3.3V source. So, I cannot use the internal voltage reference which can generate 1.4V or 2.5V. I saw in the COMP diagram, VREF is hooked with block called "Reference generator including 8-bit DAC".
Question is -
1. To use the external VREF with the DAC do we need to use the actual DAC12/8 module?
2. If answer to above question is YES, then why in the CCS SDK files they are not using the DAC 8/12 module and directly they are setting the DACCODE value by using the formulae
In CCS example they are generating the 2.5 volt from the internal VREF, but in the formluae they are putting ReferenceVoltage = 3 volt. and DesiredOutputVoltage = 1.5V. the DAC value they are pushing it to the DACCODE bits in COMPx.CTL3 register.
Can somebody give me the clarification here please?