View previous topic :: View next topic |
Author |
Message |
hayee
Joined: 05 Sep 2007 Posts: 252
|
Want some tutorials regarding SPI |
Posted: Tue Feb 12, 2008 12:03 pm |
|
|
HI everyone,
I want some basis tutorials related to SPI in C.I want to communicate two PIC16F877A for transfering of data.can anyone give me some links so that i can understand what spi is and how can i achive my goal.give me some basic examples.
thankx |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
Re: wanna some tutorials regarding SPI |
Posted: Tue Feb 12, 2008 12:20 pm |
|
|
hayee wrote: | HI everyone,
I want some basis tutorials related to SPI in C.I want to communicate two PIC16F877A for transfering of data.can anyone give me some links | - Check ex_spi.c and ex_spi_slave.c in the examples directory of the CCS compiler.
- Search this forum
Quote: | so that i can understand what spi is | http://en.wikipedia.org/wiki/Spi |
|
|
Zer0flag Guest
|
Re: Want some tutorials regarding SPI |
Posted: Wed Feb 13, 2008 2:55 am |
|
|
Hi hayee,
I can recommend the book "Embedded C Programming and the Microchip PIC".
Best regards,
Zer0flag
hayee wrote: | HI everyone,
I want some basis tutorials related to SPI in C.I want to communicate two PIC16F877A for transfering of data.can anyone give me some links so that i can understand what spi is and how can i achive my goal.give me some basic examples.
thankx |
|
|
|
EL
Joined: 24 Feb 2008 Posts: 15 Location: POLSKA
|
|
Posted: Sun Mar 02, 2008 5:21 am |
|
|
Hi Zer0flag
You have can e-book?
I look for from very long this book and nothing:(
Quote: | - Check ex_spi.c and ex_spi_slave.c in the examples directory of the CCS compiler. |
I have not in my CCS this... |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Sun Mar 02, 2008 5:58 am |
|
|
EL wrote: | Hi Zer0flag
Quote: | - Check ex_spi.c and ex_spi_slave.c in the examples directory of the CCS compiler. |
I have not in my CCs this... | It is strange for the ex_spi.c example file to be missing as it is an very old example. What is your compiler version number?
Another source of information is to use the search function of this forum and search for the keyword 'setup_spi'. |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
Posted: Sun Mar 02, 2008 7:31 am |
|
|
To fully understand SPI -and others built in modules of any MCU- you should go down to
Assembler, is the best languaje tool to walk step by step close to the machine, hence it
is widely used to explain the basis.
http://ww1.microchip.com/downloads/en/devicedoc/spi.pdf
Humberto |
|
|
EL
Joined: 24 Feb 2008 Posts: 15 Location: POLSKA
|
|
Posted: Sun Mar 02, 2008 9:10 am |
|
|
Version my CCS this 4.013
I know the principle of working the SPI in assembler.
I know this document.
I have this only to write in C and I from this have problem.
I greet EL |
|
|
|