SPI1CON1) // #define ENC_SPICON1bits (SPI1CON1bits) // #define ENC_SPICON2 (SPI1CON2) //#endif //// ENC624J600 Interface Configuration //// Comment out ENC100_INTERFACE_MODE if you don't have an ENC624J600 or //// ENC424J600. Otherwise, choose the correct setting for the interface you //// are using. Legal
ENC100_CS_IO (LATBbits.LATB3) #define ENC100_SO_WR_B0SEL_EN_TRIS (TRISCbits.TRISC4) // NOTE: SO is ENC624J600 Serial Out, which needs to connect to the PIC SDI pin for SPI mode #define ENC100_SO_WR_B0SEL_EN_IO (PORTCbits.RC4) #define ENC100_SI_RD_RW_TRIS (TRISCbits.TRISC5) // NOTE: SI is ENC624J600 Serial