Propox MMnet103 User Manual Download Page 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  

 

Ethernet Minimodule 

  

                          

 

 

   

User’s 

   Manual  

 

 

 

 

 

REV 0.9 

 

rte

r K

its

 E

mb

ed

de

d W

eb

 S

er

ve

PI

mi

cro

co

ntr

oll

er

s S

ta-

s f

or

 ‘5

1, 

AV

R,

 S

T,

ati

on

 B

oa

rd

Ev

alu

rs 

Pr

oto

typ

ing

 B

oa

rd

s M

ini

mo

d-

Mi

cro

pr

oc

es

or

  s

ys

tem

s, 

PC

B

AV

R,

 P

IC

, S

 m

icr

oc

on

tro

lle

rs

ed

 In

 S

ys

tem

 pr

og

ra

mm

er

s f

or

ne

t c

on

tro

lle

rs,

 R

FI

Hi

gh

 S

pe

-

ule

s f

or

 m

icr

oc

on

tro

lle

rs,

 et

he

r-

de

sig

nin

g E

va

lua

tio

n B

oa

rd

s f

or

eth

er

ne

t c

on

tro

lle

rs,

 R

FI

Hi

gh

nim

od

ule

s f

or

 m

icr

oc

on

tro

lle

rs,

Se

rve

rs 

Pr

oto

typ

ing

 B

oa

rd

s m

i-

ler

s S

tar

ter

 K

its

 E

mb

ed

de

d W

eb

‘51

, A

VR

, S

T, 

PI

mi

cro

co

ntr

ol-

Sp

ee

d I

n S

ys

tem

s p

ro

gr

am

me

-

ro

co

ntr

oll

er

s S

tar

ter

 K

its

 E

mb

e-

ar

ds

 fo

