Introduction Thank you very much for having bought our minimodule MMnet102. 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 LAN91C111 controller (100BaseTX).
Applications The MMnet102 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 •...
2 Construction of the module Block diagram The block diagram of the MMnet102 minimodule is shown in the drawing: memory controller PORTE 128kB RAM LAN91C111 ATmega128 PORTF EEPROM PORTB PORTD DataFlash 1 DataFlash 2 16MHz 32kHz 32kHz Batt Figure 1 Block diagram of the MMnet102 minimodule.
Individual orders coding: MMnet102 – r – b – f – x – e 0 - without LAN91C111 0 – without RTC 0 - without DataFlash memory 1 - with LAN91C111 1 - RTC DS1307 1 - 32Mb DataFlash 2 - 2x32Mb DataFlash 0 –...
Page 7
Name Name Function in MMnet102 Function in MMnet102 SEL2 SEL1 Interrupt from PE7/ INT7 PE6/ INT6 LAN91C111 (optionally) Interrupt from PE5/ INT5 PE4/ INT4 LAN91C111 PE3/ AC- PE2/ AC+ PE1/ PDO/TxD PE0/ PDI/RxD PF7/ ADC7/TDI PF6/ ADC6/TDO PF5/ ADC5/TMS PF4/ ADC4/TCK...
Page 8
Function Alt. function Description Data bus. Allows connecting externals peripherals mapped in microcontroller address space. Peripheral addressing is done with use of SEL1, SEL2 and/or A0, A1, #WR, #RD outputs. Lowest two bits of address bus. Allows addressing 4 input and 4 output registers.
Page 9
PE1 – general purpose digital I/O Alternative functions: PDO – SPI Serial Programming Data Output. During Serial PDO/TxD Program Downloading, this pin is used as data output line for the ATmega128. TXD0 – UART0 Transmit pin. PE0 – general purpose digital I/O Alternative functions: PDI –...
Page 10
Function Alt. function Description Power supply input +5V Ground Output of +3.3V voltage from internal regulator. Can be used to +3.3V power external peripherals, which requires +3.3V. Ground Battery voltage sustaining the operation of the RTC clock. If a battery is mounted on the module, this lead-out can be used as a Vbat source of power for peripherals external to the module.
Page 11
PD1 – general purpose digital I/O Alternative functions: INT1 – External Interrupt source 1. The PD1 pin can serve as an external interrupt source to the MCU. SDA – Two-wire Serial Interface Data: When the TWEN bit in #INT1/SDA TWCR is set (one) to enable the Two-wire Serial Interface, pin PD1 is disconnected from the port and becomes the Serial Data I/O pin for the Two-wire Serial Interface.
Page 12
PB2 – general purpose digital I/O Alternative functions: MOSI – SPI Master Data output, Slave Data input for SPI channel. When the SPI is enabled as a slave, this pin is MOSI configured as an input regardless of the setting of DDB2. When the SPI is enabled as a master, the data direction of this pin is controlled by DDB2.
The address space of the microcontroller under the addresses 0xFF00 to 0xFFFF contains an area reserved for MMnet102. It has two registers: a configuration and bank select registers, an area for the peripherals controlled by the SEL outputs and an area for the Ethernet controller.
Page 15
The MMnet102_BANKSR register contained under the address 0xFF00 is used for the choice of an active RAM memory bank. The contents of this register have a meaning only when mode 1 of the memory controller is chosen. The register has only four lowest bits, during readout the remaining bits (4 – 7) have the value „0” and the value written into them has no meaning.
Page 16
In this mode the external RAM memory and the Ethernet controller are not accessible. SEL outputs operate normally. Memory maps for modes 1..3 are shown in the picture below: FFFF FFFF FFFF MMnet102 MMnet102 MMnet102 FF00 FF00 FF00 FEFF FEFF...
Page 17
Mode SEL2CFG1..0 Description Write strobe. A pulse is generated at the moment of writing under the address 0xFF08 – 0xFF0B. Pulse polarization is set by the SEL2POL bit. Read strobe. A pulse is generated at the moment of reading under the address 0xFF08 –...
Page 18
0xFF04-0xFF07 - SEL1 ADDR 0xFF08-0xFF0B - SEL2 SELx Figure 5 Operation of SEL output as read strobe (SELxCFG1..0=01) with active low level (SELxPOL = 0). 0xFF04-0xFF07 - SEL1 ADDR 0xFF08-0xFF0B - SEL2 SELx Figure 6 Operation of SEL output as read strobe (SELxCFG1..0=01) with active high level (SELxPOL = 1). 0xFF04-0xFF07 - SEL1 ADDR 0xFF08-0xFF0B - SEL2...
0xFF04-0xFF07 - SEL1 ADDR 0xFF08-0xFF0B - SEL2 SELx Figure 8 Operation of SEL output as address decoder (SELxCFG1..0=10) with active high level (SELxPOL = 1). RAM memory As a standard, the minimodule is equipped with a 128kB RAM memory. Because this is more than the ATmega128 microcontroller is able to address, it is necessary to bank the memory.
It is also led out externally to be used by other system elements. RESET circuit The MMnet102 has a built-in voltage monitoring circuit constructed around the DS1811 integrated circuit. The circuit generates a RESET signal in case when the supply voltage value is lower than 4.6 V. This takes place when the supply voltage is switched on or off, when the VCC voltage changes its value from 0 to 5 V.
J1_32 J2_32 AGND MMnet102 module Figure 12 Connection of external signaling diodes and the RESET button. Notice: the method of operation of diodes signaling the work of the Ethernet controller depends on the settings of its internal registers. The default configuration assures operation in accordance with the description on the module (LINK and ACT).
3 Connection of the module with the external world Connection to the Ethernet network Connection of the module to the Ethernet can be realized in two ways: through a separating transformer (e.g. 20F001N from YCL) and the RJ45 socket or by using the socket integrated with the transformer (e.g. LF1S022 of Bothhand Company).
The 120R resistor connected by means of a shorting strap is used to match the interface to the line impedance. 560R 120R PE0(RxD0) lub PD2(RxD1) PE1(TxD0) lub PD3(TxD1) 560R MAX485 Figure 16 Connection of the RS-485 port to the MMnet102.
The drawing below presents a way of equipping the MMnet102 module with an USB interface, using the MMusb232 module. After installing VCP drivers, such an interface is seen in the system as a virtual COM port, thus its software on the PC should surely provide no problems.
Additional information on the MMcc1000 module can be found on the page: http://www.propox.com/products/t_92.html?lang=en LCD display The LCD display can be connected to the minimodule in several ways. The simplest of them is to use 7 I/O lines of the microcontroller and generating the necessary pulses by the program. Such a solution is shown in the figure below.
External peripherals on the system bus External peripherals can be connected in a simple way to the module, thanks to the fact that the data bus, two bits of the address bus and universal SELx outputs were put out of the module. In the simplest case the SEL outputs will be used directly as the write/read strobe which will allow to locate two registers in the address space, without using additional address decoders.
Caution: The SPI interface used for programming the processor is not the same interface which is available to the user for communication with peripherals and it uses other outputs. Programmers which can be used to program the MMnet102 can be found on the following pages: - ISPCable I: http://www.propox.com/products/t_77.html?lang=en...
- JTAGCable I : http://www.propox.com/products/t_99.html?lang=en 5 An application example The diagram below shows the MMnet102 module in a simple application, controlling relays through the Ethernet network (e.g. surfing the WWW). The diagram does not include the supply of power. RJ45 Int. Mag.
6 Evaluation Board In order to facilitate the design of equipment using the minimodule, an evaluation board has been prepared (EVBnet102). It includes the following basic elements: • Power supply (supplying power is taken from a standard socket or supplied through the Ethernet cable) •...
9 Guarantee The MMnet102 minimodule is covered by a six-month guarantee. All faults and defects not caused by the user will be removed at the Producer’s cost. Transportation costs are borne by the buyer.
Need help?
Do you have a question about the MMnet102 and is the answer not in the manual?
Questions and answers