STM32以太网方案介绍

  • 格式:pdf
  • 大小:932.95 KB
  • 文档页数:25
Ethernet
DMA FIFO FIFO TX RX
IEEE 1588 MAC 802.3
MII / RMII MDC / MDIO
STM32F107
STM32 全国研讨会 14-25/09/2009
3
AHB Bus
PHY
Wake up event
Precision Time Protocol (IEEE1588) : What is it • It is a protocol designed to synchronize real-time clocks of the devices of a network • Synchronization is done with the most accurate clock found in a packet-based network: called the Grand Master Clock. • Accuracy is Sub-µsecond
– Media Independent Interface (MII) – Reduced Media Independent Interface (RMII)
• Integrated DMA controller • Hardware support of IEEE 1588 • Ethernet wakeup event
STM32 Connectivity Line
Ethernet & TCP/IP introduction
2009年STM32 全国研讨会
北京、深圳、上海、台北、 青岛、重庆、南京、哈尔滨、 武汉、福州、西安
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples
C
Telnet rt 2 3
u ks ec h
TCP
Po
I want Telnet a terminal connection.
C u ks ec h m
Files Transfer
Network Management
C u ks ec h
TFTP 9 P o rt 6
C u ks ec h
UDP
I want to TFTP transfer files. I want to FTP transfer files
STM32 全国研讨会 14-25/09/2009
2
The STM32F107 MAC block diagram
• Configurable and flexible MAC 802.3 • Support two industry standard interfaces for the PHY
Click on the “letter” to get a detailed description
STM32 全国研讨会 14-25/09/2009
9
TCP-IP : Key Protocols
Transport Layer
u ks ec h
C
F F.FF.F F.FF.F FF.F
ARP
m
net Ether
TCP
I want HTTP this resource.
C
SMTP 5 P o rt 2
m
TCP
I want to SMTP send an email
Login : _
Terminal connection
m
POP3 10 Port 1
C u ks ec h
TCP
I want to POP3 get my emails.
TCP
UDP
C
u ks ec h
UDP
m
IP
dress IP Ad
Internet Layer
C
u ks ec h
TCP
m
IP
dress IP ad
I want to TCP send data in a reliable way on the port #
IP
Datalink Layer
Ethernet STM32F107 PHY
TCP-IP : Key Protocols
um
s ck he C
ddre M AC A
IP
E
et thern ss
IP I want to send data to 127.127.127.127
UDP I want to send a datagram on the port #
Transport Layer
STM32 全国研讨会 14-25/09/2009
14
NicheLite from Interniche Free Package from ST Source code available
Webserver Demo Domain Names Configuration
HTTP demo
TCP / UDP demo
email Other Domain Names
Application Layer
Configuration
SMTP
POP3
Telnet
DNS (c)
WWW
File Transfer
Network mgt
BOOTP DHCP (c)
HTTP
FTP
TFTP
SNMP
Email
TCP
UDP
Transport Layer Internet Layer Datalink Layer
• Intra & InteБайду номын сангаас-Network communication • no guaranty of delivery • Intra-Network communication • Transport data on the physical support
STM32 全国研讨会 14-25/09/2009
DNS (c)
DHCP (c) BOOTP
File Transfer
TCP client / server demo
UDP client / server demo TCP ICMP
TFTP UDP IP
Included Optional Demos
Other solutions
Others
Nichetool
ARP Ethernet
STM32F107 PHY
15
STM32 全国研讨会 14-25/09/2009
NicheLite from Interniche Free Package from ST Source code available
Domain Names
See Application Note DNS (c) DHCP (c) HTTP demo AN3000 on our website BOOTP UDP TCP description for a detailedclient / serverclient / demo server demo TFTP of the Package
ARP Who knows 127.127.127.127’s MAC address?
TCP
UDP
ICMP s dd r e s
C su ck he m
IP
IP A
ICMP I send or receive queries or error messages
Internet Layer PING ICMP 127.127.127.127
IP
ARP
Ethernet
Datalink Layer
STM32F107 PHY
11
STM32 全国研讨会 14-25/09/2009
Application layer protocols
World Wide Web
su ck he m
Email
HTTP 0 P o rt 8
C u ks ec h m
TCP-IP : A layered protocol stack Application • The main interface for the user. • Higher level protocols Layer Transport • End-to-end connections (UDP and TCP) • Ensure reliability (TCP) Layer Internet Layer Data link Layer
8
b Port N
Ch
su ck e
m
IP
ress IP Add
um ks c he C
ET H ER N ET
ress C Add MA
IP Header Ethernet Header IP Header
UDP Header UDP Header
STM32 全国研讨会 14-25/09/2009
Detailed PTP description
09:00 09:10
09:00 09:01
09:00 Grand Master Clock 09:00
09:00 09:05
09:00 09:30
STM32 全国研讨会 14-25/09/2009
4
Content STM32F107 Ethernet Generic information about TCP-IP Nichelite TCP-IP Stack Application Examples