SPI Implementation in 'C' language for Freescale MC56F82748

Thread Starter

davidmeetsall

Joined Dec 1, 2016
24
Dear Members,

I have to implement SPI communication between a 8-bit PIC and freescale microcontroller MC56F82748 in 'C' language.
PIC is a master and freescale is slave. PIC clock rate is 16 MHZ. Slave should be at 4 MHZ.

Please let me know the simple code to achieve a byte transfer from PIC to Freescale. Any similar code example will also work for me.

Also, please let me know where I can get 'C' example codes for MC56F827xx.

Thanks & regards,
David
 

simozz

Joined Jul 23, 2017
109
Microchip usually provides code examples in the data-sheets & user guides. Also if you google PIC SPI should give you a lot of examples.
I don't know about NXP/Freescale, but should be the same.

Check their documents.
 
Last edited:

Thread Starter

davidmeetsall

Joined Dec 1, 2016
24
Hi Simoz,

Yes, PIC code is available but not able to find NXP/Freescale slave mode code for MC56F82748 in 'C' language.
Any further guidance would help me a lot.

Regards,
David.
 

Thread Starter

davidmeetsall

Joined Dec 1, 2016
24
Hi Simozz,

I downloaded datasheet after login already. Datasheet doesn't have any code example.
Please let me know if you have knowledge of any other source.

Regards,
David.
 

simozz

Joined Jul 23, 2017
109
The data-sheet which describes the SPI (and related registers) and other peripherals is the Technical Reference Manual.
After a quick search, all the examples codes can be found in the file MC56F827xx.zip, under the Software & Tools tab-pane at MC56F827xx Example Code link.
 
Top