Web 51 Examples |
![]() ![]() ![]() |
To compile a project, run make from its directory by typing ..\..\bin\make.
To delete files that make has created, run ..\..\bin\make clean.
If the binutils directory is in your PATH, you can just type make. Similarly, a
Makefile is used to compile the libraries.
All of these examples are available for DOWNLOAD.
Ethernet controller "diagnostics". Sends ARP packets to the network. Transmission or receiving of a packet is indicated by blinking LED.
Allows for verification of CPU and Ethernet controller functionality with a scope.
This version does not respond to PING requests.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- www8051.asm - source, main module
Basic http server, no server-side CGI.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- index.html - html page in the CPU
- www8051.asm - source, main module
Basic http server, no server-side CGI. Some JavaScript added to change background color.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- index.html - html page in the CPU
- www8051.asm - source, main module
Basic http server, with server-side CGI. A cgi script lights up LEDs on the Web 51 board. Depending on their state, images of a shining or idle LEDs are embedded into the page. The LED examples are described in more detail in a separate chapter - Controling LEDs on the Web51 board.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- index.html - html page in the CPU
- www8051.asm - source, main module
- black.gif, red.gif, yellow.gif - images of turned-off, shining-red and shining-yellow LEDs
More complicated http server with server side CGI. First CGI polls LED status and inserts appropriate symbols into the page (* **). Second CGI processes data returned from the html form and sets LED states according to the results. The LED examples are described in more detail in a separate chapter - Controling LEDs on the Web51 board.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- index.html - html page in the CPU
- LEDsetup.asm - source of LEDsetup.cgi
- www8051.asm - source, main module
Yet more complicated http server with server-side CGI and a background process. First CGI polls LED status and inserts an appropriate symbol into the page (* **). Second CGI tests the status of background process control variables (off, flashing, on). Third CGI script processes data returned from the html form and sets control variables of the background process according to the results.
Background process is synchronized by a timer and according to its control variables turns the LEDs on and off. It also scans for button presses and changes LED modes accordingly. JavaScript is used to simplify client-side operation.
The LED examples are described in more detail in a separate chapter - Controling LEDs on the Web51 board.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- index.html - html page in the CPU
- LEDsetup.asm - source of LEDsetup.cgi
- testLED.asm - source of testLED.cgi
- www8051.asm - source, main module
Example application that transfers data from the serial line over TCP/IP. Uses a higher version of the library with compiled serial line, "telnet" client and HTTP server support.
The result is an ETHERNET to RS232 converter, configurable over a WWW interface, with complete TCP/IP implemented - see "Telnet" Setup example.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- config.html, index.html, setup.html - html pages stored in the CPU
- ipsetup.asm - source of ipsetup.cgi
- www8051.a51 - source, main module
Example application that measures temperature using a DS1620 chip. Temperature is displayed both as a number and as a graphic scale - see description of the DS1620 Thermometer.
- Makefile - controls building of the project
- ether - contains MAC address parameters
- ip - contains IP parameters, gateway, mask, ...
- temp.html - html page stored in the CPU
- blue.gif, redblue.gif, stupnice.gif, whblue.gif - images for the graphic scale
- www8051.asm - source, main module
Archives of the current version may contain more examples. All examples are included with the Web51 free development system package - DOWNLOAD.
Web51 description | News | FAQ | ORDER FORM | DOWNLOAD | Links |
![]() |
![]() |
![]() |
![]() |
(c)Copyright 2000 - 2002, HW server & Radek Benedikt
Web51@HW.cz, Web51.HW.cz |
![]() ![]() ![]() |