gonna have some time this week to work on things again..
wondering if you made any headway on your DAC output Crossroads??
I saw you had started a DAC thread..where it seems you guys worked through alot fo things.. wondering if any of that new stuff will apply to the sample code I was suppose to try?
#include <SPI.h> // check the format of that
int dataX;
byte DAC_SS = 9;
void setup(){
pinMode(10, OUTPUT);
pinMode (DAC_SS, OUTPUT);
SPI.begin();
// other setup stuff
} // end setup
void loop(){
for (dataX = 0; dataX < 0x1000; dataX = dataX+150){ // play with dataX+1 part
SPI.transfer (highByte (dataX) ); // you will have your data as int's, from 0x0000 to 0x0FFF, this sends the 0x0F part
SPI.transfer (lowByte (dataX) ); // and this sends out the remaining FF part
digitalWrite (DAC_SS, LOW);
digitalWrite (DAC_SS, HIGH);
//delayMicroseconds(13); // play with this
}
for (dataX = 0x0FFF; dataX >= 0; dataX = dataX-150){ // play with dataX-1 part
SPI.transfer (highByte (dataX) ); // you will have your data as int's, from 0x0000 to 0x0FFF
SPI.transfer (lowByte (dataX) );
digitalWrite (DAC_SS, LOW);
digitalWrite (DAC_SS, HIGH);
//delayMicroseconds(13); // play with this
}
}//end void loop
this was the last version I had tried to use...
Thanks