I am making a circuit with PIC16F690, but I get a wrong result on the output.
When I have 1.21 volts on the ADC, I get 2.94V on the DAC output. If I lower the ADC input, the DAC output gets higher, if I increase the ADC input, the DAC output gets lower, any ideas?
I am using the CCS PIC C compiler, v5.61.
Microcontroller PIC16F690 ADC to DAC problem
When I have 1.21 volts on the ADC, I get 2.94V on the DAC output. If I lower the ADC input, the DAC output gets higher, if I increase the ADC input, the DAC output gets lower, any ideas?
I am using the CCS PIC C compiler, v5.61.
Code (Text):
- /* Main.c file generated by New Project wizard
- *
- * Created: Sun Jul 2 2017
- * Processor: PIC16F690
- * Compiler: CCS for PIC
- */
- #include <16F690.h>
- #include <math.h.>
- #fuses...