0% found this document useful (0 votes)
107 views18 pages

Lecture 7 Embedded Ethernet Controller

Uploaded by

thurai pandian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views18 pages

Lecture 7 Embedded Ethernet Controller

Uploaded by

thurai pandian
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Why Ethernet?

• Ethernet is the most widely deployed network in offices and industrial

buildings

• Ethernet’s infrastructure, interoperability and scalability ensure ease

of development

• Once equipment is connected to a Ethernet network, it can be

monitored or controlled through the Internet

• Low Latency – “Real Time” Remote Delivery

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 3

So why would you want to choose Ethernet?


1. Ethernet is the most widely deployed network in offices and industrial buildings. Thus
Ethernet is ubiquitous.
2. Ethernet is based on standards (IEEE802.3) that ensure reliability of network connections
and data transmission. This ensures interoperability
3. Ethernet networks are scalable from the simplest to most complex networks or up to
2^48 network nodes
4. Once equipment is connected to a Ethernet network, it can be monitored or controlled
through the Internet removing any distance barrier that may have inhibited remote
communication previously.

3
Networking with Ethernet

 Monitor, control or access devices over internet using Ethernet Controllers

Internet

Ethernet
Controller

Buffer Ethernet
PIC MCU

Local Bus Ethernet MAC

Ethernet PHY

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 4

Thus with our Ethernet portfolio we can cater to the market needs of embedded Ethernet. As
we see from the block diagram PIC MCU and Ethernet controller can make any device
connected to the world wide web.

Based on its ease of use, low cost, high bandwidth, stability, security, and compatibility
across devices, Ethernet has become the de facto standard of network access for 32-, 16-
and even 8-bit microcontrollers.

Thus it helps in monitor, control or access devices over internet.

4
Embedded Applications - Network Speeds

• 10 BaseT (10 Mbps)


• Target applications – low bandwidth
• Embedded applications behind switch or router

• 100 BaseT (100 Mbps)


• Low latency – “real time” delivery
• High bandwidth needs
• Voice over Ethernet
• Remote secure monitoring

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 9

The embedded Ethernet solutions are offered with 10 Base-T and 100 Base-T PHYs.

In 10Base-T the target applications only need to send a few bytes and don’t require high
bandwidth.
Also Embedded applications with Ethernet will typically be on a sub-network behind a
router. This prevents degrading the performance of the rest of the network.

Additionally, 100Base-T helps to reduce the latency associated with data packet
transmission and draw closer to real time delivery. Some example of high bandwidth
embedded applications that require 100Base-T bandwidth include VoIP Intercoms and
remote monitoring.

9
Ethernet Portfolio

-IEEE 802.3 compatible


-Integrated MAC and 10BASE-T PHY
-8 Kbyte Transmit/Receive SRAM
-Interface: SPI
-28 pin option

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 10

ENC28J60 is a stand alone Ethernet controller with MAC and 10 Base-T PHY. It has 8KB
of configurable transmit / receive buffer with SPI interface. It is world’s smallest Ethernet
controller being offered in 28 pins.

10
10
Ethernet Portfolio

-IEEE 802.3 compatible


-8-bit MCU Integrated MAC
and 10BASE-T PHY
-8 Kbyte Transmit/Receive
Buffer
-Flash of 128KB
-IEEE 802.3 compatible -64/80/100 pin options
-Integrated MAC and 10BASE-T PHY
-8 Kbyte Transmit/Receive SRAM
-Interface: SPI
-28 pin option

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 11

PIC18F97J60 is 8-bit MCU with integrated MAC and 10 Base-T PHY. The family has 9
variants with different flash sizes and IOs.

11
11
Ethernet Portfolio

-IEEE 802.3 compatible


-Integrated MAC and
10/100BASE-T PHY
-24 Kbyte Transmit/Receive
Buffer
-H/W Security Acceleration
-IEEE 802.3 compatible Engines
-8-bit MCU Integrated MAC -Pre-Programmed MAC
and 10BASE-T PHY -Interface: SPI and Parallel
-8 Kbyte Transmit/Receive -44/64 pin options
Buffer
-Flash of 128KB
-IEEE 802.3 compatible -64/80/100 pin options
-Integrated MAC and 10BASE-T PHY
-8 Kbyte Transmit/Receive SRAM
-Interface: SPI
-28 pin option

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 12

ENC624J600 is a stand alone Ethernet controller with pre programmed MAC and 10/100
Base-T PHY. It has 24KB of configurable transmit / receive buffer with SPI and flexible
parallel interface. The H/W security acceleration engines in the family differentiates itself
from other solutions.

