MMnet02_en.pdf

(991 KB) Pobierz
M M n e t0 2
Ethernet Minimodule
User’s
Manual
R
REV 1.0
Many ideas one solution
924278887.471.png 924278887.482.png 924278887.493.png 924278887.504.png 924278887.001.png 924278887.012.png 924278887.023.png 924278887.034.png 924278887.045.png 924278887.056.png 924278887.067.png 924278887.078.png 924278887.089.png 924278887.100.png 924278887.110.png 924278887.121.png 924278887.132.png 924278887.143.png 924278887.154.png 924278887.165.png 924278887.176.png 924278887.187.png 924278887.198.png 924278887.209.png 924278887.220.png 924278887.231.png 924278887.242.png 924278887.253.png 924278887.264.png 924278887.275.png 924278887.286.png 924278887.297.png 924278887.308.png 924278887.319.png 924278887.330.png 924278887.341.png 924278887.352.png 924278887.363.png 924278887.374.png 924278887.385.png 924278887.396.png 924278887.407.png 924278887.418.png 924278887.429.png 924278887.440.png 924278887.451.png 924278887.462.png 924278887.464.png 924278887.465.png 924278887.466.png 924278887.467.png 924278887.468.png 924278887.469.png 924278887.470.png 924278887.472.png 924278887.473.png 924278887.474.png 924278887.475.png 924278887.476.png 924278887.477.png 924278887.478.png 924278887.479.png 924278887.480.png 924278887.481.png 924278887.483.png 924278887.484.png 924278887.485.png 924278887.486.png 924278887.487.png 924278887.488.png 924278887.489.png 924278887.490.png 924278887.491.png 924278887.492.png 924278887.494.png 924278887.495.png 924278887.496.png 924278887.497.png 924278887.498.png 924278887.499.png 924278887.500.png 924278887.501.png 924278887.502.png 924278887.503.png 924278887.505.png 924278887.506.png 924278887.507.png 924278887.508.png 924278887.509.png 924278887.510.png 924278887.511.png 924278887.512.png 924278887.513.png 924278887.514.png 924278887.002.png 924278887.003.png 924278887.004.png 924278887.005.png 924278887.006.png 924278887.007.png 924278887.008.png 924278887.009.png 924278887.010.png 924278887.011.png 924278887.013.png 924278887.014.png 924278887.015.png 924278887.016.png 924278887.017.png 924278887.018.png 924278887.019.png 924278887.020.png 924278887.021.png 924278887.022.png 924278887.024.png 924278887.025.png 924278887.026.png 924278887.027.png 924278887.028.png 924278887.029.png 924278887.030.png 924278887.031.png 924278887.032.png 924278887.033.png 924278887.035.png 924278887.036.png 924278887.037.png 924278887.038.png 924278887.039.png 924278887.040.png 924278887.041.png 924278887.042.png 924278887.043.png 924278887.044.png 924278887.046.png 924278887.047.png 924278887.048.png 924278887.049.png 924278887.050.png 924278887.051.png 924278887.052.png 924278887.053.png 924278887.054.png 924278887.055.png 924278887.057.png 924278887.058.png 924278887.059.png 924278887.060.png 924278887.061.png 924278887.062.png 924278887.063.png 924278887.064.png 924278887.065.png 924278887.066.png 924278887.068.png 924278887.069.png 924278887.070.png 924278887.071.png 924278887.072.png 924278887.073.png 924278887.074.png 924278887.075.png 924278887.076.png 924278887.077.png 924278887.079.png 924278887.080.png 924278887.081.png 924278887.082.png 924278887.083.png 924278887.084.png 924278887.085.png 924278887.086.png 924278887.087.png 924278887.088.png 924278887.090.png 924278887.091.png 924278887.092.png 924278887.093.png 924278887.094.png 924278887.095.png 924278887.096.png 924278887.097.png 924278887.098.png 924278887.099.png 924278887.101.png
 
