Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Re: SPI-transfer trouble Using SPIEEPROM as example on: January 23, 2011, 11:15:43 pm
After some digging... It looks like this command might do the trick:

 SPI.setDataMode(SPI_MODE2);
2  Forum 2005-2010 (read only) / Troubleshooting / Re: SPI-transfer trouble Using SPIEEPROM as example on: January 23, 2011, 09:54:24 pm
It looks like the MAX7219 wants to transfer data bits on the rising edge of the clock cycles.  If I'm using a AD9833, the data sheet indicates the data transfer needs to happen on the falling edges.  I guess I need to set the CPOL bit in the SPCR register.   Not sure if there is an easy way to do this other than a brute force write to the register?

3  Forum 2005-2010 (read only) / Troubleshooting / Re: SPI-transfer trouble Using SPIEEPROM as example on: January 23, 2011, 03:17:40 pm
I'm interested in this as well.  It looks like there are some SPI setups to take care of. e.g. Clock divider, bit order, etc.  Does anyone know what it defaults to if the bits in the SPCR register are not set up?

Thanks,
-Ryan
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: can't get Simple SPI communication to work on: January 23, 2011, 12:23:10 am
Maybe you could post your bit bang code?  
Pages: [1]