I have made many fixes to the previous W5200 driver, including fixing some bugs. It is mainly for MSP430F5438a, but should also work for MSP430 "5" or "6". I have divided the code into blocks according to their function. For example, WIZnet-related files are named starting with "W5200". Debug-related files start with "console".
Current features:
• Full support for TCP/UDP/ICMP and DHCP client
• Contains UDP/TCP sample code
• Ethernet performance test code
• Serial port debugging station, capable of running tests and displaying the status of all W5200 registers
• BSD certified code
The biggest change in the code is to support the relevant tests for MSP430. I did a packet loss test and used the WIZnet client to send as much data as possible at the fastest speed (sending 2048 bytes via TCP), and then I used the command line tool "trafshow" to test the transmission and data throughput. By the way, there are no other hosts in this network system.
The test results are very interesting. When the MSP430 main CPU clock frequency is 16MHz and the W5200 SCLK is also 16MHz, I can send 73,000 bytes of data per second. When I increase the MSP430 and W5200 clock frequencies to 25MHz, the W5200 SPI communication begins to become abnormal.
I'm not sure if this was because I was using a breadboard or something else. When I finally got the MSP430 clock rate to 25MHz and the W5200 to 12.5MHz, I was able to get 105,000 bytes per second. This was interesting - it told me that the MSP430 CPU was limiting the data rate in the first place, not the W5200 chip.
To use this code, you need to configure the hardware according to the config.h file. As shown in the figure above, I used the MSP-EXP430F5438, connected the serial port pins, set the baud rate to 115200Baud, and the data format to 8N1. Use Code Composer to load the code into the board. When you click Run, some useless data will be displayed on the screen at first. Click "?" and an option menu will appear, which will give all the option functions that these codes can achieve.
Example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
*** Info Commands ***
m - MCU info
v - software version
w - W5200 device info
W - W5
|
Previous article:Single chip Ethernet control chip W7100A data sheet (IV)
Next article:Single chip Ethernet embedded control chip--MCU-W7100A data sheet
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Very useful, a summary of RF dry goods (worth collecting)
- Work (II) Implementation of Linear and Nonlinear Signal Source Based on MCU + FPGA
- [GD32L233C-START Review] 5. Flash Read and Write - Using Internal Flash to Store Data
- Preliminary analysis of DSP functions 101103
- MOS tube packaging types and packaging and improvements of mainstream companies
- "Hello, DSP world" project example for DSP primary programming
- Boot Sector (Boot Block) in Nor Flash
- 【RPi PICO】MicroPython driving ws2812
- The 5 yuan multimeter has arrived
- A Simple Comparison of LoRa Technology and NB-IoT