/***************************************************************************** * DAC ***************************************************************************** * FileName: DAC.h * Dependencies: * Processor: PIC24 * Compiler: MPLAB C30 * Linker: MPLAB LINK30 * * * * Author Date Comment *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Michael Cecere 09/2006 *****************************************************************************/ #define DAC_CS LATBbits.LATB3 // DAC Select, out, active low #define IOC_TRIG LATCbits.LATC14 // Data Ready to IOC, out, active high extern void DAC_Init(); void Write_Data_DAC(); void DAC_Write(unsigned data, unsigned Chan); int Toroid_DAC_Scale(float Signal, unsigned Chan); void Write_pC_DAC();