12
12
Ethernet Portfolio

-Integrated 10/100 Mbit


Ethernet MAC
-Dedicated DMA interface for
direct access to the entire
system RAM
-IEEE 802.3 compatible -Industry standard RMII/MII
-Integrated MAC and interface to PHY
10/100BASE-T PHY -Pre-programmed MAC
-24 Kbyte Transmit/Receive -Flash of 512KB
Buffer -64/100 pin options
-H/W Security Acceleration
-IEEE 802.3 compatible Engines
-8-bit MCU Integrated MAC -Pre-Programmed MAC
and 10BASE-T PHY -Interface: SPI and Parallel
-8 Kbyte Transmit/Receive -44/64 pin options
Buffer
-Flash of 128KB
-IEEE 802.3 compatible -64/80/100 pin options
-Integrated MAC and 10BASE-T PHY
-8 Kbyte Transmit/Receive SRAM
-Interface: SPI
-28 pin option

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 13

The PIC32MX6xx is the latest entrant in the embedded Ethernet solutions portfolio. It
offers integrated 10/100 Mbit Ethernet MAC in 32-bit microcontrollers.

13
13
Comparison with Peers

ENC624J600 ENC28J60 PIC18F97J60 PIC32MX6xx

PIC + Ethernet - - Yes Yes


Integrated MAC Yes Yes Yes Yes
(Factory Pre-
Programmed)

Integrated PHY 10/100Base-T 10Base-T 10Base-T -

Tx/Rx Buffer (KB) 24 8 8 Configurable from


SRAM
Compliance Yes Yes Yes Yes
(IEEE802.3)

Interface SPI/Parallel SPI - -

H/W security Yes - - -

Pin / Package 44 – TQFP, QFN 28 - SPDIP, SSOP, 64 – TQFP 64 – QFN, TQFP


64 - TQFP SOIC, QFN 80- TQFP 100 - TQFP
100 - TQFP

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 14

This slide shows some of the key features available within the embedded Ethernet solutions.

14
14
ENC624J600

 Interface to PIC18,
PIC24, PIC32, and
dsPIC MCUs
 Serial and parallel
interfaces
 Free Microchip
TCP/IP stack
 Hardware
development tools

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 15

The device comes with an on-chip 100 Mbps Ethernet Physical Layer (PHY) and
Medium Access Controller (MAC), providing reliable packet-data
transmission/reception based on an industry-standard Ethernet protocol.

A total of 24 kilobytes of buffer is present on the device. The microcontroller can


configure how much of the 24KB is allocated to the receive hardware. The
unallocated space remains useful as a transmit buffer. This buffer memory provides
a flexible, reliable data-management system.

To reduce the processing requirements of the host controller, ENC624J600 devices


incorporate different cryptographic security engines. These security engines perform
the types of encryptions, decryptions and mathematical computations that are most
commonly used for network security functions. They accelerate the computation of
public/private key pair negotiations, message hash authentication and bulk data
encryption.

One of the quite unique features for this Ethernet controller is that it interfaces to
the host MCU with either SPI or flexible parallel interfaces.

15
15
ENC624J600

• Operational Features • Ethernet Controller Features


• Operating voltage 3.0 to 3.6V • IEEE 802.3 complaint
• 24 KB Ethernet Buffer
• Integrated MAC and single port 10/100 Base-T
• Flexible 8- or 16-bit Parallel Interface PHY
• Package options
• SPI interface with clock speeds up to 20Mbps
• 44-pin TQFP and QFN
• MAC
• 64-pin TQFP
• Supports unicast, multicast and broadcast
• Hardware Security Engines
packets
• RSA® and Diffie-Hellman Key Exchange
• Programmable receive packet filtering
Algorithms
• PHY
• AES Encrypt/Decrypt with up to 256 bit
• Loopback mode
key
• Energy Detect power down mode
• Fast MD5 hash computations
• Fast SHA-1 hash computations
© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 16

ENC624J600 standalone, IEEE 802.3™ compliant, 100 Mbps are Ethernet interface
controllers. These Ethernet controllers combine a 10/100Base-TX physical interface
(PHY) and a Media Access Controller (MAC) with a hardware cryptographic
security engine, and can connect to any PIC® microcontroller via an industry-
standard Serial Peripheral Interface (SPI) or a flexible parallel interface.
Additionally, each device has a unique, factory-preprogrammed MAC address and
24 Kbytes of configurable SRAM for packet transmit/receive buffering and data
storage. This combination of speed, flexibility and features enables designers to
create fast, secure network- and Internet-connected embedded applications with
minimized board space, cost and complexity.

