• AVR Freaks

Hot!PIC16F628 and Ethernet Controller

Page: < 12 Showing page 2 of 2
Author
RISC
Super Member
  • Total Posts : 5376
  • Reward points : 0
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/08/07 12:13:38 (permalink)
+2 (2)
Hi,
 
You can easily develop a simple PIC16 TCP/IP application using ENC28J60 if you use MCC plugin and TCP/IP lite library BUT....not with PIC16F628.
According to release notes it will run on all PIC16F1xxx and PIC16F1yyyy which have sufficient FLASH/RAM :
http://ww1.microchip.com/downloads/en/DeviceDoc/release_notes_TCPIPLite_library_v2_2_10.pdf
 
Regards
 
#21
katela
Super Member
  • Total Posts : 1330
  • Reward points : 0
  • Joined: 2013/06/11 05:25:18
  • Location: South Africa
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/08/07 14:02:13 (permalink)
+1 (1)
PIC16F628 FLASH/RAM is way too low for even TCP/IP lite before even considering to be supported by MCC.

Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
#22
naeem1234
Super Member
  • Total Posts : 450
  • Reward points : 0
  • Joined: 2015/02/19 06:39:28
  • Location: 0
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/08/08 00:00:42 (permalink)
0
Thanks for everyone's input.
 
If we put aside the MCP part for a moment and only consider ENC28J60 first.. Can you say a few sentences about ENC28J60 what it does how it does or any other information about it?
#23
katela
Super Member
  • Total Posts : 1330
  • Reward points : 0
  • Joined: 2013/06/11 05:25:18
  • Location: South Africa
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/08/08 04:33:14 (permalink)
+1 (1)
naeem1234
Can you say a few sentences about ENC28J60 what it does how it does or any other information about it?



All that info is in the datasheet.
 
 
malaugh
 
The ENC28J60 is not a full TCP-IP solution.  To send data through Ethernet, the data needs to go through a TCP-IP stack, then through a PHY, then out through the cable.  The ENC28J60 only provides the PHY function, the TCP-IP stack needs to be hosted on the CPU.   A TCP-IP stack is not a trivial piece of firmware, and the CPU you are planning on using is way to small to host a PCP-IP stack.


As malaugh explained to you in #12 The ENC28J60 will only provide you with the Physical layer of the OSI model.

Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
#24
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/08/08 05:25:36 (permalink)
0
osi what? grin !!

GENOVA :D :D ! GODO
#25
naeem1234
Super Member
  • Total Posts : 450
  • Reward points : 0
  • Joined: 2015/02/19 06:39:28
  • Location: 0
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/09/08 23:43:54 (permalink)
0
Thank you for everyone's input.
I am now considering PIC18F27K42 MCU instead of PIC16F628.
 
It has enough Flash (128 KB) and RAM (8 KB) to host TCP/IP stack and at the same time interface with the Ethernet Chip ENC28J60.
 
If I want to write my own basic interfacing file (.c, .h) for ENC28J60 chip then what would be the most important set of necessary functions in that file?
 
#26
David
Pic User
  • Total Posts : 1288
  • Reward points : 0
  • Joined: 2007/12/17 23:19:53
  • Location: uk sussex
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/09/09 00:26:40 (permalink)
0
wrong answer to wrong post

David
I support http://picforum.ric323.com because this forum is often too broken to use!
#27
naeem1234
Super Member
  • Total Posts : 450
  • Reward points : 0
  • Joined: 2015/02/19 06:39:28
  • Location: 0
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/09/09 02:34:11 (permalink)
0
David
wrong answer to wrong post




Which answer is wrong? I am waiting for any answer about the possible necessary functions for interfacing with the ENC chip. 
#28
qhb
Superb Member
  • Total Posts : 9998
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/09/09 02:36:09 (permalink)
0
I think he meant his own post was in the wrong thread, but he couldn't delete it.
 

Nearly there...
#29
RISC
Super Member
  • Total Posts : 5376
  • Reward points : 0
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/09/09 02:43:09 (permalink)
0
Hi,
 
ENC28J60 does not embed the TCP/IP stack. It only has ethernet PHY and MAC included.
So, even for the most simple (UDP) you'll need need to write / use the basic services of a TCP/IP stack :
IP protocole, UDP protocole, ARP protocole...etc...
If you want to do it by yourself, expect to spend some months.
The other alternative is to use TCP/IP lite from MCC on one of the supported MCUs (PIC16 / PIC).
This document explains very how much flash and RAM you'll need depending on which protocole your want to use :
http://ww1.microchip.com/downloads/en/DeviceDoc/release_notes_TCPIPLite_library_v2_2_11.pdf
 
If you want to use PIC18F27K42, it will definitely work because it has large RAM / large FLASH
For simple stack I suggest : ARP, DHCP, IP, UDP (first in the table of the document)
 
Regards
#30
katela
Super Member
  • Total Posts : 1330
  • Reward points : 0
  • Joined: 2013/06/11 05:25:18
  • Location: South Africa
  • Status: offline
Re: PIC16F628 and Ethernet Controller 2018/09/09 06:53:55 (permalink)
0
There is a TCP/IP Lite stack application note with MCC you can follow with some TCP and UDP server/clients examples.
post edited by katela - 2018/09/09 17:29:15

Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
#31
Page: < 12 Showing page 2 of 2
Jump to:
© 2019 APG vNext Commercial Version 4.5