Microchip
直播中

刘鑫

7年用户 168经验值
私信 关注
[问答]

怎么使用带有XC8的PIC1867J60上的TCP/IP

嗨,我现在有一个老的TCP/IP栈运行在PIC18F67 J60上,它的内部以太网硬件使用C18。我正在尝试升级到XC8,而在使用MCC来设置TCP/IP Lite堆栈时,我遇到了麻烦,我认为问题是我不知道从哪里开始使用MCC。有人知道使用TCP/IP Lite堆栈的一个示例项目吗?我可以看一下。或者有人知道一个示例项目,它在XC8上使用TCP在其内部以太网硬件上显示PIC18F67 J60。我已经广泛搜索了这些william hill官网 ,没有找到任何这样的例子。你呢

以上来自于百度翻译


      以下为原文

    Hi, I currently have the old TCP/IP stack running on a PIC18F67J60 with its internal ethernet hardware using C18.

I'm trying to upgrade to XC8, and I am having trouble using the MCC to setup the TCP/IP lite stack, and I think the problem is that I just don't know where to start with using MCC. Does anyone know of an example project using the TCP/IP lite stack that I could take a look at.

Or does anyone know of an example project that shows the PIC18F67J60 using TCP on its internal ethernet hardware on XC8.

I have searched these forums extensively, and have not found any examples of this.

Thank You

回帖(5)

周彦楠

2019-4-22 15:37:54
下面的链接提供了使用McC.HTP://www. McCHIP.COM/FUMMS/FUNDSPOT/968 699创建TCP/IP Lite项目的步骤。

以上来自于百度翻译


      以下为原文

    The link below provides steps to create a TCP/IP Lite project using MCC. 
 
http://www.microchip.com/forums/FindPost/968699
举报

余柳婵

2019-4-22 15:45:46
谢谢你把这封信寄来。不幸的是,我不能让它为我工作。你知道有没有一些教程专门说明如何获得PIC18F67 J60(或者任何其他内置以太网硬件的芯片)作为XC8中的TCP客户端或服务器?我已经看到了许多使用SPI的EnC模块的教程,但是没有内置的硬件。

以上来自于百度翻译


      以下为原文

    Thank you for sending this along. Unfortunately, I can't seem to get it to work for me. 
 
Do you know if there are any tutorials specifically showing how to get a PIC18F67J60 (or any other chip with built in Ethernet hardware) to act as a TCP client or server in XC8?
 
I have seen a number of tutorials using the ENC modules with SPI, but nothing with the built in hardware.
举报

王斌

2019-4-22 15:57:38
嗨,我按照上面的说明使用MCC V3.264为EXXXJ6X生成了一个Lite堆栈。我尝试从2015将生成的代码调整到ECHO服务器应用程序。应用程序完全不可用!有人曾经成功地使用MCC生成一个功能性的LITTCP/IP协议栈吗?如果有人给我指出一个类似于2015的新功能演示应用程序,我将不胜感激。谢谢,伊凡

以上来自于百度翻译


      以下为原文

    Hi,
 
I generated a Lite Stack for ETHxxJ6x using MCC v3.26.4 following the above instructions. I tried to adjust the generated code to the Echo Server Application from 2015.
The Application is completely non-functional!
 
Did anyone ever succeed to generate a functional Lite TCP/IP stack using MCC? I’ll appreciate if somebody points me to a new functional Demo Application similar to that one from 2015.
 
Thanks,
Ivan
举报

余柳婵

2019-4-22 16:16:33
这对我也不管用。我现在有一个关于这个话题的微芯片支持的案例。如果我学到任何新东西,我会把这篇文章更新到最新的。值得注意的一点是TCP/IP Lite没有正式支持PIC18F67 J60.AN1921有一个支持的硅产品列表:HTTP://www. McCHIP.COM//WavaPabeSe/AppNo.ASPX?APPNTENEn9340与PIC18F47 K40的Enc8J60大约是一个PIC18F67 J60的相同价格。因此,这可能是一个合理的尝试,但是,我还没有走向那个方向。如果你被限制在时间上,你可能想看看WiZNET W5500芯片。它们是非常了不起的,因为它们在飞机上实现了TCP协议栈,而且价格相对低廉。如果您的板空间允许,它们很容易与之连接。在W5500上实现TCP可以让您在所选择的处理器上节省大量的预算。ATMGA328 P或PIC18F26K40与W5500的网络接入是我正在试验的一条路线。

以上来自于百度翻译


      以下为原文

    It does not work for me either. I currently have a case open with Microchip support about this topic. I'll keep this post up to date if I learn anything new. One thing to be noted is that TCP/IP Lite does not officially support the PIC18f67j60. 
 
AN1921 has a list of supported silicon products: http://www.microchip.com//wwwAppNotes/AppNotes.aspx?appnote=en573940
 
The ENC28j60 with a PIC18f47k40 is about the same price as one PIC18f67j60. So that may be a reasonable route to try, however, I have not gone that direction yet.
 
If you're constrained on time, you may want to take a look at the Wiznet W5500 chips. They are pretty great since they implement the TCP stack onboard and are relatively inexpensive. If your board space allows, they are quite easy to interface with. Implementing TCP on the W5500 lets you save a good amount of your budget on the processor you choose. ATMega328p or PIC18f26k40 with the W5500 for network access is a route I'm experimenting with.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分