16
16
ENC28J60

MCU

PIC18
PIC24 TX/RX Buffer MAC PHY

SPI
PIC32
dsPIC®
DSC
10 Mbps Ethernet

ENC28J60

• Interface to PIC18, PIC24, PIC32, and dsPIC MCUs


• Serial interface
• Free Microchip TCP/IP stack
• Hardware development tools
© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 17

•The device comes with an on-chip 10 Mbps Ethernet Physical Layer Device (PHY)
and Medium Access Controller (MAC), providing reliable packet-data
transmission/reception based on an industry-standard Ethernet protocol. The PHY
contains analog circuitry to encode and decode the data on the twisted pair interface
while the MAC contains digital circuitry to control when to transmit, handle
automatic retransmission when a collision occurs, and do other necessary tasks.

•A total of 8 kilobytes of RAM is present on the device. The microcontroller can


configure how much of the 8KB is allocated to the receive hardware. The
unallocated space remains useful as a transmit buffer offering flexible, reliable data-
management system.

It interfaces to the host MCU over an Serial peripheral interface. Thus with only 4
wires, a MCU can be network enabled.

17
17
17
ENC28J60

• Operational Features • Ethernet Controller Features


• Operating voltage 3.1 to 3.6V • IEEE 802.3 complaint

• 5V tolerant inputs • Integrated MAC and 10 Base-T (10 Mbps) PHY

• 8 KB Ethernet Buffer • SPI interface with clock speeds up to 20MHz

• Package options • MAC

• 28-pin SPDIP, SSOP, SOIC and QFN • Supports unicast, multicast and broadcast
packets
• 25 MHz Clock input requirement
• Programmable receive packet filtering
• Clock out pin with programmable
• PHY
prescaler • Loopback mode
• Two programmable LEDS for link, TX/RX activity,
collision and half/full duplex status

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 18

-IEEE 802.3 compatible Ethernet Controller


-Integrated MAC and 10BASE-T PHY
-8 Kbyte Transmit/Receive Packet Buffer SRAM
-Supports One 10Base-T Port with Automatic Polarity Detection and Correction

18
18
18
PIC18F97J60

64 - 128 KB 4 KB 8 KB
Ethernet
Flash RAM buffer A/D, 10-bit, 11-16 ch.

Comparators - 2
Memory Bus
Watchdog

