Aussie Susan
Advanced Member level 5
One final comment about the code snippet you have posted to initialise the MSSP peripheral: you can delete the call to "SPI1_Init_Advanced" as the lines of code that follow do everything you need to completely initialise the peripheral.
In fact you can reduce the lines setting the SSPM bits to
(or something equivalent for your compiler).
5 lines of code talking directly to the peripheral is all that is needed!
Susan
In fact you can reduce the lines setting the SSPM bits to
Code:
SSPCON1.SSPM = 0x0;
5 lines of code talking directly to the peripheral is all that is needed!
Susan