I have been making some changes to the code found on this page:
so that I can use a DAC instead of PWM.
However, instead of just doing this to the code so that the audio comes out on PORTD
PORTD=sineovertones[waveindex] + 128;
waveindex++;
OCR1A = analog0;..........
I would like to find a way to call both PORTD and PORTB so I can connect the DAC to pins 5-12.
anyone have any idea how to do this without using analogWrite?
thanks so much (i am really trying to get a handle on how to communicate with the digital outputs on the arduino.
my main goals are getting the audio inputs sent to the outputs.
thanks