Peripheral Bus
Interrupt
10 MIPS 8-bit Core Control 2- CCP, 3- ECCP
PIC18F Core
41.67MHz, 10.4 MIPSFile
Register 8/16-Bit Timers – 2/3
8-bit ALU
2.0 to 3.6V16 bit
UART - 2 - 2
EUSART
Address
Register File
8-bit
8 x 8ALU
MPY
Generation
8 bit MSSPSPI - 2I²C™) - 2
(SPI/
2MB Address
8 x 8 MPY External Memory Bus
Barrel ShifterSpace
Ethernet Controller
High Performance Flash Microcontroller with Ethernet PSP

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 19

The single chip solution features 8-bit microcontroller and Ethernet MAC and PHY
on a single chip.
This eliminates the need for a separate interface controller which, as previously
mentioned can be complex and costly. So with this solution, only the interface for
the transmit and receive packets on twisted pairs have to be considered.

19
19
19
PIC18F97J60

• Features • Peripherals
• Operating voltage 2.35 to 3.6V • 2 x CCP and 3 x ECCP
• 3.1V to 3.6 V for the Ethernet module • MSSP (SPI/I²C™) - 2
• 2.5V on-chip regulator • 1 to 2 x EUSART

• Flash Program Memory • Up to 16 ch. x 10-bit A/D

• 64, 96 and 128 KB • 2 x 8-bit, 3 x 16-bit timers


• On-chip IEEE 802.3 compatible Ethernet
• 4 KB SRAM
controller
• 8 KB Ethernet Buffer
• Integrated MAC and 10-Base T PHY
• 10.4 MIPS, 41.67 MHz performance • PSP
• Package options • External memory bus (100 pin devices only)
• 64-, 80- and 100-pin TQFP • Up to 2 MB
• 8-, 16- and 20- bit addressing modes
• 2 x comparators with input multiplexing

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 20

-IEEE 802.3 compatible Ethernet Controller


-Integrated MAC and 10BASE-T PHY
-8 Kbyte Transmit/Receive Packet Buffer SRAM
-Supports One 10Base-T Port with Automatic Polarity Detection and Correction

20
20
20
PIC32 Ethernet MAC Controllers

• 10/100 802.3 Ethernet MAC


• Full and Half Duplex operation
• Configurable packet filtering
• Configurable interrupts
• Manual and Automatic flow control
• Packet payload checksum
• Integrated DMA channels for Tx and Rx
• RX Filter (RXF)
• Industry standard MII or RMII Interface to external PHY
• Uses main SRAM for buffers

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 21

PIC32MX6 and MX7 series of microcontrollers supports 10/100 Ethernet MAC. The
Ethernet controller is a bus master module that interfaces with off chip Physical Layer
(PHY) to implement a complete Ethernet node in a system.

The industry standard MII and RMII interfaces enables seamless connection to commodity
PHYs. Dedicated 2 channel DMA controller supports packet scatter/gather for outstanding
low-CPU-overhead performance at full 100Mbps.

21
21
TCP/IP Stack

• C source code provided


• Free; No-fee license agreement
• Separate driver available for Standalone Controllers
• Download: www.microchip.com/tcpip
• Can be implemented on any PIC MCU - PIC18, PIC24, PIC32, and
dsPIC DSC
• Suite of files
• ‘C’ source code
• PC based utilities
• Example projects
• Standard Microchip technical support
• Useful for Wired and Wireless solutions

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 22

Communication over the Internet is accomplished by implementing the TCP/IP protocol.


Microchip offers a free TCP/IP software stack that is optimized for the 8-, 16-, 32-bit MCU
and dsPIC device families. The stack is a suite of programs that provide services to all
TCP/IP based applications. Users do not need to know all the intricacies of the TCP/IP
specifications in order to use the stack. The stack is proven in the industry, and can be
downloaded from Microchip’s website.

22
22
Development Tools – Daughter Boards

Fast 100Mbps Ethernet PICtail Plus Daughter Board


(AC164132)
-RJ-45 Ethernet Connector
-ENC624J600 10/100 Base-T Ethernet
-Connects with Explorer 16 and PIC18 Explorer boards

PICtail Ethernet Board (AC164121)


- RJ-45 Ethernet Connector
-ENC28J60 10 Base-T Ethernet
-Connects with PIC18 Explorer board

Ethernet PICtail Plus Daughter Board (AC164123)


- RJ-45 Ethernet Connector
-ENC28J60 10 Base-T Ethernet
- Connects with Explorer 16 board

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 23

Fast 100Mbps Ethernet PICtail Plus Daughter Board


The Fast 100 Mbps Ethernet PICtail™ Plus Daughter Board (AC164132) is an Ethernet
demonstration board for evaluating Microchip Technology’s ENC624J600 and
ENC424J600 stand-alone 10/100 Base-T Ethernet controllers. It is an expansion board
compatible with many PICtail and PICtail Plus host boards, including the Explorer 16,
PIC32 I/O Expansion Board, PICDEM.net™ 2 and PIC18 Explorer development boards.
PICtail Ethernet Board
The Ethernet PICtail™ Daughter Board is an Ethernet demonstration board for evaluating
Microchip Technology's ENC28J60 stand-alone 10 Base-T Ethernet controller. It is an
expansion board compatible with a number of PICDEM™ demonstration boards. A
complete list of compatible PICDEM demonstration boards is available on Microchip's web
site.
Ethernet PICtail Plus Daughter Board
The Ethernet PICtail™ Plus Daughter Board is an Ethernet demonstration board for
evaluating Microchip Technology's ENC28J60 stand-alone 10Base-T Ethernet controller. It
is an expansion board compatible with the Explorer 16 development board.

23
23
Development Tools – Ethernet Development
Boards

PICDEM.net 2 Development Board (DM163024)


-Internet / Ethernet development board
- Supports ENC28J60 and PIC18F97J60
- Preprogrammed firmware

PIC32 Ethernet Starter Kit (DM320004)


- Supports PIC32MX795F512L 32-bit microcontroller
- On-board programmer/debugger
- RJ-45 Ethernet port

© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 24

Using PICDEM.net 2 Development Board and Microchip’s free TCP/IP source code,
developers can experiment with the preprogrammed Microchip TCP/IP demo application
and learn how to integrate connectivity into their applications. The preprogrammed
firmware allows users to begin evaluating the board right out of the box with no additional
programming or configuration.

The PIC32 Ethernet Starter Kit contains everything needed to begin Ethernet networking
applications using the high performance PIC32 microcontroller family. It provides the
easiest and lowest cost method to experience 10/100 Ethernet development with PIC32.
Combined with Microchip's free TCP/IP software, the project will run in no time. The
PIC32 also has peripherals available as CAN2.0b and USB host/device/OTG.

24
24

You might also like