I just bought this board. I am using Microchip's MPLAB X IDE + Harmony stuff. (I received Rev A of the board, but the website and documentation show Rev C is the latest). Where is the changelog?
Ultimately I want to get dual ethernet working. I got the internal Ethernet working (can ping it) and have now shifted to just getting the Pmodnic100 working. The harmony libraries support
the ENCX24J600 device as well as SPI. However I cannot get this to work.
I installed the Pmod into port JF which would appear to be wired to the SPI4 channel.
I am confused about several things.
1) Properly configuring SPI
2) Properly configuring ENCX24J600
Anyone have settings/config to help with this?
Some things that confuse me -
I am really confused about configuring the pin settings. Since I selected SPI4 channel, it appears that is taken care of for SCK4, SDI4, SDO4. However what about chip select and the interrupts? Using the MPLAB Harmony Configurator and selecting the ENCX24J600, it ask for the SPI Slave Select Port info 'the GPIO pin hooked up to the CS/SS pin of the ENCX24J600'. I selected Port F, Bit Pos 12. That would seem to be RF12 which should be connected JF-01 of the Pmod. Right? And on the Pin Settings - I selected RF12 direction as OUT and Low (it that correct?) I would assume the driver manipulates this which is why it asked me to select the GPIO pin.
The INT/SPISEL pin would appear to be on JF-07 (RE9) so I left that pin as Input. The pmod datasheet says if that is floating or high, the SPI mode is enabled (versus a parallel mode).I let it as an input since I assume the driver might want interrupts. However I don't see where in either the ENCX24J600 or SPI options the driver would be told which pin the interrupt is on. How does it know?
For the SPI settings, there is a Clock to Use - it defaults to Peripheral bus 2- how many peripheral buses are there? Neither 2 or 1 worked. What should my SPI clock rate be?
Also, I set my peripheral bus to 10MHz, was that required? The MX7 datasheet showed that as a config value.
And under TCP/IP I selected the ENCX24J600 as the Interface but it doesn't work.
On my console (with Use TCP/IP Commands) and debug enabled, with the internal ethernet I has messages of:
TCP/IP Stack: Initialization Started
TCP/IP Stack: Initialization Ended - success
When trying this external device, I only get the Started.
So you can see I am obviously confused. Not sure how to debug this or if I am missing something.
Question
krbvroc1
I just bought this board. I am using Microchip's MPLAB X IDE + Harmony stuff. (I received Rev A of the board, but the website and documentation show Rev C is the latest). Where is the changelog?
Ultimately I want to get dual ethernet working. I got the internal Ethernet working (can ping it) and have now shifted to just getting the Pmodnic100 working. The harmony libraries support
the ENCX24J600 device as well as SPI. However I cannot get this to work.
I installed the Pmod into port JF which would appear to be wired to the SPI4 channel.
I am confused about several things.
1) Properly configuring SPI
2) Properly configuring ENCX24J600
Anyone have settings/config to help with this?
Some things that confuse me -
I am really confused about configuring the pin settings. Since I selected SPI4 channel, it appears that is taken care of for SCK4, SDI4, SDO4. However what about chip select and the interrupts? Using the MPLAB Harmony Configurator and selecting the ENCX24J600, it ask for the SPI Slave Select Port info 'the GPIO pin hooked up to the CS/SS pin of the ENCX24J600'. I selected Port F, Bit Pos 12. That would seem to be RF12 which should be connected JF-01 of the Pmod. Right? And on the Pin Settings - I selected RF12 direction as OUT and Low (it that correct?) I would assume the driver manipulates this which is why it asked me to select the GPIO pin.
The INT/SPISEL pin would appear to be on JF-07 (RE9) so I left that pin as Input. The pmod datasheet says if that is floating or high, the SPI mode is enabled (versus a parallel mode).I let it as an input since I assume the driver might want interrupts. However I don't see where in either the ENCX24J600 or SPI options the driver would be told which pin the interrupt is on. How does it know?
For the SPI settings, there is a Clock to Use - it defaults to Peripheral bus 2- how many peripheral buses are there? Neither 2 or 1 worked. What should my SPI clock rate be?
Also, I set my peripheral bus to 10MHz, was that required? The MX7 datasheet showed that as a config value.
And under TCP/IP I selected the ENCX24J600 as the Interface but it doesn't work.
On my console (with Use TCP/IP Commands) and debug enabled, with the internal ethernet I has messages of:
TCP/IP Stack: Initialization Started
TCP/IP Stack: Initialization Ended - success
When trying this external device, I only get the Started.
So you can see I am obviously confused. Not sure how to debug this or if I am missing something.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.