08-06-2009 03:58 PM
08-09-2009 07:37 AM
There is already a thread started here
You could follow the TWI example described in the link suggestd byTony Gibbs (http://zone.ni.com/devzone/cda/tut/p/id/5861).
How come you don't know the SPORT settings if you had already written a C version?
08-09-2009 07:50 AM
08-09-2009 03:12 PM
I didn't say you could use TWI - I just suggested to watch an example about developping the driver over busses protocols.
The graphs from the datasheet are as in alternate/late mode (active low), so you can configure the SPORT either for 8 bit or 32 bit because the frame sync is checked on the first bit only.
08-09-2009 03:23 PM
08-10-2009 02:55 PM
Probably because you have two masters there (DSP and ADC).
You want the ADC in master mode for some reasons (perhaps just to avoid external interrupts from DRDY).
In this case I would keep the ADC in reset while SPORT is switched from master to slave (after control register configuration trasnmision). You could wire the ADC RESET to one of the LED signals.