Contents
1 INTRODUCTION ....................................................................................................................................... 3
A PPLICATIONS .............................................................................................................................................. 4
F EATURES .................................................................................................................................................... 4
2
CONSTRUCTION OF THE MODULE ............................................................................................... 5
B LOCK DIAGRAM .......................................................................................................................................... 5
M ODULE PIN - OUT ......................................................................................................................................... 6
AT MEGA 128 MICROCONTROLLER ............................................................................................................. 13
E THERNET CONTROLLER RTL8019AS ..................................................................................................... 13
M EMORY CONTROLLER .............................................................................................................................. 14
RAM MEMORY ........................................................................................................................................... 19
D ATA F LASH MEMORY ................................................................................................................................. 19
R EAL - TIME CLOCK ...................................................................................................................................... 20
S UPPLY OF POWER .................................................................................................................................... 20
RESET CIRCUIT ........................................................................................................................................ 20
LED DIODES ............................................................................................................................................... 21
3
CONNECTION OF THE MODULE WITH THE EXTERNAL WORLD ....................................... 22
C ONNECTION TO THE E THERNET NETWORK ............................................................................................. 22
RS-232 INTERFACE ................................................................................................................................... 23
RS-485 INTERFACE ................................................................................................................................... 23
USB INTERFACE ........................................................................................................................................ 24
R ADIO LINK ................................................................................................................................................. 24
LCD DISPLAY ............................................................................................................................................. 25
E XTERNAL PERIPHERALS ON THE SYSTEM BUS ......................................................................................... 26
4
PROGRAMMING THE MODULE ..................................................................................................... 27
ISP CONNECTOR ........................................................................................................................................ 27
JTAG CONNECTOR .................................................................................................................................... 29
5
AN APPLICATION EXAMPLE ......................................................................................................... 30
6
EVALUATION BOARD ...................................................................................................................... 31
7
SPECIFICATIONS .............................................................................................................................. 31
8
TECHNICAL ASSISTANCE ............................................................................................................. 32
9
GUARANTEE ...................................................................................................................................... 32
10
ASSEMBLY DRAWINGS .............................................................................................................. 32
11
DIMENSIONS .................................................................................................................................. 34
12
SCHEMATICS ................................................................................................................................. 34
1 Introduction
Thank you very much for having bought our minimodule MMnet02 . It was created with the idea of
facilitating the communication of microprocessor systems through the Internet/Ethernet networks.
The heart of the module is the RISC Atmega128 microcontroller with 128kB of program memory
and 128kB of (external) RAM memory, co-operating with the Ethernet RTL8019AS controller
(10BaseT). The memory controller built around a programmable CPLD device manages the
address space of the microcontroller, generates address strobe/selection signals used during
extension of the server by external I/O units, and serves the banking of RAM memory. The
minimodule has an 8 MB DataFlash serial memory for storage of WWW pages and of any files
e.g. with measurement data. The memory is connected to a fast SPI bus with 8 Mb/s transmission
speed. The MMnet02 has been equipped with a RTC clock built around the DS1307 device,
connected to the I2C bus. Together with the RTC circuit goes a socket for a lithium battery
providing many guaranteed years of uninterrupted clock operation.
MMnet02 operates under real-time control RTOS allowing to build applications with the use of
pseudo-concurrency in which different tasks are started and executed in the form of separate
threads. This permits an easy construction of applications which require parallel execution of
several tasks, for example servicing the TCP/IP stack and realizing the algorithm of control of an
industrial process. The RTOS system has an extended interface for handling peripheral
equipment, thanks to which the communication with them occurs via drivers registered in the
system. The system has drivers for the Ethernet controller, serial ports, the 1-Wire bus, the DS
1820 thermometer, LCD display RTC clock and DataFlash memory. The kernel of the RTOS
system and the TCP/IP stack together with implemented DHCP, UDP, ICMP, SMTP protocols and
HTTP with simple CGI-s were compiled to libraries.
The system incorporates a series of demonstration applications (WWW server, FTP, Telnet, TCP
client, TCP server, temperature monitoring and control, applications in the RTOS system) which
are basing on completed functions present in the IP stack and RTOS operating system libraries.
Attached libraries permit independent experiments (e.g. creation of web pages using the CGI
technique without penetrating the lower layers of the IP stack and the RTOS operating system).
The MMnet02 is delivered loaded with the WWW Server application and WWW demonstration
pages with examples of using CGI and Flash. The configuration of the server (MAC address, IP,
gateway, change of WWW page) can be effected remotely through serial RS232 or FTP ports.
Sources in C-language and ready libraries are attached to the server; they can be used to realize
one’s own projects. To modify and compile, the free C-compile GCC or C-compiler from
ImageCraft can be put into use.
We wish you nothing but success and a lot of satisfaction in designing and
developing new electronic equipment based on the MMnet02 minimodule.
3
924278887.102.png 924278887.103.png 924278887.104.png 924278887.105.png 924278887.106.png 924278887.107.png 924278887.108.png 924278887.109.png 924278887.111.png 924278887.112.png 924278887.113.png 924278887.114.png 924278887.115.png 924278887.116.png 924278887.117.png 924278887.118.png 924278887.119.png 924278887.120.png 924278887.122.png 924278887.123.png 924278887.124.png 924278887.125.png 924278887.126.png 924278887.127.png 924278887.128.png 924278887.129.png 924278887.130.png 924278887.131.png 924278887.133.png 924278887.134.png 924278887.135.png 924278887.136.png 924278887.137.png 924278887.138.png 924278887.139.png 924278887.140.png 924278887.141.png 924278887.142.png 924278887.144.png 924278887.145.png 924278887.146.png 924278887.147.png 924278887.148.png 924278887.149.png 924278887.150.png 924278887.151.png 924278887.152.png 924278887.153.png 924278887.155.png 924278887.156.png 924278887.157.png 924278887.158.png 924278887.159.png 924278887.160.png 924278887.161.png 924278887.162.png 924278887.163.png 924278887.164.png 924278887.166.png 924278887.167.png 924278887.168.png 924278887.169.png 924278887.170.png 924278887.171.png 924278887.172.png 924278887.173.png 924278887.174.png 924278887.175.png 924278887.177.png 924278887.178.png 924278887.179.png 924278887.180.png 924278887.181.png 924278887.182.png 924278887.183.png 924278887.184.png 924278887.185.png 924278887.186.png 924278887.188.png 924278887.189.png 924278887.190.png 924278887.191.png 924278887.192.png 924278887.193.png 924278887.194.png 924278887.195.png 924278887.196.png 924278887.197.png 924278887.199.png 924278887.200.png 924278887.201.png 924278887.202.png 924278887.203.png 924278887.204.png 924278887.205.png 924278887.206.png 924278887.207.png 924278887.208.png 924278887.210.png 924278887.211.png 924278887.212.png 924278887.213.png 924278887.214.png 924278887.215.png 924278887.216.png 924278887.217.png 924278887.218.png 924278887.219.png 924278887.221.png
Applications
The MMnet02 minimodule can be used as a design base for electronic circuits co-operating from the
Ethernet/Internet network, covering the following areas of interest:
·
Industrial remote controlling and monitoring systems
·
Telemetry
·
Intelligent buildings
·
Alarm systems
·
Weather stations and environment monitoring
·
Medical electronics
·
Heating and air-conditioning systems
·
Telecommunication
·
Road traffic monitoring
·
Remote data logging
·
Home automation
The MMnet02 minimodule can be also used in didactic workshops of information and electronic schools,
illustrating the aspects of co-operation of electronic circuits from the Ethernet/Internet network, as well as be
used to construct thesis circuits.
Features
·
Fast RISC microcontroller ATmega128 with up to 16 MIPS throughput
·
Ethernet controller IEEE 802.3 10Mb/s
·
128kB of in circuit programmable FLASH program memory
·
128KB of RAM memory
·
4kB of EEPROM memory
Serial DataFlash memory 32 or 64Mbit (4 or 8MBytes) (1)
·
·
Flexible memory controller, allowing suit address space to application requirements
I2C Real Time Clock and battery socket (1)
·
·
Reliable reset circuit
·
Crystal resonator 14.7456 or 16 MHz
·
Crystal resonators 32.768 Hz for RTC and MCU internal timer/counter
·
4 LED diodes indicating: power, LAN activity, DataFlash activity
·
Fully SMD made on 4-layer PCB
·
2 x 32 terminals with 0.1" (2.54mm) pitch fitting every prototype board
·
Available free operating system with TCP/IP stack supporting many protocols
·
Available evaluation board and sample applications
·
Small dimensions: 56mm x 43mm
Remarks: 1. Assembled in dependence on the MMnet02 version
4
924278887.222.png 924278887.223.png 924278887.224.png 924278887.225.png 924278887.226.png 924278887.227.png 924278887.228.png 924278887.229.png 924278887.230.png 924278887.232.png 924278887.233.png 924278887.234.png 924278887.235.png 924278887.236.png 924278887.237.png 924278887.238.png 924278887.239.png 924278887.240.png 924278887.241.png 924278887.243.png 924278887.244.png 924278887.245.png 924278887.246.png 924278887.247.png 924278887.248.png 924278887.249.png 924278887.250.png 924278887.251.png 924278887.252.png 924278887.254.png 924278887.255.png 924278887.256.png 924278887.257.png 924278887.258.png 924278887.259.png 924278887.260.png 924278887.261.png 924278887.262.png 924278887.263.png 924278887.265.png 924278887.266.png 924278887.267.png 924278887.268.png 924278887.269.png 924278887.270.png 924278887.271.png 924278887.272.png 924278887.273.png 924278887.274.png 924278887.276.png 924278887.277.png 924278887.278.png 924278887.279.png 924278887.280.png 924278887.281.png 924278887.282.png 924278887.283.png 924278887.284.png 924278887.285.png 924278887.287.png 924278887.288.png 924278887.289.png 924278887.290.png 924278887.291.png 924278887.292.png 924278887.293.png 924278887.294.png 924278887.295.png 924278887.296.png 924278887.298.png 924278887.299.png 924278887.300.png 924278887.301.png 924278887.302.png 924278887.303.png 924278887.304.png 924278887.305.png 924278887.306.png 924278887.307.png 924278887.309.png 924278887.310.png 924278887.311.png 924278887.312.png 924278887.313.png 924278887.314.png 924278887.315.png 924278887.316.png 924278887.317.png 924278887.318.png 924278887.320.png 924278887.321.png 924278887.322.png 924278887.323.png 924278887.324.png 924278887.325.png 924278887.326.png 924278887.327.png 924278887.328.png 924278887.329.png 924278887.331.png 924278887.332.png 924278887.333.png 924278887.334.png 924278887.335.png 924278887.336.png 924278887.337.png 924278887.338.png 924278887.339.png 924278887.340.png 924278887.342.png
2
Construction of the module
Block diagram
The block diagram of the MMnet02 minimodule is shown in the drawing:
Figure 1 Block diagram of the MMnet02 minimodule.
The minimodule is sold in three basic versions, denoted with letters from A to C, or in accordance with
individual orders.
Module MMnet02- A contains:
·
ATmega128 microcontroller
·
Ethernet controller RTL8019AS
·
128kB RAM
Module MMnet02- B contains:
·
ATmega128 microcontroller
·
Ethernet controller RTL8019AS
·
128kB RAM
·
One DataFlash 32Mb (4MB) memory
·
Real Time Clock with socket for lithium battery
Module MMnet02- C contains:
·
ATmega128 microcontroller
·
Ethernet controller RTL8019AS
·
128kB RAM
·
Two DataFlash memories with 64Mb (8MB) of total capacity
·
Real Time Clock with socket for lithium battery
5
924278887.343.png 924278887.344.png 924278887.345.png 924278887.346.png 924278887.347.png 924278887.348.png 924278887.349.png 924278887.350.png 924278887.351.png 924278887.353.png 924278887.354.png 924278887.355.png 924278887.356.png 924278887.357.png 924278887.358.png 924278887.359.png 924278887.360.png 924278887.361.png 924278887.362.png 924278887.364.png 924278887.365.png 924278887.366.png 924278887.367.png 924278887.368.png 924278887.369.png 924278887.370.png 924278887.371.png 924278887.372.png 924278887.373.png 924278887.375.png 924278887.376.png 924278887.377.png 924278887.378.png 924278887.379.png 924278887.380.png 924278887.381.png 924278887.382.png 924278887.383.png 924278887.384.png 924278887.386.png 924278887.387.png 924278887.388.png 924278887.389.png 924278887.390.png 924278887.391.png 924278887.392.png 924278887.393.png 924278887.394.png 924278887.395.png 924278887.397.png 924278887.398.png 924278887.399.png 924278887.400.png 924278887.401.png 924278887.402.png 924278887.403.png 924278887.404.png 924278887.405.png 924278887.406.png 924278887.408.png 924278887.409.png 924278887.410.png 924278887.411.png 924278887.412.png 924278887.413.png 924278887.414.png 924278887.415.png 924278887.416.png 924278887.417.png 924278887.419.png 924278887.420.png 924278887.421.png 924278887.422.png 924278887.423.png 924278887.424.png 924278887.425.png 924278887.426.png 924278887.427.png 924278887.428.png 924278887.430.png 924278887.431.png 924278887.432.png 924278887.433.png 924278887.434.png 924278887.435.png 924278887.436.png 924278887.437.png 924278887.438.png 924278887.439.png 924278887.441.png 924278887.442.png 924278887.443.png 924278887.444.png 924278887.445.png 924278887.446.png 924278887.447.png 924278887.448.png 924278887.449.png 924278887.450.png 924278887.452.png 924278887.453.png 924278887.454.png 924278887.455.png 924278887.456.png 924278887.457.png 924278887.458.png 924278887.459.png 924278887.460.png 924278887.461.png 924278887.463.png
Zgłoś jeśli naruszono regulamin