SPI help
-
- Posts: 29
- Joined: Thu Oct 18, 2012 10:19 am
- Has thanked: 6 times
- Been thanked: 1 time
- Contact:
Re: SPI help
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..
-
- Posts: 29
- Joined: Thu Oct 18, 2012 10:19 am
- Has thanked: 6 times
- Been thanked: 1 time
- Contact:
Re: SPI help
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
http://www.ti.com/lit/an/swra112b/swra112b.pdf
here the informations if this can help someone else
- 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
I have told you about these information to check from datasheet. Now I am clear I will post corrected code.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.
-
- Posts: 29
- Joined: Thu Oct 18, 2012 10:19 am
- Has thanked: 6 times
- Been thanked: 1 time
- Contact:
Re: SPI help
and it's what i have do so thank againEnamul wrote:I have told you about these information to check from datasheet. Now I am clear I will post corrected code.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.