ADCSRA |= (1<<ADSC); //Turn back on the ADC
To start the ADC measurements, the ADSC bit in ADCSRA needs to be set
unsigned char adc_reading = ADCH;
ADC has a resolution of 10 bits, this 10 bit value is split across two 8 bit registers, ADCH and ADCL. The highest 8 bits of the measurement in the ADCH register, with the rest in the ADCL register.
PORTB = PORTB & ~(1<<DAC_CS);
PORTB = PORTB | (1<<DAC_CS);
Chip Selection signal for DAC
WriteByteSPI(0b011110000);
WriteByteSPI(0x00);
To send data on DAC
for more info
http://www.avrfreaks.net/