
unsigned int DAC_Val;
...
DAC0H = (DAC_Val >> 8);
DAC0L = (DAC_Val & 0xFF);
...