16f1934 dac trouble

Discussion in 'Embedded Systems and Microcontrollers' started by RobbJohnson, Oct 4, 2011.

  1. RobbJohnson

    Thread Starter Active Member

    Dec 15, 2009
    76
    0
    I am having trouble using the DAC function on the PIC16f1934

    SPELLING WAS WRONG

    DEFINE OSC 20
    DACCON0 = %10100000
    DACCON1 = %00011111
    DEFINE ADC %00000000
    DEFINE CPSON0 %00000000
    LCDCON = %00000000
    FVRCON = %10000000
    TRISA = %00000000

    I am not seeing any voltage on pin 4 (DACOUT)
    Any help would be great

    Robb
     
    Last edited: Oct 4, 2011
  2. nigelwright7557

    Senior Member

    May 10, 2008
    487
    71
    Have you set according tris pin to 1 for input FOR ADC PIN ?
     
Loading...