r `

51

, A

VR

, S

T, 

PI

mi

c-

PC

de

sig

nin

g E

va

lua

tio

n B

o-

oll

er

s M

icr

op

ro

ce

so

r s

ys

tem

s, 

rs 

for

 AV

R,

 P

IC

, S

mi

cro

co

ntr

l-

dd

ed

 W

eb

 S

er

we

rs 

Pr

oto

typ

ing

me

rs 

for

 A

VR

, P

IC

, S

mi

cro

co

-

Hi

gh

 S

pe

ed

 In

 S

ys

tem

 pr

og

ra

m-

co

ntr

oll

er

s, 

eth

er

ne

t c

on

tro

lle

rs,

Bo

ar

ds

 M

ini

mo

du

les

 fo

r m

icr

o-

    

 co

ntr

oll

er

s M

icr

op

ro

ce

so

    

Bo

ar

ds

    

nin

g E

va

lua

tio

n

  S

ys

tem

s, 

PC

De

sig

-

R

Many ideas one solution

Summary of Contents for MMnet103

Page 1: ... R FID H igh nim odules for m icrocontrollers Servers Prototyping Boards m i lers Starter Kits Em bedded W eb 51 AVR ST PIC m icrocontrol Speed In System s program m e rocontrollers Starter Kits Em be ards for 51 AVR ST PIC m ic PC B designing Evaluation Bo ollers M icroprocesor system s rs for AVR PIC ST m icrocontrl dded W eb Serw ers Prototyping m ers for AVR PIC ST m icroco H igh Speed In Syst...

Page 2: ... CIRCUIT 20 LED DIODES 21 3 CONNECTION OF THE MODULE WITH THE EXTERNAL WORLD 22 CONNECTION TO THE ETHERNET NETWORK 22 RS 232 INTERFACE 22 RS 485 INTERFACE 23 USB INTERFACE 24 RADIO LINK 24 LCD DISPLAY 25 EXTERNAL 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 ASSISTANC...

Page 3: ...d 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 syste...

Page 4: ...up to 16 MIPS throughput Ethernet controller IEEE 802 3 10 100Mb s LAN91C111 Onboard RJ45 connector with integrated magnetics and LED diodes Onboard RS 232 interface with DB9F connector 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 applicati...

Page 5: ...sic versions denoted with letters from A to C or in accordance with individual orders Module MMnet103 A contains ATmega128 microcontroller Ethernet controller LAN91C111 128kB RAM Module MMnet103 B contains ATmega128 microcontroller Ethernet controller LAN91C111 128kB RAM One DataFlash 32Mb 4MB memory Real Time Clock with socket for lithium battery Module MMnet103 C contains ATmega128 microcontroll...

Page 6: ... 0 without DataFlash memory 1 32Mb DataFlash 2 2x32Mb DataFlash 0 without battery socket 1 with CR2023 battery socket 3 6864 Crystal 3 6864 MHz 4 Crystal 4 MHz 6 Crystal 6 MHz 8 Crystal 8 MHz 11 059 Crystal 11 059 MHz 14 7456 Crystal 14 7456 MHz 16 Crystal 16 MHz Module pin out Figure 2 Module pin out top view ...

Page 7: ...4 ADC4 TCK PF3 ADC3 25 26 PF2 ADC2 PF1 ADC1 27 28 PF0 ADC0 AREF 29 30 AGND A 5V 31 32 AGND Function in MMnet103 Name J2 Name Function in MMnet103 5V 1 2 GND 3 3V 3 4 GND Vbat 5 6 GND NC 7 8 NC NC 9 10 NC LEDLINK 11 12 LEDACT RESET 13 14 LEDDF WR 15 16 RD PD7 T2 17 18 PD6 T1 PD5 19 20 PD4 IC1 PD3 INT3 TxD1 21 22 PD2 INT2 RxD1 RTC SDA PD1 INT1 SDA 23 24 PD0 INT0 SCL RTC SCL PB7 OC2 PWM2 25 26 PB6 OC...

Page 8: ...t Compare C The pin has to be configured as an output DDE5 set one to serve this function The OC3C pin is also the output pin for the PWM mode timer function 16 PE4 INT4 PE4 general purpose digital I O Alternative functions INT4 External Interrupt source 4 The PE4 pin can serve as an External Interrupt source OC3B Output Compare Match B output The PE4 pin can serve as an External output for the Ti...

Page 9: ...s enabled this pin can not be used as an I O pin The TDO pin is tri stated unless TAP states that shift out data are entered 23 PF5 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...

Page 10: ... the device case 15 WR Write strobe 16 RD Read strobe 17 PD7 T2 PD7 general purpose digital I O Alternative functions T2 Timer Counter2 counter source 18 PD6 T1 PD6 general purpose digital I O Alternative functions T1 Timer Counter1 counter source 19 PD5 PD5 general purpose digital I O 20 PD4 IC1 PD4 general purpose digital I O Alternative functions XCK1 USART1 External clock The Data Direction Re...

Page 11: ...Output Compare Match C output The PB7 pin can serve as an external output for the Timer Counter1 Output 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 B output The PB6 pin can serve as an exter...

Page 12: ...n 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 PB0 SS PB0 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 DDB0 As a slave the SPI is activated when this pin is driven low When the SPI is e...

Page 13: ...l and external interrupt sources Internal watchdog timer More informations at Atmel s site Ethernet controller LAN91C111 One chip Ethernet controller with IEEE 802 3 10 100Mb s Internal 8kB SRAM memory for buffers Built in data prefetch function to improve performance Full duplex half duplex Support diagnostic LEDs The module is adapted to operate with the network controller with the use of interr...

Page 14: ...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 0xC000 Maximum linear memory mode the Ethernet controller is at the end ...

Page 15: ...e Description 7 SEL2POL SEL2 output polarization 0 active low level 6 5 SEL2CFG1 SEL2CFG0 Operating mode of SEL2 output 4 SEL1POL SEL1 output polarization 0 active low level 3 2 SEL1CFG1 SEL1CFG0 Operating mode of SEL1 output 1 0 MODE1 MODE0 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 M...

Page 16: ...RAM of the uC 65280B The remaining bits of the configuration register serve to set the operating mode of the SEL outputs and their polarization Mode SEL1CFG1 0 Description 0 00 Write strobe A pulse is generated at the moment of writing under the address 0xFF04 0xFF07 Polarization of the pulse is set by the SEL1POL bit 1 01 Read strobe A pulse is generated at the moment of reading under the address...

Page 17: ...M memory output SEL2 is used as the highest bit of the address bus in this case it must operate in mode 3 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 3 in the MMnet103_BANKSR register The drawings below illustrate the operation of output SEL during writing or reading o...

Page 18: ...active low level SELxPOL 0 x x SELx WR RD ADDR 0xFF04 0xFF07 SEL1 0xFF08 0xFF0B SEL2 Figure 6 Operation of SEL output as read strobe SELxCFG1 0 01 with active high level SELxPOL 1 x x SELx ADDR 0xFF04 0xFF07 SEL1 0xFF08 0xFF0B SEL2 Figure 7 Operation of SEL output as address decoder SELxCFG1 0 10 with active low level SELxPOL 0 ...

Page 19: ...les 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...

Page 20: ...s 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 MMnet103 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 th...

Page 21: ...J1_25 ADC2 J1_26 ADC1 J1_27 ADC0 J1_28 AREF J1_29 AGND J1_30 A 5V J1_31 AGND J1_32 5V J2_1 GND J2_2 3 3V J2_3 GND J2_4 Vbat J2_5 GND J2_6 TPIN J2_7 TPIN J2_8 TPOUT J2_9 TPOUT J2_10 LED_LINK J2_11 LED_ACTIV J2_12 RESET J2_13 LED_DF J2_14 WR J2_15 RD J2_16 PD7 J2_17 PD6 J2_18 PD5 J2_19 PD4 J2_20 PD3 J2_21 PD2 J2_22 PD1 J2_23 PD0 J2_24 PB7 J2_25 PB6 J2_26 PB5 J2_27 PB4 J2_28 PB3 J2_29 PB2 J2_30 PB1 J...

Page 22: ...1 K1 SHIELD G Y 560R 560R 3 3V LED_LINK LED_ACTIV 3 3V Figure 13 Connection of the Ethernet connector inside the module RS 232 interface The ATmega128 microcontroller has two USART ports which can be used to connect the minimodule with a PC computer or other equipment equipped with a RS 232 port MMnet103 has onboard RS 232 port which can be connected to USART0 TXD0 and RXD0 through JP2 and JP4 jum...

Page 23: ...ates 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 56...

Page 24: ...re 16 Connection of the USB port to the MMnet103 Additional information on the MMusb232 module can be found on the web page http www propox com products t_93 html lang 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 in...

Page 25: ...ction 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 2 3 4 5 6 7 8 9 10 11 12 13 14 LCD 16x2 100n GND 5V A0 5V GND AD1 AD5 AD7 AD3 AD6 AD0 AD2 AD4 SEL1 7k5 620R HD44780 GND VCC CONT RS RW E D7 D0 D1 D2 D3 D4 D5 D6 GND Figure 18 Connection of the LCD display to the mi...

Page 26: ...14 Q4 15 Q3 16 Q2 17 Q1 18 Q0 19 VCC 20 74HCT574 Figure 19 An example of using the SEL output and a write read strobe The configuration and write read methods of registers such connected looks like this MMnet103_CONF 0b00100001 SEL2 read strobe active low SEL1 write strobe active high memory decoder mode 1 MMnet103_SEL1 output_value write to output register input_value MMnet103_SEL2 read from inpu...

Page 27: ...4 AD5 AD6 AD7 OE 1 D0 2 D1 3 D2 4 D3 5 D4 6 D5 7 D6 8 D7 9 GND 10 CP 11 Q7 12 Q6 13 Q5 14 Q4 15 Q3 16 Q2 17 Q1 18 Q0 19 VCC 20 74HCT574 Figure 20 An example of using the SEL output as an address selection output 4 Programming the module The ATmega128 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 the...

Page 28: ...MISO SCK RST LED MOSI ISP 1k 5V Figure 21 Connecting the MMnet103 module with an ISP connector AD7 J1_1 AD6 J1_2 AD5 J1_3 AD4 J1_4 AD3 J1_5 AD2 J1_6 AD1 J1_7 AD0 J1_8 A1 J1_9 A0 J1_10 SEL2 J1_11 SEL1 J1_12 PE7 J1_13 PE6 J1_14 PE5 J1_15 PE4 J1_16 PE3 J1_17 PE2 J1_18 PE1 J1_19 PE0 J1_20 ADC7 J1_21 ADC6 J1_22 ADC5 J1_23 ADC4 J1_24 ADC3 J1_25 ADC2 J1_26 ADC1 J1_27 ADC0 J1_28 AREF J1_29 AGND J1_30 A 5V...

Page 29: ...vailable to the user for communication with peripherals and it uses other outputs Programmers which can be used to program the MMnet103 can be found on the following pages ISPCable I http www propox com products t_77 html lang en ISPCable II 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 i...

Page 30: ...gure 24 Connection of the MMnet103 module with the JTAG connector 1 2 9 10 GND Vref NSRST NTRST GND TCK TDO TMS VCC TDI Figure 25 JTAG connector PIN DESCRIPTION TCK Test Clock clock signal from emulator to target TDO Test Data Output data signal from target to emul TMS Test Mode Select mode select signal from VCC Supply voltage to the emulator TDI Test Data Input data signal from emul to target Vr...

Page 31: ...19 PD4 J2_20 PD3 J2_21 PD2 J2_22 PD1 J2_23 PD0 J2_24 PB7 J2_25 PB6 J2_26 PB5 J2_27 PB4 J2_28 PB3 J2_29 PB2 J2_30 PB1 J2_31 PB0 J2_32 MMnet103 module 5V 3 3V GND GND GND LAN 1 2 3 ARK3 1N4148 GND BC 857 12V 1 2 3 ARK3 1N4148 GND BC 857 4k7 4k7 1k5 1k5 GND GND RREL2 RREL1 Figure 26 MMnet103 in a simple application controlling relays through the Ethernet network 6 Evaluation Board In order to facilit...

Page 32: ... 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 setting of resistors a detailed description of the problem 9 Guarantee The MMnet103 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 Tra...

Page 33: ...33 Figure 27 Assembly drawing top layer Figure 28 Assembly drawing bottom layer ...

Page 34: ...34 11 Dimensions Figure 29 Dimensions top view Figure 30 Dimensions side view 12 Schematics ...

Page 35: ...17 9 U2 RAM_A16 5V RAM_SEL RAM_SEL RD WR AD0 AD2 AD1 AD6 AD4 AD5 AD7 AD3 ALE A14 A8 A10 A12 A9 A13 A15 A11 RESET RAM_A15 RAM_A16 SEL2 LAN_SEL PE3 PE5 PE6 PE7 PE2 PE4 PE1 PE0 ADC0 ADC2 ADC6 ADC4 ADC5 ADC1 ADC7 ADC3 PD0 PD1 PD2 PB3 PD7 PB0 PD6 PB2 PD5 PD3 PB4 PB6 PD4 PB1 PB5 PB7 RESET AREF AGND AGND A 5V 5V AD6 AD0 AD2 AD4 AD1 AD5 AD7 AD3 3 3V GND GND SEL1 SEL2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16...

Page 36: ...40 VDD 1 VDD 33 VDD 44 VDD 62 VDD 77 VDD 98 VDD 110 VDD 120 AVDD 11 AVDD 16 VSS 24 VSS 39 VSS 52 VSS 57 VSS 67 VSS 72 VSS 93 VSS 103 VSS 108 VSS 117 AVSS 13 AVSS 19 TPO 14 TPO 15 TPI 17 TPI 18 LNK 20 LBK 21 CNTRL 28 RBIAS 12 LEDA 22 LEDB 23 RXD3 121 RXD2 122 RXD1 123 RXD0 124 TXD3 113 TXD2 114 TXD1 115 TXD0 116 TXEN100 111 CRS100 119 COL100 112 RX_DV 125 RX_ER 126 MDI 25 MDO 26 MCLK 27 RX25 118 TX...

Page 37: ... R2 IN 8 VCC 16 GND 15 U11 ST232 1 6 2 7 3 8 4 9 5 J4 DB9F GND GND GND GND GND 5V 5V RS 232 RS232_TXD RS232_CTS RS232_RXD RS232_RTS C34 100n GND 5V PE1 PE0 RXD0 TXD0 PE3 PE2 JP3 JP4 JP5 JP2 R22 4k7 R23 4k7 R24 4k7 R25 4k7 Sheet 3 of 3 1 http www propox com email support propox com Size File Rev Date 25 01 2005 Title MMnet103 RS 232 ...

Reviews: