Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 303 Code Snippets

In this code example, SPI module in PIC18F4685 is configured as MASTER. SPI is used to communicate between SPI in two seperate device. The Data transmission and reception takes place between MASTER SPI and SLAVE SPI modules.

About this Code Example

In this code example, SPI module in PIC18F4685 is configured as MASTER. SPI is used to communicate between SPI in
two seperate device. The Data transmission and reception takes place between MASTER SPI and SLAVE SPI modules.

* SDO,SDI & SCK must be connected to the corresponding in slave
*     MASTER                SLAVE
*
*     SDO    <------------>    SDI
*     SDI    <------------>    SDO
*     SCk    <------------>    SCK
* NOTE: Refer Slave source code also

Categories

Release History

  • Jul 22, 2011

    Version: 1.0.0

    first upload to ECS

Download Contact the Developer

*Required Fields


  • Current Version:1.0.0
  • Created:Jul 22, 2011
  • Updated:Feb 26, 2015
  • Downloads:4820
  • MPLAB Version:latest
  • C Compiler:MCC18 v3.34 or above
  • Development Tools:PIC DEM 2+ Development Board with PIC18F4685 controller
  • Supported Devices:PIC18F4685

Corporate News

Resources

Stay Connected

Stay up to date with the latest news from Microchip Technology.