Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SPI trouble in MOSI pin

Status
Not open for further replies.
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
Code:
SSPCON1.SSPM = 0x0;
(or something equivalent for your compiler).
5 lines of code talking directly to the peripheral is all that is needed!
Susan
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top