Page 1 of 1

SPI comms Question

Posted: Thu Jun 18, 2015 2:05 pm
by outlawstc
I am trying to program a atmega328p to control a AD9850 DDS chip...
Matrix program does not have the settings to choose LSB first or MSB first for transmission.. how do i go about setting this register.. Ive tried to set it with a implement C code macro with no luck... any suggestions..

Re: SPI comms Question

Posted: Thu Jun 18, 2015 9:09 pm
by kersing
Modify 'Flowcode 6/CAL/AVR/AVR_CAL_SPI.c'. This will probably break other components so you want to make the code conditional with #ifdef #endif construct and define a constant to enable your code. (Define the constant and look at the generated C code to see the exact name flowcode uses)