User’s r Manual - PROPOX · 2015. 2. 2. · Manual i i, a REV 1 d t e r K i s I E m e d d e 5 W e...
Transcript of User’s r Manual - PROPOX · 2015. 2. 2. · Manual i i, a REV 1 d t e r K i s I E m e d d e 5 W e...
-
����
� � �� � �� � �� � � � � �� � � �� � � �� � � �� Evaluation Board for
MMnet02
User’s Manual
REV 1
rter K
its E
mbed
ded W
eb S
erve
PIC
micro
contr
oller
s Sta-
s for
‘51,
AVR,
ST,
ation
Boa
rdEv
alu
rs Pr
ototyp
ing B
oard
s Mini
mod-
Micro
proc
esor
sys
tems,
PCB
AVR,
PIC
, ST
micr
ocon
trolle
rs
ed In
Sys
tem pr
ogra
mmer
s for
net c
ontro
llers,
RFI
D Hi
gh S
pe-
ules f
or m
icroc
ontro
llers,
ethe
r-
desig
ning E
valua
tion B
oard
s for
ether
net c
ontro
llers,
RFI
D Hi
gh
nimod
ules f
or m
icroc
ontro
llers,
Serve
rs Pr
ototyp
ing B
oard
s mi-
lers S
tarter
Kits
Emb
edde
d Web
‘51, A
VR, S
T, PI
C mi
croco
ntrol-
Spee
d In S
ystem
s pro
gram
me-
roco
ntroll
ers S
tarter
Kits
Emb
e-
ards
for
5̀1, A
VR, S
T, PI
C mi
c-
PCB
desig
ning E
valua
tion B
o-
oller
s Micr
opro
ceso
r sys
tems,
rs for
AVR,
PIC
, ST
micro
contr
l-
dded
Web
Ser
wers
Proto
typing
mers
for A
VR, P
IC, S
T mi
croco
-
High
Spe
ed In
Sys
tem pr
ogra
m-
contr
oller
s, eth
erne
t con
trolle
rs,
Boar
ds M
inimo
dules
for m
icro-
co
ntroll
ers M
icrop
roce
sor
Bo
ards
nin
g Eva
luatio
n
Sys
tems,
PCB
Desig
-
R
Many ideas one solution
-
Contents
1 INTRODUCTION ....................................................................................................................................... 3
FEATURES .................................................................................................................................................... 3
2 THE BOARD.......................................................................................................................................... 4
PLACEMENT OF ELEMENTS ON THE BOARD ................................................................................................. 4 ARRANGEMENT ON LEAD-OUTS ................................................................................................................... 5 BOARD SUPPLY ............................................................................................................................................ 6 LED DIODES................................................................................................................................................. 6 PUSH-BUTTONS............................................................................................................................................ 7 LCD DISPLAY ............................................................................................................................................... 7 POTENTIOMETERS........................................................................................................................................ 8 BUZZER ........................................................................................................................................................ 8 RESET BUTTON .......................................................................................................................................... 9 RS-232 INTERFACE ..................................................................................................................................... 9 1-WIRE INTERFACE.................................................................................................................................... 10 CONNECTION TO THE ETHERNET NETWORK ............................................................................................. 11 ISP AND JTAG CONNECTORS ................................................................................................................... 12
3 TECHNICAL ASSISTANCE ............................................................................................................. 13
4 GUARANTEE ...................................................................................................................................... 13
5 BOARD LAYOUT AND DIMENSIONS ........................................................................................... 14
6 SCHEMATICS ..................................................................................................................................... 14
-
3
1 Introduction
The EVBnet02 board was created with the aim of providing a hardware base for a designer of systems relying on the MMnet02 minimodule, allowing to realize and verify quickly one’s own ideas. Having this in mind, the board has been designed in such a way that the user has access to all terminals of the module which are led out to connectors. The board houses also such peripherals as: LEDs, push-buttons, potentiometers, a LCD display, a RS232 interface, a 1-Wire connector. All these elements are accessible through pin connectors, permitting their connection with any processor port. The board has also a large prototype area which permits the designer to connect other elements in any configuration. Due to the incision (v-cut) between the prototype area and the rest of the board, the prototype part can be broken off. The board contains also a power supply which relieves the user from the need to provide a regulated supply voltage. Together with the board, we deliver source codes of the Nut/OS together with the TCP/IP stack as well as demonstration software. The EVBnet02 along with the MMnet02 minimodule can be also used in didactic laboratories of informatics colleges and universities, illustrating aspects of co-operation of electronic circuits with the Ethernet/Internet networks. It can be also used to build circuits realizing thesis projects.
We wish you nothing but success and a lot of satisfaction in designing and developing new electronic equipment based on the EVBnet02 board and the
Mmnet02 minimodule.
Features
• Socket for the MMnet02 module • Connector with all terminals of the MMnet02 module • Connectors of all peripherals accessible on board • Power supply (supplying power is taken from a standard socket or supplied through the Ethernet
cable) • Power switch • RJ45 Ethernet socket with transformer • RS232 port • 1-Wire connector • Connector for In System Programming • Multiplexer separating the ISP connector from the rest of the system • JTAG connector for in system programming and debugging • 2x16 LCD display (1) • 8 LED diodes • 4 push-buttons • 2 potentiometers • Buzzer • Prototype design area
Notice: 1. Mounted optionally
-
4
2 The Board
Placement of elements on the board
Figure 1 Placement of elements on the EVBnet02 board.
1. Prototype area 2. Connector with led-out MMnet02 module terminals 3. 1-Wire connector 4. RJ45 Ethernet connector 5. RS232 connector 6. Supply connector 7. Power switch 8. Programming connector in the JTAG system 9. Programming/emulation connector in the JTAG system 10. LCD display 11. LED diodes 12. Push-buttons 13. Potentiometers 14. RESET button 15. Peripheral connectors 16. Buzzer 17. MMnet02 module
-
5
Arrangement on lead-outs Numbering of terminals is in accord with the numeration in the MMnet02 minimodule. The terminals of Ethernet controller TPIN, TUPOT have not been led out to a connector.
Function in MMnet02 Name
Name Function in MMnet02
+5V 1 2 GND
+3.3V 3 4 GND
Vbat 5 6 GND
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 #INT0/SCL RTC – SCL
PB7/ OC2/PWM2 25 26 OC1B/PWM1B DataFlash2 - #CS
DataFlash1 – #CS PB5/ OC1A/PWM1A 27 28 OC0/PWM0
DataFlash1/2 – MISO PB3/ MISO 29 30 MOSI DataFlash1/2 - MOSI
DataFlash1/2 – SCK PB1/ SCK 31 32 PB0/#SS AD7 1 2 AD6
AD5 3 4 AD4
AD3 5 6 AD2
AD1 7 8 AD0
A1 9 10 A0
SEL2 11 12 SEL1
RTL8019AS interrupt PE7/ INT7 13 14 PE6/ INT6
RTL8019AS int. (opt.) PE5/ INT5 15 16 PE4/ INT4
PE3/ AC- 17 18 PE2/ AC+
PE1/ PDO/TPD 19 20 PE0/ PDI/RxD
PF7/ ADC7/TDI 21 22 PF6/ ADC6/TDO
PF5/ ADC5/TMS 23 24 PF4/ ADC4/TCK
PF3/ADC3 25 26 PF2/ ADC2
PF1/ ADC1 27 28 PF0/ ADC0
AREF 29 30 AGND
A+5V 31 32 AGND
-
6
Board supply
The EVBnet02 board can be supplied in two ways:
• From an external power supply with an output of 7-12 V AC or 9-15 V DC, having a standard plug with a bolt diameter of 2.1 mm, connected to supply socket J3. In case of a DC supply voltage its polarity is irrelevant.
• Through the J5 Ethernet connector. The terminals of the connector to which the supplying power is applied should conform to the Power over Ethernet 802.3af standard (however, the applied voltage should not be higher than 12V AC !). In order to apply power through the RJ45 connector, the board should be provided with JP1 jumpers.
The regulated + 5 V voltage is led out to the J1 connector (+ 5V) and J14 (GND).
Both supply methods should not be used simultaneously.
+
470u/25VC8
GND
1N4148
D2
100nC13
100nC12
- +
2
1
3
4
RB152BR1
123
ZASILANIE
J3 Vin VoutGND
7805U4
+5V
+
47u/16VC11
SW1
12
34
JP1
LAN_GND
12345678
RJ-45J5
Figure 2 Implementation of the power supply on the EVBnet02 board.
LED diodes
The EVBnet02 has 8 LED diodes which play the role of the simplest interface between the system and the user. The board is constructed in such a way that it allows any connection between the diodes and microcontroller leads. A diode lights up when a low signal level is applied to appropriate leads. The LED current flowing into the microcontroller pin is about 3 mA.
-
7
LED1D9
LED0D10
LED2D8
LED3D7
LED4D6
LED5D5
LED6D4
LED7D3
1kR15
1kR13
1kR14
1kR12
1kR11
1kR10
1kR9
1kR8
+5V
1 23 45 67 8
LEDn
J10
Figure 3 Implementation of LED diodes.
Push-buttons
The EVBnet02 board is equipped with four microswitches which can be connected to any lead of the microcontroller. Pushing a button causes a low state on any port terminal.
10kR19
10kR18
10kR17
10kR16
+5V
SW0
SW1
SW2
SW3
GND
1 23 4
SWn
J12
Figure 4 Implementation of push-buttons.
LCD display
The LCD display is connected to the data bus of the microcontroller. The connection method permits only the write operation to the display, which is, however, sufficient for its operation. The SEL1 output should be configured as a write strobe. The display is seen in the address space from 0xFF04 to 0xFF05, the choice between the instruction register and the data register of the display is executed by means of the A0 address line: 0xFF04 – instruction register 0xFF05 – data register The contrast voltage of the LCD is set by the voltage divider R4 and R5.
-
8
1234567891011121314
LCD 16x2
J11
100nC15
GND
+5V
A0
+5VGND
AD1
AD5
AD7
AD3
AD6
AD0
AD2
AD4
#SEL1GND
7k5R4
620R5
Figure 5 Connection of the LCD display to the microcontroller bus.
Potentiometers
EVBnet02 has two potentiometers, POT0 and POT1. The potentiometers can be used to simulate the outputs of analog circuits. The voltage across POTx terminals can be adjusted in the 0....REF range.
13
2
10kPOT1
R20
GND
13
2
10kPOT0
R21
AREF
1 23 4
J13
Figure 6 Implementation of potentiometers.
Buzzer
The board has a built-in acoustic signaler, controlled by a logic low state through a transistor. The base of the transistor is connected to connector J13 as SPK.
-
9
BUZZER
LS1BC 857Q1
CAPC17
GNDGND
+5V
1 23 4
J13
10k
R6
Figure 7 Implementation of the Buzzer
RESET button
The MMnet02 board has a led-out RESET signal which can be used as the output to reset external circuits and as the input to reset the module, e.g. through the RESET push-button. The EVBnet02 board is equipped with an on-board resetting button; by pressing it we force a low state on the RESET terminal of the module.
#RESET
RESETSW6
GND
+5V
100nC16
GND
4k7R7
Figure 8 Implementation of the RESET push-button.
RS-232 interface
The EVBnet02 board has one port for serial RS232 transmission with a DB-9 connector. The lead-outs TxD, RxD, RTS, CTS are applied to the jumpers through a MAX232 level converter. The DSR and DTR signals have been shorted.
Applying jumpers causes the connection of TxD and RxD to the USART0 port of the microcontroller and of CTS and RTS signals to line PE2 and PE3, respectively. Signals of the RS232 port can be connected also to any lead-outs of the microcontroller by means of cables.
-
10
Attention: if flow control has not been implemented, signals CTS and RTS should be connected to each other by means of a jumpers (as shown in the figure) in order to assure proper communication.
+ 100nC6
+ 100nC7
+100nC4
+100nC5
V+2C1+ 1
C1- 3
C2+ 4
C2- 5
V-6
T1 IN 11
T2 IN 10
R1 OUT 12
R2 OUT 9
T1 OUT14
T2 OUT7
R1 IN13
R2 IN8
VC
C16
GN
D15
MAX232
U1
162738495
DB9F
J4
GNDGND
GND
GND GND
+5V
+5V
RS232_TXDRS232_CTSRS232_RXDRS232_RTS
PE1
PE0 (RXD0)
(TXD0)
PE3
PE2JP4
JP2
JP5
JP3
Figure 9 Connection of the RS-232 port to the MMnet02 board.
1-Wire Interface
The EVBnet02 board has a 1-Wire bus connector. This connector can be used to connect e.g. a digital DS1820 thermometer or Dallas/Maxim iButton reader from. The data signal has been applied to the J13 connector and designated as 1-W. It can be connected to any microcontroller lead-out by means of the attached cable.
VTG
DA
TA
GN
D
1
1WIRE
+5V
GND
123
1-WIRE
J2
+5V
1 23 4
J13
2k2R2
100R
R1
Figure 10 Connection of the 1-Wire connector.
-
11
Connection to the Ethernet network
The EVBnet02 board has an Ethernet RJ-45 socket. The lead-outs of the RJ-45 are connected with the Ethernet RTL8019AS controller through a 10Base-T transformer. The maximum cable length between the EVBnet02 board and the hub/switch is 100 meters.
1
2
3
4
5
6
7
8
16
15
14
11
10
9
13
12
XM
ITR
CV
20F001N
U2
10nC10
10nC9
10n/2kVC2
10n/2kVC3
LAN_GNDLAN_GND
AC2
AC1
12
34
JP1
GND GND
TPIN+
TPOUT+
TPIN-
TPOUT-
LAN_GND
JP6
12345678
RJ-45J5
Figure 11 Connection to he Ethernet through a transformer.
TX
+T
X-
RX
+N
/CN
/CR
X-
N/C
N/C
Figure 12 RJ-45 connector pin description.
-
12
ISP and JTAG connectors
Programming of the module can be effected through the ISP or JTAG interfaces (the second one permits also debugging in the system).
The ISP standard programmer communicates with the microcontroller through a three-wire SPI interface (plus the RESET signal and power supply). The interface uses the I/O pins of the microcontroller (PE0, PE1 and PB1) which, after programming, can perform usual functions. The LED signal controls the operation of multiplexer U3 which disconnects, for the duration of the programming session, the ISP bus lines from the peripheral circuits of the board, thus eliminating the possibility of an accidental writing operation into these circuits. During the writing operation this line should be in the low state. The JP7 short allows manual control of the multiplexer in case of using a programmer which is not serving this line.
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 and lock bits.
12345678910
ISP
J6
#RESET
GNDGNDGNDGND+5V
X012
X113
Y02
Y11
Z05
Z13
INH6
A11
B10
C9
X 14
Y 15
Z 4
VDD 16
VSS 8
VEE 7
4053
U3
PE0_M
PE1_M
PB1_MPE1
PB1
PE0
GND
GND
+5VADC7
ADC6ADC5
ADC4
TDI
TDOTMS
TCK
+5VGNDGND
ISP
D1+5V
1 23 45 67 89 10
JTAG
J8
GND
+5V#RESET
1k
R3
JP7
GND
ISP Enable
Figure 13 Connection of the MMnet02 module with the JTAG connector.
-
13
1 2
9 10
VCCGNDGNDGNDGND
MOSILEDRSTSCKMISO
Figure 14 ISP connector.
Pin description MOSI Commands and data from programmer to target LED Multiplexer and LED diode driving signal RST RESET signal SCK Serial Clock, Controlled by programmer MISO Data from target AVR to programmer VCC Supply voltage to the programmer GND Ground
1 2
9 10
GNDVrefNSRSTNTRSTGND
TCKTDOTMSVCCTDI
Figure 15 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 emulator to target VCC Supply voltage to the emulator TDI Test Data Input, data signal from emul. to target Vref Target voltage sense RST RESET signal GND Ground
Programmers which may be used with EVBnet02 and MMnet02 may be found on 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 programmer/emulator may be found on page: - JTAGCable I: http://www.propox.com/products/t_99.html?lang=en
3 Technical assistance In order to obtain technical assistance please contact [email protected] . In the request please include the following information:
• Number of the board version (e.g. REV 2) • Setting of resistors • A detailed description of the problem
4 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 MMnet02 module.
-
14
5 Board layout and dimensions
6 Schematics
-
15
Sheet 1 of 4 1.00
http://www.propox.comemail: [email protected]
Size: File: Rev:
Date: 28-06-2004
Title: MMnetEVB
AD7J1_1
AD6J1_2
AD5J1_3
AD4J1_4
AD3J1_5
AD2J1_6
AD1J1_7
AD0J1_8
A1J1_9
A0J1_10
#SEL2J1_11
#SEL1J1_12
PE7/INT7J1_13
PE6/INT6J1_14
PE5/INT5J1_15
PE4/INT4J1_16
PE3/AC-J1_17
PE2/AC+J1_18
PE1/PDO/TxD0J1_19
PE0/PDI/RxD0J1_20
PF7/ADC7J1_21
PF6/ADC6J1_22
PF5/ADC5J1_23
PF4/ADC4J1_24
PF3/ADC3J1_25
PF2/ADC2J1_26
PF1/ADC1J1_27
PF0/ADC0J1_28
AREFJ1_29
AGNDJ1_30
A+5VJ1_31
AGNDJ1_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/T2 J2_17
PD6/T1 J2_18
PD5 J2_19
PD4/IC1 J2_20
PD3/INT3/TxD1 J2_21
PD2/INT2/RxD1 J2_22
PD1/INT1/SDA J2_23
PD0/INT0/SCL J2_24
PB7/OC2/PWM2 J2_25
PB6/OC1B/PWM1B J2_26
PB5/OC1A/PWM1A J2_27
PB4/OC0/PWM0 J2_28
PB3/MISO J2_29
PB2/MOSI J2_30
PB1/SCK J2_31
PB0/SS J2_32
MMnet02 module
M1
12345678910
ISP
J6
#RESET
GNDGNDGNDGND+5V
X012
X113
Y02
Y11
Z05
Z13
INH6
A11
B10
C9
X 14
Y 15
Z 4
VDD 16
VSS 8
VEE 7
4053
U3
PE0_M
PE1_M
PB1_MPE1
PB1
PE0
GND
GND
+5VADC7
ADC6ADC5
ADC4
TDI
TDOTMS
TCK
+5VGNDGND
#RESET
RESETSW6
GND
+5V
BUZZER
LS1BC 857Q1
CAPC17
GNDGND
+5V
LED1D9
LED0D10
LED2D8
LED3D7
LED4D6
LED5D5
LED6D4
LED7D3
1234567891011121314
LCD 16x2
J11
100nC15
GND
+5V
A0
+5V
+5V
GND
123
1-WIRE
J2
+5V
13
2
10kPOT1
R20
GND
13
2
10kPOT0
R21
AREF
ISP
D1
GND
PE3PE5
PE6PE7
PE2PE4
ADC0ADC2
ADC6ADC4ADC5
ADC1
ADC7
ADC3
PD0PD1PD2
PB3
PD7
PB0
PD6
PB2
PD5PD3
PB4PB6
PD4
PB5PB7
#RESET
AREFAGNDAGND
A+5V
+5V
AD6
AD0AD2AD4
AD1
AD5AD7
AD3
+3.3VGND
GND
#SEL1#SEL2
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 2829 3031 32
Header 16X2
J9
GND
A0A1
VbatLED_ACTIVLED_LINK
#RD#WRLED_DF
PE3
PE5
PE7
ADC5
ADC1
ADC7
ADC3
AREF
A+5V
AD1
AD5
AD7
AD3
#SEL2
A1
PE6
PE2
PE4
ADC0
ADC2
ADC6
ADC4
AGND
AGND
AD6
AD0
AD2
AD4
#SEL1
A0
PD1
PB3
PD7
PD5
PD3
PB5
PB7
#RESET
+5V
+3.3V
TPIN+
TPOUT+
Vbat
#WR
PD0
PD2
PB0
PD6
PB2
PB4
PB6
PD4
GND
GND
TPIN-
TPOUT-
GND
LED_ACTIV
#RD
LED_DF
LED_LINK
+5V
1kR15
1kR13
1kR14
1kR12
1kR11
1kR10
1kR9
1kR8
+5V
10kR19
10kR18
10kR17
10kR16
+5V
SW0
SW1
SW2
SW3
GND
AD1
AD5
AD7
AD3
AD6
AD0
AD2
AD4
#SEL1
1 23 45 67 89 10
JTAG
J8
GND
+5V#RESET
100nC16
GND
1 23 4
J12
1 23 45 67 8
J10
100nC14
GND
+5V
PE0_MPE1_M
PB1_M
PE1
PB1
PE0
1 23 4
J13
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 28
Header 14X2
J7
GND
2k2R2
100R
R1
4k7R7
10k
R6
1k
R3
7k5R4
620R5
JP7
GND
ISP Enable
-
16
+ 100nC6
+ 100nC7
+100nC4
+100nC5
V+2C1+ 1
C1- 3
C2+ 4
C2- 5
V-6
T1 IN 11
T2 IN 10
R1 OUT 12
R2 OUT 9
T1 OUT14
T2 OUT7
R1 IN13
R2 IN8
VC
C16
GN
D15
MAX232
U1
162738495
DB9F
J4
GNDGND
GND
GND GND
+5V
+5V
RS
-232
Sheet 2 of 4 1.00
http://www.propox.comemail: [email protected]
Size: File: Rev:
Date: 28-06-2004
Title: MMnetEVB
1
2
3
4
5
6
7
8
16
15
14
11
10
9
13
12
XM
ITR
CV
20F001N
U2
10nC10
10nC9
10n/2kVC2
10n/2kVC3
LAN_GNDLAN_GND
AC2
AC1
12
34
JP1
GND GND
TPIN+
TPOUT+
TPIN-
TPOUT-
RS232_TXDRS232_CTSRS232_RXDRS232_RTS
PE1
PE0 (RXD0)
(TXD0)
PE3
PE2
LAN
LAN_GND
JP4
JP2
JP5
JP3
+
470u/25VC8
GND
1N4148
D2
100nC13
100nC12
- +
2
1
3
4
RB152BR1
123
ZASILANIE
J3
Vin VoutGND
7805U4
AC2
AC1
+5V
+
47u/16VC11
+12V
100nC1
GND
+5V
JP6
12345678
RJ-45J5
GNDGND
+5V+5V
MH1 MH2 MH4 MH5 MH3 MH6
GND GND GND GND
SW1 12
J14
12
J1
PO
WE
R