Lecture 7 Embedded Ethernet Controller
Lecture 7 Embedded Ethernet Controller
buildings
of development
© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 3
3
Networking with Ethernet
Internet
Ethernet
Controller
Buffer Ethernet
PIC MCU
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.
4
Embedded Applications - Network Speeds
© 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
© 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
© 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
© 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
© 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
© 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.
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
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
•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.
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
• 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
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
© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 20
20
20
20
PIC32 Ethernet MAC Controllers
© 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
© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 22
22
22
Development Tools – Daughter Boards
© 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 23
23
23
Development Tools – Ethernet Development
Boards
© 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