Hello Matrix Multimedia Family
Warm greetings from Turkey.
I hope ALL are fine.
Questions 1
Connect a PC cross with ENC28J60,
and if I give a fixed IP to the ENC28J60 and PC, the system works.
However, it does not work when I connect ENC28J60 and PC separately to the Modem.
I never see the IP of the ENC28J60. What could be the reason for it?
Are there examples of applications running when the computer and ENC28J60 are connected to the Modem separately?
Questions 2
The PIC18F25K22's internal oscillator and 4xPLL are not available with 64Mhz.
I'm getting suspicious at the processor.
Processor, 16Mhz internal oscillator is running smoothly. 4xPLL does not work.
You can see the Software in the appendix.
ENC28J60 and 18F25K22 INT OSC 64 Mhz 4xPLL Problem
Moderator: Benj
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
ENC28J60 and 18F25K22 INT OSC 64 Mhz 4xPLL Problem
- Attachments
-
- 25K22_ENC_WEB_SERVER_MODE_WORK.fcfx
- (58.32 KiB) Downloaded 180 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ENC28J60 and 18F25K22 INT OSC 64 Mhz 4xPLL Problem
Hi Sadik,
I'll ask Leigh on q1, I know he has spent a lot of time working with the ENC module and could be something to do with supporting DHCP. If DHCP doesn't work then you may need to assign a static IP and then adjust your DHCP server so it doesn't assign that address in the address pool.
Regarding q2 I have had similar issues getting PLLs working on a 18FxxK50 device. It's usually down to the config settings in one way or another. I was using C code to try and force the chips hand but in the end I don't think it was necessary. I'll dig out my code and see what I did to make it work. Note I haven't personally tried a K22 device.
Maybe the clock failsafe and/or the internal/external switchover need disabling.
I'll ask Leigh on q1, I know he has spent a lot of time working with the ENC module and could be something to do with supporting DHCP. If DHCP doesn't work then you may need to assign a static IP and then adjust your DHCP server so it doesn't assign that address in the address pool.
Regarding q2 I have had similar issues getting PLLs working on a 18FxxK50 device. It's usually down to the config settings in one way or another. I was using C code to try and force the chips hand but in the end I don't think it was necessary. I'll dig out my code and see what I did to make it work. Note I haven't personally tried a K22 device.
Maybe the clock failsafe and/or the internal/external switchover need disabling.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: ENC28J60 and 18F25K22 INT OSC 64 Mhz 4xPLL Problem
Hi Sadik,
What do you mean by modem?
Do you mean a router?
If the PC and ENC have static IP then they should also work connected via a router, as long as all 3 are on the same subnet
What do you mean by modem?
Do you mean a router?
If the PC and ENC have static IP then they should also work connected via a router, as long as all 3 are on the same subnet
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
Re: ENC28J60 and 18F25K22 INT OSC 64 Mhz 4xPLL Problem
Hello
I hope you are fine Dear Leigh. Thanks for repply.
Instead of working as a web server for Enc28j60, can you share a simple example that connects directly to a modem, ie a network?
The sample on the web page works like a modem. After connecting the processor and the ENC28J60 to the modem, it must be able to obtain the IP assigned by DHCP.
I hope you are fine Dear Leigh. Thanks for repply.
Instead of working as a web server for Enc28j60, can you share a simple example that connects directly to a modem, ie a network?
The sample on the web page works like a modem. After connecting the processor and the ENC28J60 to the modem, it must be able to obtain the IP assigned by DHCP.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: ENC28J60 and 18F25K22 INT OSC 64 Mhz 4xPLL Problem
Hi,
The ENC28J60 component does not support DHCP.
As Ben mentioned, you should be able to give it a static IP address outside of the range allocated by the DHCP server of the router.
e.g. if the DHCP range is 192.168.0.2 to 192.168.0.99 then give the ENC28J60 an IP address above that, such as 192.168.0.120
A web server at that address will then be visible from a PC on the same local subnet.
For it to be accessible from the WAN side of the router you will need to setup a port forward/mapping rule on the router.
Hope that helps,
Leigh
The ENC28J60 component does not support DHCP.
As Ben mentioned, you should be able to give it a static IP address outside of the range allocated by the DHCP server of the router.
e.g. if the DHCP range is 192.168.0.2 to 192.168.0.99 then give the ENC28J60 an IP address above that, such as 192.168.0.120
A web server at that address will then be visible from a PC on the same local subnet.
For it to be accessible from the WAN side of the router you will need to setup a port forward/mapping rule on the router.
Hope that helps,
Leigh