Home
MMnet02 User Manual
Contents
1. 31 8 TECHNICAL ASSISTANCE 25054555555 eia xo EC On een PK 32 9 GUARANTEE 65 i bu a hea Dv ORE 32 10 ASSEMBLY DRAWINGS 25 32 11 DIMENSIONS 34 DE e Hs ge sites 34 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
2. oO 2 e 2200mils 55 88 Figure 30 Dimensions top view 3 2mm bez boteri 9mm 2 bateria 1 6mm 2 54mm 4mm Figure 31 Dimensions side view 12 Schematics ion CPU RAM DataFlash RTC alls 8 ul iE 8 40 lt lt lt lt lt lt lt lt Al 20 A2 Al A3 FIRAR mmm A2 A4 5 Aa 35225558 AS A Satna 6 SEBEEEE m A10 33 25 RANCAIA PAQ AD2 PDI T2 32 lt PDT 22 RAM AI A12 PAL ADI PD6 T1 PD6 RAM AL PAO ADO PDS PDS H S L A14 vec PDAACI 52 PD4 ALS GND PDS INTS TXDI 53 PD3 16 PF7 ADC7 PD2 INT2RxD 1 27 7 SEANC SEE 17 PF6 ADC6 PDI ANTTSDA 26
3. IM S en PFS ADCS 1H PDO INTOSCL 54 PDO AV SH SRAM SEL gt CS im PF4 ADC4 XTALI 55 x2 35 S 00 PF3 ADC3 XIAD 23 4 2 OE vec PF2 ADC2 Hi GND 16 Pi WR WE GND PFI ADCI vec 45V PFO ADCO RESET 2 reser 6 2 TDI m 19 cl c2 24 K6T2008 AREF Hy 22 5 AGND zm TOSQ H 4 iw TCK 999 AVCC 222 PBVOCPWM2 ab 3 5565 3 a E A pad sk Xc956xLvoas U4 DataFlshl US DataFlsh2 20524 32768 KHz ER 1 7 SSS ESE 558506 emer is vcc 433v is vcc 433V 52242502225259 PBZ 2 51 PB2 gt 42 si Egsudninshzussiss 14 50 RDYBSY 7 PB3 141 50 RDY BSY 5 PBI ity SCK RESET 2 PBI 1 sck RESET 2 PBS Cs WP PB6 Cs WP DI 114148 ap 18 18 AT45DB321B ATASDB321B dx BV Eh D2 114148 Di DF Di LTD DP 45V 45V RIA RIS AT AKT n T 102 AD6 45V 1 2 GND 5 A ADS 4 AD4 433V 4 GND PDI gt spa Haw 5 6 2 Vbat 5 6 GND m PDO S SCL Vbat 3 lt Voat ADI 7 8 ADO 7 8 TPIN zh H SQW xH AI 9 10 0 TPOUTS 9 10 TPOUT vec XI SEL2 1112 SELI LINK 1112 LED_ACTIV PET 13 14 13 14 D DF D81307 PES 15 16 PEA WR 15 16 RD BY We d PES 17 18 PDT 17 18 PD6 vec 32768 KHz GND PEI 19 20 PED PDS 19 20 PD4 4 RST 21 22 ADCS PD3 21 2
4. the 02 BANKSR register The drawings below illustrate the operation of output SEL during writing or reading operation OxFRO4 OxFFQ7 SEL1 OxFF08 OxHOB SEL2 DA P c SELx Figure 3 Operation of SEL output as write strobe SELxCFG1 0 00 with active low level SELxPOL 0 ADDR X OxFRO4 OxFFQ7 SEL1 OxHP08 OxFPOB SEL2 7 SELx Figure 4 Operation of SEL output as write strobe SELxCFG1 0 00 with active high level SELxPOL 1 ADDR X 17 Many ideas one solution RD SELx Figure 5 Operation of SEL output as read strobe SELxCFGI 0201 with active low level SELxPOL 0 0 SEL1 ADDR 5 OxFFOS OxFFOB SEL2 Figure 6 Operation of SEL output as read strobe SELxCFG1 0 01 with active high level SELxPOL 1 4 SEL1 8 SEL2 SELx N Figure 7 Operation of SEL output as address decoder SELXCFG1 0 10 with active low level SELxPOL 0 ADDR X 18 55 Many ideas one solution OxFFOL OXFEO7 SELI ADDR X OxFF08 0xFFOB SEL2 x 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 128 RAM memory Because this is more than the 128 microcon
5. OE vec 20 DIR GND 74 245 Figure 20 example of using SEL output and write read strobe The configuration and write read methods of registers such connected looks like this MMnet02_CONF 0b00100001 SEL2 read strobe active low SEL1 write strobe active high memory decoder mode 1 MMnet02_SEL1 output_value write to output register input_value MMnet02_SEL2 read from input register If a greater number of external I O circuits are required the SEL terminals can be used as address selection outputs After connecting additional address decoders e g 74HCT138 the number of registers possible to be addressed is increased to 4 output and 4 input registers The configuration and write read of registers may look like this net02 CONF 0000100001 SEL2 address decoder active low SEL1 address decoder active low memory decoder mode 1 net02 SEL1 0 output value 0 write to output register 0 net02 SEL1 1 output value 1 write to output register 1 net02 SEL1 2 output value 2 write to output register 2 net02 SEL1 3 output value 3 write to output register 3 55 Many ideas one solution 26 11 input value O0 MMnet02 SEL2 0 read from input register 11 input value 1 MMnet02 SEL2 1 read from input register 11 input_value_2 MMnet02 SEL2 2 read from
6. 0 00 Write strobe A pulse is generated at the moment of writing under the address OxFF04 0xF F07 Polarization of the pulse is set by the SEL1POL bit Read strobe A pulse is generated at the moment of reading under the address OxFF04 OxFFO7 Polarization of the pulse is set by the SEL1POL bit Address decoder A pulse is generated at the moment of writing or reading from the address OxFF04 OxFFO07 Polarization of the pulse is set by the SEL1POL bit Additional output Signal SEL1 assumes the value of the SEL1POL bit Many ideas one solution 16 Mode SEL2CFG1 0 Description Write strobe A pulse is generated at the moment of writing under the 9 go address 0xFF08 OxFFOB Pulse polarization is set by the SEL2POL bit 1 01 Read strobe A pulse is generated at the moment of reading under the address OxFFO08 OxFFOB Pulse polarization is set by the SEL2POL bit Address decoder A pulse is generated at the moment of writing or reading 2 10 under the address OxFF08 OxFFOB Pulse polarization is set by the SEL2POL bit If the module is fitted with a 256kB of RAM memory output SEL2 is used as the highest bit of the address bus in this case it must operate in mode 3 3 11 and cannot be used outside the module If the module is fitted with a 128kB of RAM memory output SEL2 in mode 3 can be used as additional output It takes then the state of bit
7. 4 general purpose digital I O Alternative functions XCK1 USART1 External clock The Data Direction Register 20 PD4 0004 controls whether the clock is output 0004 set or input 0004 cleared The XCK1 pin is active only when the USART1 operates in Synchronous mode IC1 Input Capture Pin1 4 pin can act as an input capture pin for Timer Counter1 general purpose digital I O Alternative functions External Interrupt source 3 The pin can serve as an 21 PD3 INT3 TxD1 external interrupt source to the MCU TXD1 Transmit Data Data output pin for the USART1 When the USART1 Transmitter is enabled this pin is configured as an output regardless of the value of DDD3 PD2 general purpose digital I O Alternative functions INT2 External Interrupt source 2 The PD2 pin can serve as External Interrupt source to the MCU 22 PD2 INT2 RxD1 RXD1 Receive Data Data input pin for the USART1 When the USART1 receiver is enabled this pin is configured as an input regardless of the value of DDD2 When the USART forces this pin to be an input the pull up can still be controlled by the PORTD2 bit Many ideas one solution 10 23 PD1 INT1 SDA 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 Se
8. LED diodes The minimodule is equipped with four LED diodes which signal the following supply of power e operation of the Ethernet controller o connection to the network o activity transmission reception e operation of the DataFlash memory analogously as the HDD diode in PCs Diode signals are led out outside the module which enables doubling the signaling e g externally to the device case An example of a realization of such a solution is shown in the drawing 5 5 5 12 02 2 H 113 7223 13 ADS av 2 2 H 115 0 5 t Vbat 2 7 ADI TN 0 8 ADO TPIN 72 9 45V Al TPOUT 3i 10 32 10 2 TOOL 1211 H H LED LINK 2 7 LED 2 12 SRESET Z pps LED DF 71215 72 15 25 pgs 2 15 nae AR 7 16 217 3217 GND PE3 PD7 7718 10 18 PE PD6 JL 19 0 19 PEI PDS 31 20 32 20 1721 ADC PD3 RESET 31 22 32 22 ADOS PD2 3123 32 23 GND ADCS PDI 1224 7224 21024 ADG 2 24 1225 32 25 ADG PB7 1226 026 6 327 227 ADCI PBS 7228 12 28 ADO 71 29 32 29 AREF PB3 7130 7230 AGND PB2 JL31 3231 25277 PBI 32 32_ AGND MMnet02 module Figure 12 Connection of
9. MMnet02 Ethernet Minimodule User s Manual REV 1 0 Contents 5555 DOR rr Dr a e 3 APPLICATIONS tot sat oan t Amr eo 4 A WRITER DIR HN METTE 4 2 CONSTRUCTION OF THE 2 2 22 22140 1 1 11 1 6 sss teens ases sess ses sees 5 BROCK DIAGRAM dE Is e MEE SL A E Er SB A 5 NAO DOLE INOS Ue er uot M IS MEM MEM PL UEM LI MM EN M 6 23 MICROCONTROLEE Rs 6 iade eni ative ce CoL dieit 13 ETHERNET CONTROLLER RTL8019AS cccccsccsccccccececeesenseccceccceceseetenecececsesesetentaaececceceeetentntsecececens 13 MEMORY CONTROLER S eu LM 14 RAM MEMORY renanta ete 19 DATAFLASH MEMORY EL 19 72 anita noi ac cel 20 5 hala Sarena 20 BESETSOIROBIT Sio tas E
10. always the last bank is visible Such a solution is always favorable when programming is done in C language as environment variables and buffers often used in the program can be held in the basic memory while the space with the variable bank number can be used e g to collect measurement data large tables or buffers the access to which is not hampered by a change in bank number The Ethernet controller is under the address 0 000 e Maximum linear memory mode the Ethernet controller is the end of the address space under the address OxFF80 The linear memory reaches the address OxFEFF This mode permits the achievement of a large linearly addressed memory of the size of 65280B The memory controller allows also the generation of two signals SEL1 and SEL2 These signals can be configured as write read strobe lines or address choice with any polarization The configuration is achieved by means of appropriate registers The address space of the microcontroller under the addresses 0xFF00 to OxFFFF contains an area reserved for MMnet02 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 This is depicted in the picture below FF80 FF9F RTL8019AS Ethernet ctrl registers 08 FFOB MMnet02 SEL2 External FF04 FF07 MMnet02 SEL1 External I O MMnet02 CONF Configuration register MMnet02 BANKSR Bank selec
11. 20 DIODES SA reer od oculus ee a a tna tote asta er ate en 21 CONNECTION OF THE MODULE WITH THE EXTERNAL 22 CONNECTION TO THE ETHERNET NETWORK 22 RS 232 INTERFACE m Rade E Er 23 ESOS INTEREACE E CMM lo CRM E EE 23 USBINTEREAGE aci tines intact ai 24 ecc Nn rae 24 IN as 25 EXTERNAL PERIPHERALS ON THE SYSTEM BUS cscccceceessececeesccececeescececeesscccceetcecceestsecceeseaeecenetaceeeeees 26 4 PROGRAMMING THE MODULE cereis ee eee esee teens estet enses seen sss e esas e 27 TS 27 JTAG CONNEC TOR 29 5 AN APPLICATION 30 6 EVALUATION BOAMHDL 255605 31 5555 0
12. as MODE1 and MODE2 serve to set the operating mode of the address decoder Mode MODE1 0 Description Conformity mode with earlier equipment and software versions 0 00 Available is only 32kB of RAM memory located in the lower area of the address space and the Ethernet controller under the addresses 0x8000 0x9000 Memory banking mode 32kB of non banking memory is available the 1 01 remaining memory is accessible in banks of 16 each The Ethernet controller is under the address 0xC000 Mode of maximum linear memory In this mode the user has at his 2 10 disposal 65280 memory bites without the need to serve banking The RTL8019AS controller is under the address OxFF80 Many ideas one solution 15 In this mode the external RAM memory and the Ethernet controller not accessible SEL outputs operate normally Memory maps for modes 1 3 are shown in the picture below FFFF FFFF FFFF MMnet02 MMnet02 MMnet02 FEFF Not used id CO1F Not used CET RTL8019AS C000 BFFF 9000 8FFF m RTL8019AS Non banked 7FFF bad RAM and int RAM of the uC 65280B Non banked Non banked RAM and int RAM and int RAM of the uC RAM of the uC 32kB 32kB 0000 0000 0000 Mode 0 Mode 1 Mode 2 The remaining bits of the configuration register serve to set the operating mode of the SEL outputs and their polarization Mode SEL1CFG1 0 Description
13. input register NHN FP 11 MMnet02 SEL2 3 read from input register input value 3 CP vcc OE DO 90 Q 03 D4 Q4 05 Q5 D Q6 Dn Q GND 74 574 5V DIR At 74 138 SD GND 45 GND Figure 21 An example of using the SEL output as an address selection output 4 Programming the module The 128 microcontroller has 128kB of Flash memory programmable in the system for the program code and 4kB of EEPROM memory for user s data Programming of these memories can be effected in two ways by means of an ISP interface or through JTAG Both interfaces have a standard of used connectors and a standard of arranging signals in the connector ISP connector The programmer in ISP standard communicates with the microcontroller through a three wire SPI interface plus the RESET signal and power supply The interface uses the I O terminals of the microcontroller PEO PE1 and PB1 which after the programming can fulfill ordinary functions When connecting peripherals to these terminals it should be remembered that the programmer should have the possibility to force appropriate logic levels on them The figures below present the method of connecting the ISP connector to the module 27 Many ideas one solution Figure 23
14. many guaranteed years of uninterrupted clock operation 02 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 technique without penetrating the lower layers of the IP stack and the RTOS operating system The 102 is delivered loaded with the WWW Server applica
15. of in circuit programmable FLASH program memory 128KB of RAM memory e of EEPROM memory Serial DataFlash memory 32 or 64Mbit 4 or 8MBytes e Flexible memory controller allowing suit address space to application requirements 2 Real Time Clock and battery socket 9 e Reliable reset circuit e Crystal resonator 14 7456 or 16 MHz Crystal resonators 32 768 Hz for RTC and MCU internal timer counter e 4 LED diodes indicating power LAN activity DataFlash activity e Fully SMD made on 4 layer PCB 2x 32 terminals with 0 1 2 54mm pitch fitting every prototype board Available free operating system with TCP IP stack supporting many protocols e Available evaluation board and sample applications Small dimensions 56mm x 43mm Remarks 1 Assembled in dependence on the 102 version Many ideas one solution 2 Construction of the module Block diagram The block diagram of the MMnet02 minimodule is shown in the drawing memory controller PORTE qQ 128 R DataFiash 1 DataF lash 2 m T Batt 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 e Ethernet controller RTL8019AS 128kB RAM Module 102 B contains ATmega128 m
16. on the module this lead out can be used as a 5 Vbat source of power for peripherals external to the module If there is no battery on the module the TC clock can be supplied from an external battery or another emergency power source 6 GND Ground 7 TPIN Differential signal input from Ethernet network Should be 8 TPIN connected with RJ45 jack with use of applicable transformer 9 TPOUT Differential signal output to Ethernet network Should be 10 TPOUT connected with RJ45 jack with use of applicable transformer The output of the LEDLINK diode driving signal indicating 11 LEDLINK connection to the Ethernet network It can be used to connect an additional diode e g led out externally to the device case The output of the LEDACT diode driving signal indicating activity 12 LEDACT of the module in Ethernet network It can be used to connect an additional diode e g led out externally to the device case 13 4RESET Input output of RESET signal The output of the LEDDF diode driving signal indicating activity 14 LEDDF of the DataFlash memory It can be used to connect an additional diode e g led out externally to the device case 15 WR Write strobe 16 RD Read strobe PD7 general purpose digital I O 17 PD7 T2 Alternative functions T2 Timer Counter2 counter source PD6 general purpose digital I O 18 PD6 T1 Alternative functions T1 Timer Counter1 counter source 19 PD5 PD5 general purpose digital I O
17. shorting strap is used to match the interface to the line impedance lt PEO RxD0 lub PDXRxDI 1 RE 7 DE PEI TxD0 lub PD3 TxD1 DI GND MAX485 GND Figure 16 Connection of the RS 485 port to the MMnet02 03 Many ideas one solution USB interface The current standard in connecting with a PC the USB interface permits quick transfers and taking the power supply from the computer Thanks to the existence of circuits converting the USB interface to RS 232 its implementation in own equipment is very simple and cheap The drawing below presents a way of equipping the MMnet02 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 USB Connector 45V 15 TXLED PORTVCC 4 5 PWRCIL 5V_USB j PWREN IOVCC TxDEN RXLED 20 n RI SLEEP 197 9 GND 18 GND eal DSR 3V30UT CT 9 DTR GND 16 GND nD CTS RESETO Ts RTS RESET 14 4 PEI TxD0 lub PD3 TxD1 gt ES RxD GND PEO RxDO lub PDX RXDI 4 TxD Nc MMusb232 Figure 17 Connection of the USB port to the MMnet02 Additional information on the MMusb232 module can be found on the web page http www propox com products t_93 html lang
18. to improve performance Full duplex Support diagnostic LEDs After hardware or software reset the controller has to be reconfigured This can be achieved in three ways e configuration is loaded from an external EEPROM memory By default the module is delivered without this memory e Emulation of an external EEPROM memory The Nut OS system starting from version 3 9 2 can emulate the EEPROM memory by means of two bus address lines A13 and A14 This function does not hinder the normal operation of the module To permit emulation two resistors R16 and R17 should be assembled on board they are not mounted by default Astandard method of configuring the RTL8019AS circuit is tying the data inputs from the EEPROM to the VCC through resistor R11 This will ensure proper operation of LED diodes as LINK and ACT indicators and sets the controller into the full duplex mode The remaining parameters e g MAC address have to be set through software If the half duplex mode is required one of the two other methods should be used The module is adapted to operate with the network controller with the use of interrupts The interrupt signal is applied to input INT5 PE5 of the microcontroller In order to provide compatibility with elder equipment and software versions the possibility of connecting the IOCHRDY signal to the interrupt input INT7 PE7 of the microcontroller has been introduced In order to make such a connection resisto
19. 0 13 PE3 gt _ 14 LCD 16x2 HD44780 Figure 18 Connection of the LCD display to microcontroller ports Another way is to use the system bus led out from the module and the write strobe output The method of connecting them is shown below 1 72 14 15 6 7 GND AD dg oe oa CADIT D LCD 16x2 HD44780 Figure 19 Connection of the LCD display to the microcontroller bus Such a connection method permits only the execution of a write operation into the display which is sufficient The SEL 1 output should be configured as a write strobe The display is seen in the address space as two registers a command register under the address OxFF04 and a data register under the address OxFFO5 Pp 25 Many ideas one solution External peripherals on 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 Such a case is depicted in the figure below CP 120 90 1 0010 DI QI Hy OUT D2 Hz 0072 D3 OUT3 gt Hours D5 95 OUTS D6 06 Hz OUTS D7 Q7 OUT GND 74 574
20. 0 7 aa ADI TPINe ADO TPIN Al 0 40 SEO 11 sSED2 LED LINK Hfr LEDACIV __ _ 13 pp RESET 12 13 RESET 7114 0 14 PEG LED DF 115 12215 PES 7116 12 16 RD 7117 0 17 PD7 JI 18 0 18 219 PE 19 19 PDS 233 PEO 021 ADC7 PD3 71 22 12 22 ADC6 PD2 71 23 12 23 ADCS PDI 31 24 32 24 ADC4 PDO 31 25 12 25 ADC3 PB7 71 26 12 26 ADC2 PB6 71 27 2 27 ADCI 5 28 12 28 ADCO PB4 71 29 32 29 AREF PB3 31 30 32 30 AGND PB2 32 31 1232 32 32 AGND MMnet02 module x GND 9 2 GND L 7 GND L 5 GND 3 5V lt 1 5 MOSI 6 anb INH 16 i WD g 45V EE B VSS 7 GND 45V WY VEE GND ISP 4053 Figure 23 Connection of the MMnet02 module with an ISP connector using a multiplexer FEO Many ideas one solution 08 DESCRIPTION MOSI vcc LED GND MOSI Commands and data from programmer to target RST GND LED Multiplexer and LED diode driving signal SCK GND RST RESET signal MISO GND SCK Serial Clock Controlled by programmer MISO Data from target AVR to programmer VCC Supply voltage to the programmer Figure 24 ISP connector GND Ground Caution The SPI interface used for programming the processor is not the same interface which is available to the user for communication with p
21. 1 43 3V 2 2 gt SI PB2 gt 81 EN lt PB3 SO RDYBSY lt PB3 SO RDYjBSY PBI gt SCK RESET H PBI SCK RESET 2 PB5 gt CS WP PB6 CS WP DI 114148 8 8 GND GND F AT45DB321B GND AT45DB321B GND mae 5V D2 114148 330 D3 DF LED Figure 9 Connection of DataFlash memory inside the module A detailed description of DataFlash circuits is on the Atmel Company page www atmel com AZ LON 19 Many ideas one solution Real time clock An additional device of the minimodule is the RTC clock operating with the DS1307 circuit connected to the 2 bus Along with the RTC circuit there is a socket for lithium batteries mounted on the module providing guarantee of many years of uninterrupted operation of the clock The battery voltage is fed outside the module allowing supplying power to other elements from one battery or taking electric supply from the outside The 2 bus occupies two minimodule port terminals PDO and If the RTC clock is mounted these terminals can be used only as an I2C bus communicating with other peripherals they cannot however act as I O ports 5V 5 4k7 4k7 gt SDA GND GND lt PDO SCL Vbat gt lt Vbat gt sow x 2 24 45V vec 051307 T 3V CR2032 32 768 KHz Qn N GND Figure 10 Connection of the RTC circuit inside the module A detailed description of the DS1307 circuit
22. 120 12 20 gt 021 lt 1 ADC7 PD3 7252 ADC6 pp2 7123 12 23 ADCS PDI 1124 12 24 ADC4 PDO 1125 12 25 ADC3 PB7 11 26 12 26 ADC2 PB6 1127 12 27 ADCI 5 7128 12 28 ADCO PB4 1129 12 29 PB3 71 30 12 30 PB2 18 7131 1231 2 N EH 32 anb o 10 90 32 AGND RSTO 8 UNO 5 6 MMnet02 module 45v 4 2 1 Figure 25 Connection of the MMnet02 module with connector LFA 29 Many ideas one solution 12 GND TDO Vref TDO TMS NSRST TMS VCC NTRST Gee TDI GND TDI Vref RST Figure 26 JTAG connector GND PIN DESCRIPTION Test Clock clock signal from emulator to target Test Data Output data signal from target to emul Test Mode Select mode select signal from Supply voltage to the emulator Test Data Input data signal from emul to target Target voltage sense RESET signal Ground If the JTAG interface is connected into the fuse bits of the microcontroller then terminals PF4 PF7 ADCA ADC7 can serve only as an interface and cannot operate as terminals or analogue inputs The programmer emulator JTAG can be found on the page JTAGCable http www propox com products t 99 html lang en 5 An application example The diagram below shows the MMnet02 module in a simple application controlling relays through the Ethernet network e g su
23. 2 PD2 GND ADCS 23 24 PDI 23 24 PDO ne 25 26 PB7 25 26 PB6 GND a ee ADCI 27 28 ADCO PBS 27 28 zh AREF 29 30 AGND PB3 29 30 PB2 31 32 AGND PBT 31 32 PBO T Header 16X2 Header 16X2 AKT 910R L ser R3 iQ Nw d a us ii 45V i 8 1 5Vi 7 N gout 2 1 4 3 3 5V 5 1 1 T 1 1 6 3 bo c3 4 c5 c6 seen Seer cis 5 TAP ae T 100m 100n 10n 1000 1000 100 10n 100 100n 10n 100n 10u 10V n 10u 10V 100n LP2951ACM33 100n 104 10 GNE tie 1 L 1 18 ll AGND AGND AGND GND GND D A http www propox com C16 c17 cig C20 zu zr T email support propox com 10n 100 10 10n 100 Title MMnet02 Size File Rev Date 22 10 2004 Sheet 1 of 2 2 AZOK Many ideas one solution 35 LAN R17 Stuffed R16and R17 EEPROM emulation enabled OR R16 Stuffed R11 no EEPROM emulation R12 AKT PES TS 4 1 INT3 INT2 NTI INTO SA0 SAI SA2 SA3 SA4 SAS SA6 SA7 GND SA8 SA9 VDD SA10 SA11 SA12 SA13 SA14 SA15 SA16 SA17 SA18 SA19 GND m JORB ge I0WB 88 6 RD SWR 19 RTL80I9AS BD4 BDS EESK BD6 EEDI BD7 EEDO EECS BCSB BAI4 BAIS BA
24. 8019AS optionally Interrupt from RTL8019AS Name SEL2 7 INT7 INT5 PE3 AC PE1 PDO TxD PF7 ADC7 TDI PF5 ADC5 TMS Function in MMnet02 PF3 ADC3 PF1 ADC1 AREF A 5V Name 5V 3 3V Vbat TPIN TPOUT LEDLINK RESET WR PD7 T2 PD5 PD3 INT3 TxD 1 RTC SDA PD1 INT1 SDA PB7 OC2 PWM2 DataFlash1 CS PB5 OC1A PWM1A DataFlash1 2 MISO DataFlash1 2 SCK Many ideas one solution PB3 MISO PB1 SCK N Name Function in MMnet02 AD6 AD4 AD2 ADO AO SEL1 PE6 INT6 PE4 INT4 PE2 AC PDI RxD PF6 ADC6 TDO PF4 ADC4 TCK PF2 ADC2 ADCO AGND AGND Name Function in MMnet02 GND GND GND TPIN TPOUT LEDACT LEDDF RD PD6 T1 PD4 IC1 PD2 INT2 RxD1 PDO INTO SCL PB6 OC1B PWM1B RTC SCL DataFlash2 CS PB4 OC0 PWMO PB2 MOSI 0 55 DataFlash1 2 MOSI J1 No Function Alt function Description 1 AD7 2 AD6 3 AD5 4 Data bus Allows connecting externals peripherals mapped in 5 AD3 microcontroller address space Peripheral addressing is done 6 AD2 with use of SEL1 SEL2 and or AO WR RD outputs 7 AD1 8 ADO 9 A1 Lowest two bits of address bus Allows addressing 4 input and 4 10 AO output registers Note outputs operate in 3 3V logic level standard 11 SEL2 Read write strobe or address de
25. AN_GND LAN_GND Figure 14 Connection to the Ethernet using the RJ45 socket integrated with a transformer 22 Many ideas one solution RS 232 interface The 128 microcontroller has two USART ports which can be used to connect the minimodule with PC computer or other equipment equipped with a RS 232 port Such a connection requires a level converter based on a 232 or similar IC connected to the TxD and RxD lines 5V 16 S FT 100n DB9F exp m C2 100 o 3 end 2 eo 4 14 11 N OF 74 TI OUT TLIN Hig lub PD3 TxD1 gt T2 OUT T2 IN E B RIN H PEO RxD0 lub PDXRxDI gt dp 7 8 9 0 75 R2IN 2 2 o o owe 57232 8 9 g 9 Figure 15 Connection of the RS 232 to the MMnet02 RS 485 interface The RS 485 interface facilitates long distance transmission in a difficult environment An implementation of this interface is as simple as that of RS 232 and requires only a line driver e g MAX485 The feature discerning this interface from RS 232 is the necessity to control the direction of action of the driver transmission reception This control is effected through the program using any I O pin of the microcontroller The 560R resistors visible in the diagram polarize initially the inputs increasing the immunity to interference The 120R resistor connected by means of a
26. I is activated when this pin is driven low When the SPI is enabled as a master the data direction of this pin is controlled by DDBO When the pin is forced to be an input the pull up can still be controlled by the PORTBO bit Table 31 and Table 32 relate the alternate functions of Port B to the overriding signals shown in Figure 33 on page 67 SPI MSTR INPUT and SPI SLAVE OUTPUT constitute the MISO signal while MOSI is divided into SPI MSTR OUTPUT and SPI SLAVE INPUT Detailed description of PB PD PE ports be found 128 microcontroller datasheets Many ideas one solution 12 128 microcontroller e High performance RISC architecture 121 instructions most single clock cycle execution 16 MIPS 16MHz 128 KBytes of Flash memory 4K Bytes of SRAM memory 4K Bytes of EEPROM SPI Master Slave interface Four internal timers counters 8 1 6bit Two UART interfaces up to 1Mbaud Serial interface compatible with 2 In System Programming In Circuit Debugging through JTAG interface Real Time Clock with 32 kHz oscillator 8 channel 10 bti A D converter 6 I O ports 6 PWM outputs Extended temperature range internal and external interrupt sources Internal watchdog timer More informations at Atmel s site Ethernet controller RTL8019AS One chip Ethernet controller with ISA bus IEEE 802 3 10Mb s Internal 16kB SRAM memory for buffers Built in data prefetch function
27. I6 17 VDD 18 19 20 21 LED2 TX LEDI RX LEDO COL LEDBNC TPIN TPIN VDD RX RX CD CD CLK NC D NC GND 1 5V GND zu m 72 5V R8 910R 5V LED l Rg lt PEINT Stuff RIS to enable IOCHRDY interrupt ADO ADI AD2 AD3 AD4 ADS 200R 1 1 C26 20Mhz 22 C 22p GND GND LED gt TPIN TPIN TPOUT gt gt EL AES Sm Title MMnet02 Size File Rev Date 22 10 2004 Sheet2 of 2 2 Many ideas one solution 36
28. coder outputs 12 SEL1 Note outputs operate in 3 3V logic level standard PE7 General purpose digital I O Alternative functions 13 PE7 INT7 INT7 External Interrupt source 7 The PE7 pin can serve as an external interrupt source IC3 Input Capture Pin3 The pin can act as an input capture pin for Timer Counter3 PE6 general purpose digital I O Alternative functions 14 PE6 INT6 INT6 External Interrupt source 6 The PE6 pin can serve as an external interrupt source T3 Timer Counter3 counter source PE5 general purpose digital I O Alternative functions INT5 External Interrupt source 5 The 5 pin can serve as External Interrupt source 15 PES INT5 Output Compare Match output The 5 pin can serve as an External output for the Timer Counter3 Output Compare C The has to be configured as an output DDE5 set to serve this function The pin is also the output pin for the PWM mode timer function PE4 general purpose digital I O Alternative functions INT4 External Interrupt source 4 The PE4 pin can serve as an External Interrupt source 16 PE4 INT4 Output Compare Match output The PE4 can serve as an External output for the Timer Counter3 Output Compare B The pin has to be configured as an output DDE4 set one to serve this function The OC3B pin is also the output pin for the PWM mode timer function g
29. eive Data Data input pin for the USARTO When the USARTO receiver is enabled this pin is configured as an input regardless of the value of DDREO When the USARTO forces this pin to be an input a logical one in PORTEO will turn on the internal pull up 21 PF7 ADC7 PF7 general purpose digital I O Alternative functions ADC7 Analog to Digital Converter Channel 7 TDI JTAG Test Data In Serial input data to be shifted in to the Instruction Register or Data Register scan chains When the JTAG interface is enabled this pin can not be used as an I O pin 22 PF6 ADC6 PF6 general purpose digital I O Alternative functions ADC6 Analog to Digital Converter Channel 6 TDO JTAG Test Data Out Serial output data from Instruction Register or Data Register When the JTAG interface is enabled this pin can not be used as an I O pin The pin is tri stated unless TAP states that shift out data are entered 23 5 ADC5 PF5 general purpose digital I O Alternative functions ADC5 Analog to Digital Converter Channel 5 TMS JTAG Test Mode Select This pin is used for navigating through the TAP controller state machine When the JTAG interface is enabled this pin can not be used as an I O pin 24 PF4 ADC4 PF4 general purpose digital I O Alternative functions ADC4 Analog to Digital Converter Channel 4 JTAG Test Clock JTAG operation
30. en Radio link Fitting the system with the possibility of communicating via a wireless path provides a possibility of easy control and collection of measurement data from system elements dispersed in the object without the need to install any cabling Thanks to the existence of integrated transceivers the construction of such links is relatively simple The figure presents way of connecting an 02 module with a radio minimodule MMcc1000 To execute such a connection five I O microcontroller lines are needed including one breakpoint input An optional connection of the RSSI output with the input of the A D converter permits the measurement of the strength of the received signal Antena pork vec 22 4 1 3 3 z modulu MMnet02 ADCx w3 MMcc1000 n l Px 22 2 lt INTx Pxx n3 PDATA ANT 2 2 lt Px gt GND GND n LF 24 Many ideas one solution 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 9 i 3 1 4 5 16 8 GND Di 4 9 Sr 10 0 5 55 11 PEI gt 52 12 PE2 5 9
31. eneral purpose digital I O Alternative functions AC Analog Comparator Negative input This pin is directly connected to the negative input of the Analog Comparator 17 Output Compare Match A output The can serve as an External output for the Timer Counter3 Output Compare A The has to be configured as an output DDE3 set to serve this function The OC3A pin is also the output pin for the PWM mode timer function 2 general purpose digital I O Alternative functions Analog Comparator Positive input This pin is directly 18 connected the positive input of the Analog Comparator XCKO USARTO External clock The Data Direction Register DDE2 controls whether the clock is output DDE2 set or input DDE2 cleared The XCKO pin is active only when the USARTO operates in Synchronous mode Many ideas one solution PE1 PDO TxD PE1 general purpose digital I O Alternative functions PDO SPI Serial Programming Data Output During Serial Program Downloading this pin is used as data output line for the 128 TXDO UARTO Transmit pin 20 PEO PDI RxD PEO general purpose digital I O Alternative functions PDI SPI Serial Programming Data Input During Serial Program Downloading this pin is used as data input line for the 128 RXDO USARTO Receive Pin Rec
32. eripherals and it uses other outputs Programmers which can be used to program the MMnet02 can be found on the following pages SPCable http www propox com products t 77 html lang en SPCable 11 http www propox com products t 78 html lang en JTAG connector JTAG is a four lead interface permitting the takeover of control over the processor s core and its internal peripherals The possibilities offered by this interface are among others step operation full speed operation equipment and program pitfalls inspection and modification of contents of registers and data memories Apart from this functions are available offered by ISP programmers programming and readout of Flash EEPROM fuse memories and lock bites The method of connecting the JTAG connector to the minimodule is shown in the drawing tit AD Busy Tra AD6 GND oND Tro ADS 433V HL AD4 GND 2 2 0 15 125 116 ne DAI 72 6 0 AD2 GND H GND 117 127 jr ADI TINt 72 6 32 10 0 12 11 SEL2 LED LINK 555 I2 SELI LED HA 11 13 12 13 71214 RESENI 14 14 PES LED_DF WS 11 15 1215 PES WR 116 1216 80 J117 12 17 PE3 PD7 1118 12 18 PE2 PD6 1119 12 19 PDS 1
33. 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 If the RTC8019AS should use an external EEPROM memory storing configurations or emulation of such memory it should be kept in mind to set properly the bits configuring the operation of diodes bits LEDSO and LEDS1 in the CONFIGS register should be set 21 55 Many ideas one solution 3 Connection of 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 second solution guarantees small dimensions and a reduction of the element count the first solution however apart from somewhat lower cost permits the use of Power Over Ethernet technology and powering the module through the Ethernet cable Examples of both solutions are shown in the drawings below 20F001N LAN GND GND LAN GND LAN GND LAN GND Figure 13 Connection to the Ethernet using a transformer RJ45 MAG JACK Bothhand LF1S022 GND GND LAN_GND L
34. icrocontroller Ethernet controller RTL8019AS 128kB RAM One DataFlash 32Mb 4MB memory Real Time Clock with socket for lithium battery Module MMnet02 C contains ATmega128 microcontroller e Ethernet controller RTL8019AS e 128kB RAM e Two DataFlash memories with 64Mb 8MB of total capacity e Real Time Clock with socket for lithium battery Many ideas one solution Individual orders coding MMnet02 r b f x e 0 without RTC 1 RTC DS1307 0 without DataFlash memory 1 32Mb DataFlash 2 2x32Mb DataFlash 0 without RTL8019AS 1 with RTL8019AS 0 without battery socket 1 with CR2023 battery socket Module pin out 02 05 AD3 ADL OO Al SEL2 OO OO PES OO PE3 OO PE1 OO ADC OO ADCS O O ADC3 O O ADC OO AREF 5 31 32 J1 o O O On AA AD6 AD4 AD2 ADO AO SEL1 PEG PE4 PE2 PEO ADC6 ADC4 ADC2 ADCO AGND AGND ion 11 059 16 14 7456 Crystal 3 6864 MHz Crystal 4 MHz Crystal 6 MHz Crystal 8 MHz Crystal 11 059 MHz Crystal 14 7456 MHz Crystal 16 MHz MMnetO2 Figure 2 Module pin out top view RST OO UU PD3 PD1 PBS PB3 PB1 79 00 N 2000000000 NSOO0000000 GND GND GND TPI TPO LACT LDF RD PD6 PD4 PD2 PDO PB6 PB4 PB2 PBO Function MMnet02 Interrupt from RTL
35. is given on the Maxim Company page www maxim ic com Supply of power The module requires a regulated 5 V supply voltage The 3 3 V voltage indispensable for the operation of some circuits is produced inside the module It is also led out externally to be used by other system elements RESET circuit The 02 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 The guard circuit detects also momentary VCC voltage drops A short duration drop of VCC below 4 6 V causes the generation of a resetting signal of 100 ms duration This signal is applied directly to the resetting input of the microcontroller and through a simple inverter to the RTL8019AS circuit The RESET signal is led out to a module connector and it can be used as the zeroing output resetting external circuits and as the input for resetting the module e g by means of the RESET button In such a case the RESET button can short the RESET line directly to ground An implementation of the reset circuit is presented in the diagram below 20 Many ideas one solution 5V U7 B VCC RST GND GND 051811 3 RESET Figure 11 Implementation of the reset circuit in the module
36. is synchronous to When the JTAG interface is enabled this pin can not be used as an I O pin 25 PF3 ADC3 general purpose digital I O Alternative functions ADC3 Analog to Digital Converter Channel 3 26 PF2 ADC2 PF2 general purpose digital I O Alternative functions ADC2 Analog to Digital Converter Channel 2 27 PF1 ADC1 PF1 general purpose digital I O Alternative functions ADC1 Analog to Digital Converter Channel 1 28 ADCO PFO general purpose digital I O Alternative functions ADCO Analog to Digital Converter Channel 0 29 AREF Analog reference voltage for the A D converter AGND Analog ground internally connected with digital ground GND 31 A 5V 5V power supply for analog circuits Connected internally with 5V through LP filter External analog circuits can use this voltage 32 AGND Analog ground internally connected with digital ground GND J2 Many ideas one solution Function Alt function Description 1 5V Power supply input 5V 2 GND Ground 3 43 3V Output of 3 3V voltage from internal regulator Can be used to power external peripherals which requires 3 3V 4 GND Ground Battery voltage sustaining the operation of the RTC clock If a battery is mounted
37. r R18 should be added by default it is not mounted on board The state of the Ethernet controller is signaled by two LED diodes LNK connection with the network and ACT active transmission reception The location of the controller in the address space is dependent upon the chosen operating mode of the memory controller Many ideas solution 13 Memory controller The memory controller built around the CPLD programmable device controls the address space of the microcontroller generates address strobe selection signals to be exploited by the user and serves in banking of the RAM memory The memory controller can operate in three modes which differ in the placement of areas in the address space of conformity with the EVBedu net and Ethernet 1 boards only 32kB of RAM memory is available situated in the range to Ox7FFF The registers of the RTL8019AS circuit are under the addresses 0x8000 0x9000 The rest of the RAM memory is not accessible e Memory banking mode In order to exploit fully the whole memory the address decoder facilitates the division of the memory into banks of 16 each In the range until Ox7FFF the basic unbanked memory is located Under the addresses 0x8000 OxBFFF is the currently used memory bank The choice of a bank is effected by writing its number to the bank register which is located under the address OxFFOO In the location up to Ox7FFF basic memory
38. rfing the WWW The diagram does not include the supply of power ni U ES 7 6 gt TES 5 lt g U8 ADO 2 TES 1 Tio Hm 12 SELI TET yi Tris PE6 Jiz16 BEN TT pees HEN 71191 1120 Ti21 TL 22 ee 2 ance 7123 7224 ADCS 71225 3126 223 ADC2 Toor ADCI 857 184148 31 29 N ERR LL E 72 32 AGND PBO tc MMnet02 module tc tc tc Figure 27 MMnet02 in a simple application controlling relays through the Ethernet network 30 Many ideas one solution 6 Evaluation Board In order to facilitate the design of equipment using the minimodule an evaluation board has been prepared 02 It includes the following basic elements e Power supply supplying power is taken from a standard socket or supplied through the Ethernet cable RJ45 Ethernet connector with transformer RS232 port ISP connector e JTAG connector e 2x16 chars LCD display 38 LED diodes e 4 push buttons 2 potentiometers e Prototype design area 7 Specifications Microcontroller Ethernet controller Program memory Data memory EEPROM memory DataFlash memory No of digi
39. rial Interface Data When the TWEN bit in TWCR is set one to enable the Two wire Serial Interface pin is disconnected from the port and becomes the Serial Data pin for the Two wire Serial Interface In this mode there is a spike filter on the pin to suppress spikes shorter than 50 ns on the input signal and the pin is driven by an open drain driver with slew rate limitation 24 PDO INTO SCL PDO general purpose digital I O Alternative functions INTO External Interrupt source 0 The PDO pin can serve as an external interrupt source to the MCU SCL Two wire Serial Interface Clock When the TWEN bit in TWCR is set one to enable the Two wire Serial Interface pin PDO is disconnected from the port and becomes the Serial Clock pin for the Two wire Serial Interface In this mode there is a spike filter on the pin to suppress spikes shorter than 50 ns on the input signal and the pin is driven by an open drain driver with slew rate limitation 25 PB7 OC2 PWM2 PB7 general purpose digital I O Alternative functions OC2 Output Compare Match output The PB7 pin can serve as an external output for the Timer Counter2 Output Compare The pin has to be configured as an output DDB7 set to serve this function The OC2 pin is also the output pin for the PWM mode timer function OC1C Output Compare Match C output The PB7 pin can serve as an external output for the Timer Counter1 Ou
40. s enabled as a master this pin is configured as an input regardless of the setting of DDB3 When the SPI is enabled as a Slave the data direction of this pin is controlled by DDB3 When the pin is forced to be an input the pull up can still be controlled by the PORTB3 bit Many ideas one solution 11 30 2 MOSI 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 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 When the pin is forced to be an input the pull up can still be controlled by the PORTB2 bit 31 PB1 SCK PB1 general purpose digital I O Alternative functions SCK Master Clock output Slave Clock input pin for SPI channel When the SPI is enabled as a slave this pin is configured as an input regardless of the setting of DDB1 When the SPI is enabled as a master the data direction of this pin is controlled by DDB1 When the pin is forced to be an input the pull up can still be controlled by the PORTB1 bit 32 PBO 55 PBO general purpose digital I O Alternative functions SS Slave Port Select input When the SPI is enabled as a slave this pin is configured as an input regardless of the setting of DDBO As a slave the SP
41. shows the use of an analog multiplexer 4053 to separate the programmer from peripherals connected to microcontroller ports 45V AD6 GND 2 13 23 ADS Cj 4 AD4 GND 2 15 25 eee 12 6 AD2 GND onn JI7 172 7 d ADI TPIN I ADO TIN 555 Hy TPOUTe Hin 40 9812 LED LINK Hi 811 LED Eis X PE RESET 14 pps LED DF 2 15 0 15 PES SWR JI 16 7 16 RD 17 12 17 PD7 JI 18 12 18 2 PD6 19 22 19 PEI PDS 11 20 2 20 PEO PDA JL21 1 21 ADC7 PD3 1122 22 ADC6 PD2 1123 223 ADCS PDI 11 24 10 24 PDO 11 25 1 25 ADC3 PB7 26 026 ADC2 6 7127 1 27 ADCI 5 11 28 T 28 ADCO PB4 11 29 2 29 1230 REB PB3 7230 30 AGND 2 PBL 535 32 AGND 22 MMnet02 module 0 t 0 ir ISP ISP Figure 22 Connecting the MMnet02 module with an ISP connector 7 sv H2 AD6 22 1 3 ADS av 4 anD H 1 5 2 5 5 HES 1 AD2 GND onp 177
42. t register 14 AROK Many ideas one solution MMnet02 BANKSR register contained under the address 0 00 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 MMnet02_BANKSR 0 00 7 6 5 4 3 2 1 0 R W R W R W R W R W R W R W R W Under the address OxFF01 is the configuration register of the memory controller Through this register the operating mode of the controller and the SEL output can be chosen Configuration should be set after every system reset MMnet02_CONF OxFFO1 SEL2CFGO SEL1POL SEL1CFG1 SEL1CFGO mover moveo 7 6 5 4 3 2 1 0 w w w W W W W w The meaning of individual bits in the MMnet02_CONF register is shown by the table below No Name Description 7 SEL2POL SEL2 output polarization 0 active low level 6 SEL2CFG1 5 SEL CFGO Operating mode of SEL2 output 4 SEL1POL SEL1 output polarization 0 active low level 3 SEL1CFG1 2 SEL1CFGO Operating mode of SEL1 output 1 MODE1 0 Operating mode of the address decoder This register is assigned only for writing An attempt of readout will return only random values Two lowest bits of the MMnet02_CONF register assigned
43. tal I O No of analog inputs Power Power consumption Dimensions Weight Operating temperature range Humidity Connectors 55 Many ideas one solution 128 16 2 RTL8019AS IEEE 802 3 10Mb s 128kB 128kB or 256kB 8kB up to 8MB up to 32 up to 8 5V 5 120mA max 56x43mm about 100g 0 70 C 5 95 double 2x32 headers 31 8 Technical assistance In order to obtain technical assistance please contact support propox com In the request please include the following information number of the module version e g REV 2 e setting of resistors e adetailed description of the problem 9 Guarantee The MMnet02 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 The Producer takes no responsibility for any damage and defects caused in the course of using the MMnet 02 module 10 Assembly drawings Pp Many ideas one solution 32 De PHR o D4 LINK Hi 05 US 801965 28 Figure 28 Assembly drawing top layer ce R10 WWW pr opox com ER DataFlashi AT45DB321B U5 DataFlash2 AT45DB321B E 8 Figure 29 Assembly drawing bottom layer 23 11 Dimensions 1800118 45 72mm 100mils 2 54 mm
44. tion and WWW demonstration pages with examples of using and Flash The configuration of the server MAC address 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 Many ideas one solution 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 e Ethernet controller IEEE 802 3 10Mb s 128kB
45. tput Compare C The pin has to be configured as an output DDB7 set one to serve this function The OC1C pin is also the output pin for the PWM mode timer function 26 PB6 OC1B PWM1B PB6 general purpose digital I O Alternative functions OC1B Output Compare Match output The PB6 pin can serve as an external output for the Timer Counter1 Output Compare B The has to be configured as an output DDB6 set one to serve this function The OC1B pin is also the output pin for the PWM mode timer function 27 PB5 OC1A PWM1A 5 general purpose digital I O Alternative functions OC1A Output Compare Match A output The 5 pin can serve as an external output for the Timer Counter1 Output Compare A The has to be configured as an output DDB5 set to serve this function The pin is also the output pin for the PWM mode timer function 28 4 OCO PWMO PB4 general purpose digital I O Alternative functions Output Compare Match output The PB4 can serve as an eternal output for the Timer CounterO Output Compare The pin has to be configured as an output DDB4 set one to serve this function The OCO pin is also the output pin for the PWM mode timer function 29 MISO PB3 general purpose digital I O Alternative functions MISO Master Data input Slave Data output pin for SPI channel When the SPI i
46. troller is able to address it is necessary to bank the memory This action is taken over by the memory controller Upon request the microcontroller can be equipped with a 256kB RAM memory The additional memory capacity is seen by the system as consecutive banks to choose from In such a case the operating mode of the SEL2 signal must be set to 3 and the SEL2 output cannot be used outside the module DataFlash memor The minimodule can be equipped with one or two serial DataFlash memories AT45DB321B with 32 Mb or 64 Mb total capacity this gives 4 or 8 MB of memory for storing files with WWW pages or collecting measurement files The memories are connected to a fast SPI bus with 8 MB s transmission speed Memory chips are activated after applying a low logic level to CS inputs The CS pin of memory No 1 is connected to port PB5 of the microcontroller and that of memory No 2 to port PB6 The SPI bus occupies three terminals of the microprocessor PB1 PB2 PB3 It should be kept in mind that if DataFlash memories are installed the just outlined port terminals cannot be used externally to the module Of course the SPI bus can be used for communication with external peripherals under the condition that they will have circuit selection inputs CS The diagram below shows the connection of DataFlash memories inside the module U4 1 US DataHash2 T vec 7 43 3V 15 vec 1
Download Pdf Manuals
Related Search
Related Contents
B&C PRIVATE ROOM "取扱説明書" Fellowes 120CC Paper Shredder User Manual GSM Gate Opener GSM Remote Switch Manuel d`utilisation Enregistreurs Numériques 2012 Omnitest®3 - B. Braun Melsungen AG Produits Lingua 2005 Megapixel-Kameras und Überwachungs Copyright © All rights reserved.
Failed to retrieve file