Arduino due spi problem and ide1.5.3 problem
Topic: Arduino due spi problem and ide1.5.3 problem
(Read 920 times)
Re: Arduino due spi problem and ide1.5.3 problem
Sep 22, 2013, 05:27 pm
there is an other ugly bug in the SPI library.
Working with 3 different slaves on the predefined CS pins works fine, as long as only ONE of them is used in the sketch.
At the moment of the second SPI.begin(dPOTI_nCS) the DAC_nCS goes low !?! and keeps low,
the following writes to the DAC don't happen, MOSI and CLK are not changed any more.
And during the setup the CS lines are going low too, and are just updated when the first SPI.transfer is initiated.
A bugfix would be great
#define DAC_nCS 10
#define dPOTI_nCS 52
dacWrite(DAC_cmd_SetupDcenRefRegister, DAC_cannel_ALL, DAC_dcnrefmode_AlloneOn);
dacWrite(DAC_cmd_PowerDownUp, DAC_cannel_ALL, DAC_powermode_NormalOn);
// Digital Poti