ENC28J60 Driver


+ Reply to Thread
Results 1 to 2 of 2

Thread: ENC28J60 Driver1258 days old

  1. #1
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default ENC28J60 Driver

    Hi,

    Where can I download the ENC28j60_Driver.inc file?
    In the original post "ENC28J60 , a simplistic driver" none of the links work and on some posts where it states download here there is no download link.

    David

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Dave-S
    Guest Dave-S's Avatar

    0 Not allowed!

    Default Re: ENC28J60 Driver

    Hi,
    I have found and downloaded the "ENC28J60_Driver.inc file, but when I try to compile it I get the following message:

    "ERROR [Line 984]: Cannot place a user defined macro within a user defined macro"

    From this Macro:

    Code:
    NIC_SOFT_RESET     Macro PI
                       Bcf ETH_CS                                  ; Enable SPI on ENC28J60
                       SPI SRC_OP_CODE
                       Bsf ETH_CS                                  ; Disable SPI on ENC28J60
                       Endm
    The error is on the line: " SPI SRC_OP_CODE "

    This Macro is shown below:

    Code:
    SPI                Macro P1                       
                       #if (Prm_1 == Byte)
    		               Byte_Byte P1, SSPBUF
                       #endif
    	               #if (Prm_1 == Num8) | (Prm_1 == Num16)
    		               Num_Byte P1, SSPBUF
    	               #endif
                       GoSub SPI_SUB
                       #if(SPI_RETURN == 1)
                           #if(Return_Type == Byte)
                               Wreg_Byte Return_Var
                           #else
                               #error "Return Var for SPI Macro is not a Byte type"
                           #endif
                       #endif
                       Endm    
    SPI_SUB:
                       Btfss  SSPSTAT.0                             ; Has data been received(transmit complete)?
    I do not have a clue how to alter this, can anyone help me with this?

    Thanks David.

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. ENC28J60 support
    By hadv215 in forum Ethernet Module
    Replies: 1
    Last Post: 15th November 2014, 06:42
  2. [SOLVED !] ENC28J60 help
    By akvii in forum Ethernet Module
    Replies: 5
    Last Post: 17th May 2013, 21:12
  3. Problem ENC28J60 + 18F452+ driver GABI
    By gerben-88 in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 14th May 2013, 06:44
  4. ENC28J60 , a simplistic driver
    By _Gabi_ in forum Proton Plus Compiler v3
    Replies: 108
    Last Post: 13th May 2013, 15:08
  5. [SOLVED !] SPI to ENC28J60
    By gerben-88 in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 22nd November 2009, 22:42

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts