Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Microcontroller PIC16F690 ADC to DAC problem

$
0
0
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.
Code (Text):
  1.  
  2. /* Main.c file generated by New Project wizard
  3.  *
  4.  * Created:   Sun Jul 2 2017
  5.  * Processor: PIC16F690
  6.  * Compiler:  CCS for PIC
  7.  */
  8.  
  9. #include <16F690.h>
  10. #include <math.h.>
  11. #fuses...
Microcontroller PIC16F690 ADC to DAC problem

Viewing all articles
Browse latest Browse all 4922

Trending Articles