Very simple for PIC16C782 you set the register DACON0 to ENABLE the dac and simply set the register DAC with a byte value for the analog output desired.
DAC = 128 will generate an analog output of 2.5 volts if your reference was Vdd (5V)
That's all.
Cheers
Al.
Bookmarks