Yes, I think I have it working. Only updates every 1 of 8 every 5mS from data sent over an RS232 link, so way too slow for audio. Good enough for motor control tho:
// Switch for the appropriate DAC, 0-7
switch (Serial.read()) {
case 0:
// read serial UART & SPI.transfer it out
PORTB = PORTB & B11111011; // PB:2 DAC 0 SS LOW
SPI.transfer (Serial.read() | DAC_A_mode); // read highADC nibble & mix with control bits, send it out
SPI.transfer (Serial.read()); // read lowADC byte, send it out
PORTB = PORTB | B00000100; // DAC 0 SS HIGH
break;
You could do the same PORTB = ... thing for speeding it up some too.