SPI help

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Flouch
Posts: 29
Joined: Thu Oct 18, 2012 10:19 am
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: SPI help

Post by Flouch »

Thanks again for you're help, i'm stuck at this point because i don't know if it's my board who have a problem (the board to isolate the 3V to the 5V) or the flowcode program..

Flouch
Posts: 29
Joined: Thu Oct 18, 2012 10:19 am
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: SPI help

Post by Flouch »

Ok i have found the solution, in fact is in the programme. In spi we got 1 bit for the R/W 1 for the burst and 6 for the data
http://www.ti.com/lit/an/swra112b/swra112b.pdf
here the informations if this can help someone else

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: SPI help

Post by Enamul »

The SPI interface on the MCU must be configured to operate in master mode. The Clock phase should be configured so that data is centered on the first positive going edge of the SCLK period and the polarity should be chosen so that the SCLK line is low in idle state.
I have told you about these information to check from datasheet. Now I am clear I will post corrected code.
Enamul
University of Nottingham
enamul4mm@gmail.com

Flouch
Posts: 29
Joined: Thu Oct 18, 2012 10:19 am
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: SPI help

Post by Flouch »

Enamul wrote:
The SPI interface on the MCU must be configured to operate in master mode. The Clock phase should be configured so that data is centered on the first positive going edge of the SCLK period and the polarity should be chosen so that the SCLK line is low in idle state.
I have told you about these information to check from datasheet. Now I am clear I will post corrected code.
and it's what i have do so thank again

Post Reply