Professional Documents
Culture Documents
MikroElektronika
Development tools - Books - Compilers
UNI-DS3
User’s Manual
3 in 1
USB 2.0 Serial With useful implemented peripherals, many practical
Ethernet code examples and a broad set of add-on boards (Serial
Ethernet, Compact Flash, MMC/SD, ADC, DAC, CAN,
IN-CIRCUIT SUPPORTED
PROGRAMMER RTC, RS-485, etc.), MikroElektronika development
boards make fast and reliable tool which can satisfy
MMC/SD needs of experienced engineers and beginners alike.
MASS STORAGE
256MB
SUPPORTED
Software and Hardware
solutions for Embedded World
UNI-DS3
KEY FEATURES
1. External power supply from 8 to 16 V AC/DC;
2. Choose between external and USB power
supply. You don’t need an external supply if
you choose powering from PC’s USB port ;
3. RS232 communication port ;
4. 4.096V voltage reference is used for working
with A/D converter ;
5. If you set jumper to the upper position the
pins of appropriate port are set to logical one
(pull-up). If you set jumper to the lower pos-
ition, the pins are set to logical zero (pull-
down). It is very important to select pull-up for
the port if you expect logical zero on it’s inputs
and vice versa ;
6. You can connect LCD if you need it for your
application in 4-bit mode ;
7. You can connect Graphic LCD if you need it
for your application or LCD in 8-bit mode ;
8. MCU Card socket ;
9. 72 buttons enable you to control every pin on
your microcontroller ; 21. D\A converter output ;
10. You can choose how to affect a pin by pressing button, high 22. A\D converter input ;
state or low state ; 23. Serial Ethernet on board ;
11. See all the signals - each pin has an LED ; 24. USB connector for MCUs with USB support ;
12. All switches on SW1 and switch 1 on SW2 are used to turn 25. USB connector for USB 2.0 programmer ;
LEDs on all MCU ports ON or OFF. Switches 2, 3, 4 and 5 on
SW2 are used to enable Serial Ethernet and switches 6, 7 and 8
are used to enable CAN communication ;
13. Switch 1 on SW3 enables Real Time Clock Interrupt. Switches 2,
3 and 4 on SW2 are used to enable A\D and D\A modules.
Switches 5, 6, 7, and 8 on SW3 are used to enable RS232 com
munication ;
14. Switches 1, 2 and 3 on SW2 are used to enable RS485 commu-
nication, switches 4, 5 and 6 to enable SPI communication lines
and switches 7 and 8 to enable Real Time Clock ;
15. Set LCD contrast according to your display characteristics ;
16. Reset circuit - if the reset button is pressed a hardware reset will
happen (MCU will start executing from the beginning) ;
17. MMC/SD slot for multimedia cards with storage space up to 2GB;
18. RS485 communication port ;
19. CAN communication port ;
20. Real Time Clock ;
MikroElektronika
Development tools UNI-DS3 User’s Manual
CONTENTS
CONTENTS
CONNECTING THE SYSTEM page 5
INTRODUCTION page 6
CONTENTS
MCU Cards page 35
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
4 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
The development system box contains: development system, product CD, USB cable,
RS232 cable and this manual.
Step no.1 The first thing you should do is to take your development board and MCU Card out of the
box. Place carefully the MCU Card into the MCU Socket. Unpack USB cable and connect
it to the PC. Please use the USB ports at the back of the PC with direct connection to the
motherboard.
Step no.1 is common for all MCU cards. After you have done this, please refer to the cor-
responding pages of this manual which describes the MCU Card you picked. In order to fin-
ish installation follow instructions for installation of the MCU Card.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 5
UNI-DS3 User’s Manual
INTRODUCTION MikroElektronika
Development tools
INTRODUCTION
UNI-DS3 development system is a full-featured development board for a broad range of
microcontrollers. The development system supports Philips ARM microcontrollers, Atmel
8051 and 64pin AVR microcontrollers, Microchip DIP40 PIC, 80pin PIC and dsPIC, as well
as Cypress PSoC microcontrollers. It enables microcontrollers to be interfaced with a wide
range of peripheral devices, enabling user to concentrate just on the software.
Figure 1. illustrates the development board.On a silkscreen, there are identification marks
beside each component. These marks describe connections to microcontroller, operation
modes and provide other useful notes. Need for additional schematics is minimized as all
relevant information is on the board.
UNI-DS3 development board Figure 1.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
6 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
MCU-VBUS
7
8
91
92
MCU-USBDP
MCU-USBDN
ent MCU Card is designed.
RSTBUT1
RSTBUT2
9
10
93
94 GND Development board goes together with standard DIMM-168P
#RX232A 11 95 #CAN-CS MCU Card Connector which enable you easy switch between
#TX232A 12 96 #CAN-RST
13
14
97
98
#CAN-INT
MCU Cards.
15 99
16 100 #RT485
#RX485 17 101 #RX232B
#TX485 18 102 #TX232B
#MISO 19 103
#MOSI 20 104
#SCK 21 105
#ADC-CS 22 106
#DAC-CS 23 107
#DAC-LD 24 108
MMC-CS 25 109
26 110
#RTC-INT 27 111
#SCL 28 112
#SDA 29 113 #ETH-INT
30 114 #ETH-WOL
31 115 #ETH-CS
32 116 #ETH-RST
D0 33 117
D1 34 118
D2 35 119 LCD-CS1
D3 36 120 LCD-CS2
D4 37 121 LCD-RS
D5 38 122 LCD-RW
D6 39 123 LCD-E
D7 40 124 LCD-RST
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 7
UNI-DS3 User’s Manual
JUMPERS MikroElektronika
Development tools
JUMPERS
Jumpers can break or establish a connection between two points. Under a plastic cover of
jumper is a metal contact that makes connection if the jumper is placed between two pins
which are not connected.
For instance, jumpers J17, J18 and J19 are used to enable Multimedia Memory Card (MMC)
to work with microcontrollers with 3.3V power supply voltage level. A connection is made
by placing jumper between two contacts.
Jumper is ON
Jumper is OFF
Jumpers are more often used as a selectors between two possible connections using three
pin connector. As illustrated in Fig. 5, the pin in the middle can be connected to the left or
to the right pin, depending on the jumper position.
All lines are Left line Right line
disconnected is selected is selected
Figure 5.
Jumper as a
multiplexer
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
8 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
SWITCHES
SWITCHES
UNI-DS3 development board features peripheral devices. In order to enable these devices
before programming, you need to check if appropriate jumpers or switches have been prop-
erly set. Switches are devices that have two positions - ON and OFF , which have a role to
establish or break a connection between two contacts.
UNI-DS3 development board has four groups of switches.The first group, SW1, and switch
1 on SW2 are used to enable LEDs connected to PORTA, PORTB, PORTC, PORTD,
PORTE, PORTF, PORTG, PORTH and PORTJ. For instance, if the switch PORTA is ON,
all LEDs from RA0 to RA7 will be turned on. Rest of the switches on SW2 are used to
enable a connection between microcontrollers and Serial Ethernet, and also between micro-
controlers and Controller Area Network (CAN) communication devices.
The third group, SW3, is used to enable communication between microcontrollers and
RS232 communication device by putting the last four switches in ON position.The first
switch is used toconnect microcontroller to Real Time Clock. Switches 2, 3, and 4 are
used to connect A/D and D/A converters to the microcontroller’s pins.
The first three switches on SW4 are used to enable a connection between microcon-
troller’s pins and RS485 communication devices. Switches 4, 5 and 6 are used to enable
SPI comunication, and switches 7 and 8 are used to connect Real Time Clock to the
microcotroller’s pins.
PORTA LEDs are enabled once the first
switch on SW1 is in ON position.
Figure 6.
1 2 3 4 5 6 7 8
ON
Switches
Switch is ON
Switch is OFF
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 9
UNI-DS3 User’s Manual
POWER SUPPLY MikroElektronika
Development tools
Note: USB connector CN15 should be used for USB programmer and USB power supply.
Figure 7.
EXT USB USB Power Supply
Power supply
connectors External Power Supply
EXT USB
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
10 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
USB CONNECTORS
USB 2.0 USB CONNECTORS
UNI-DS3 development board goes together with two USB connectors. USB connector
IN-CIRCUIT
PROGRAMMER CN21 is used for MCUs with USB support.
Since all the MCU cards has their own USB programmer, there is no need to use any exter-
nal equipment during programming. All you need to do is to connect the board to the PC
using the USB cable, then load your program into microcontroller via programming soft-
ware that is supplied with every MCU Card.
Note: There is no need to resetart MCU manually after programming. The programmer
will reset the MCU automatically.
Figure 10.
USB connectors
+5V USB
FP1
VCC
C1 FERRITE BEAD
100nF
CN15
3 87
USB connectors schematically 4 88
USB
PP-USBDP USB User
5 89
PP-VBUS PP-USBDN
6 90 Connector
MCU-USBDP
7 91
MCU-VBUS MCU-USBDN
8 92
RSTBUT1
9 93
RSTBUT2
10 94
CN11
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 11
UNI-DS3 User’s Manual
LEDs MikroElektronika
Development tools
LEDs
Light Emitting Diodes (LEDs) are the most commonly used components, usually for dis-
playing pin’s digital state. UNI-DS3 has 72 LEDs connected to the MCU Card Socket. Each
LED, if enabled, will display the state of the corresponding microcontoller pin.
Each gruop of eight LEDs can be enabled or disabled using SW1 and SW2, as shown in
Figure 13. Once enabled, LEDs will display the state of the corresponding microcontroller
pin, otherwise the LEDs will always be off, no matter what the port state is as no current
can flow through it.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
12 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
LEDs
Figure 13. LEDs schematically
CN11
ON
68 152
RF6 RF7
69 153
70 154
RG0 RG1
71 155
RG2 RG3
72 156
RG4 RG5
73 157
RG6 RG7
74 158
75 159
RH0 RH1
76 160
RH2 RH3
77 161
RH4 RH5
78 162
RH6 RH7
79 163
80 164
RJ0 RJ1
81 165
RJ2 RJ3
82 166
RJ4 RJ5
83 167
RJ6 RJ7
84 168
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 13
UNI-DS3 User’s Manual
PUSHBUTTON SWITCHES MikroElektronika
Development tools
PUSHBUTTON SWITCHES
UNI-DS3 development board has 72 push buttons which can be used to change states of dig-
ital inputs on microcontroller pins.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
14 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Button- connection example is shown in Figure 15. The figure shows how buttons are con-
PUSHBUTTON SWITCHES
nected to the PORTA.
Jumper J10 determines whether a button press will bring logical zero or logical one to the
appropriate pin.
When the button is not pressed, the pin state is determined by pull-up or pull-down port
jumpers.
In the example below, J10 is connected to +5V, therefore a button press will bring logical
one to the appropriate pins.
CN11
PORTA
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 15
UNI-DS3 User’s Manual
PUSHBUTTON SWITCHES MikroElektronika
Development tools
UNI-DS3 development board has one pushbutton placed on it’s left side acting as a RESET
button.
CN11
VCC VCC
1 85
2 86
GND GND
3 87
4 88
PP-USBDP
5 89
PP-VBUS PP-USBDN
6 90
MCU-USBDP
7 91
MCU-VBUS MCU-USBDN
8 92
RSTBUT1
9 93
T73 RSTBUT2 GND
10 94
#RX232A #CAN-CS
11 95
#TX232A #CAN-RST
12 96
#CAN-INT
13 97
14 98
15 99
Figure 16. Reset button 16 100
#RT485
#RX485 #RX232B
17 101
#TX485 #TX232B
18 102
#MISO
19 103
#MOSI
20 104
#SCK
21 105
#ADC-CS
22 106
#DAC-CS
23 107
#DAC-LD
24 108
Figure 17. MMC-CS
25 109
26 110
#RTC-INT
27 111
#SCL
Reset button schematically #SDA
28 112
#ETH-INT
29 113
#ETH-WOL
30 114
#ETH-CS
31 115
#ETH-RST
32 116
D0
33 117
D1
34 118
D2 LCD-CS1
35 119
D3 LCD-CS2
36 120
D4 LCD-RS
37 121
D5 LCD-RW
38 122
D6 LCD-E
39 123
D7 LCD-RST
40 124
Note: There is no need to reset MCU manually after programming. The programmer will
reset the MCU automatically.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
16 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
GRAPHIC LCD
GRAPHIC LCD GRAPHIC LCD
CONNECTOR
Graphic LCD (GLCD) enables advanced visual messages to be displayed. While character
ON-BOARD LCD can display only alphanumeric characters, GLCD is used to display messages as draw-
ings and bitmaps. The most commonly used graphic LCD has a screen resolution of 128x64
pixels.Before GLCD is connected, user needs to set jumper J16 to the GRAPH position.
GLCD contrast can be adjusted using potentiometer P1.
In order to
enable GLCD,
jumper J16
should be set to
the right-hand
position.
VCC
CN11
J16 GLCD contrast LCD8 contrast GLCD and LCD8
Vee selected selected contrast not selected
VCC VCC
CHAR. GRAPH. 1 85
2 86
GND GND
3 87
4 88
VCC 5 89
PP-USBDP
PP-VBUS PP-USBDN
6 90
P1 10K MCU-USBDP
7 91
R6 2.2 MCU-VBUS MCU-USBDN
8 92
Contrast Vo RSTBUT1
VCC RSTBUT2
9 93
GND
Adjustment 10 94
#RX232A #CAN-CS
11 95
#TX232A #CAN-RST
12 96
LCD-CS1
D1
LCD-CS2
LCD-RS
LCD-E
D0
D2
D3
D7
D6
#CAN-INT
D5
D4
LCD-RST
LCD-R/W
13 97
14 98
15 99
#RT485
16 100
#RX485 #RX232B
20 17 101
1 #TX485 #TX232B
18 102
CS1
D1
CS2
GND
VCC
RS
E
D0
D2
D3
D7
LED+
Vo
D6
Vee
D5
D4
RST
LED-
R/W
#MISO
19 103
#MOSI
20 104
#SCK
21 105
#ADC-CS
Figure 20. #DAC-CS
#DAC-LD
22
23
106
107
24 108
MMC-CS
25 109
26 110
GLCD schematic #RTC-INT
#SCL
27
28
111
112
#SDA #ETH-INT
29 113
#ETH-WOL
30 114
#ETH-CS
31 115
#ETH-RST
32 116
D0
33 117
D1
34 118
D2 LCD-CS1
35 119
D3 LCD-CS2
36 120
D4 LCD-RS
37 121
D5 LCD-RW
38 122
D6 LCD-E
39 123
D7 LCD-RST
40 124
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 17
UNI-DS3 User’s Manual
LCD 2X16 IN 4-BIT MODE MikroElektronika
Development tools
Figure 21.
LCD 2x16 in 4-bit mode
CN11
VCC VCC
1 85
2 86
GND GND
3 87
4 88
PP-USBDP
5 89
PP-VBUS PP-USBDN
6 90
MCU-USBDP
7 91
MCU-VBUS MCU-USBDN
VCC RSTBUT1
8 92
9 93
RSTBUT2 GND
10 94
#RX232A #CAN-CS
11 95
#TX232A #CAN-RST
Contrast 12 96
#CAN-INT
13 97
P2 Adjustment 14 98
15 99
10K 16 100
#RT485
#RX485 #RX232B
17 101
#TX485 #TX232B
18 102
#MISO
19 103
#MOSI
20 104
#SCK
21 105
D1
GND
VCC
VEE
D0
GND
GND
GND
GND
GND
D7
D6
D5
D4
#ADC-CS
22 106
#DAC-CS
23 107
#DAC-LD
24 108
MMC-CS
25 109
1 14 26 110
#RTC-INT
27 111
D1
GND
VCC
VEE
RS
E
D0
D2
D3
D7
D6
D5
D4
R/W
#SCL
28 112
#SDA #ETH-INT
29 113
Figure 22. 30
31
114
115
#ETH-WOL
#ETH-CS
#ETH-RST
LCD Display
32 116
D0
33 117
D1
34 118
LCD 2x16 in 4-bit D2
35 119 LCD-CS1
4-bit mode
D3 LCD-CS2
36 120
D4 LCD-RS
mode schematically D5
D6
37
38
121
122
LCD-RW
LCD-E
39 123
D7 LCD-RST
40 124
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
18 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
When you use character LCD in 8-bit mode, it should be placed on the GLCD connector.
Special attention is required for placing the LCD because this GLCD connector has 20 pins
and the character LCD has only 14 pins. Otherwise the LCD can be permanently damaged.
The LCD must be placed in the marked position with two free pins to the left and four free
pins to the right.Be sure that the power supply is off when you place or remove LCD.
Figure 23.
LCD 2x16 in 8-bit mode
NOTE: Special attention is required for placing LCD. Otherwise the LCD can be
permanently damaged.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 19
UNI-DS3 User’s Manual
LCD 2X16 IN 8-BIT MODE MikroElektronika
Development tools
VCC CN11
J16 GLCD contrast LCD8 contrast GLCD and LCD8
Vee selected selected contrast not selected
VCC VCC
1 85
CHAR. GRAPH. GND
2 86
GND
3 87
4 88
PP-USBDP
VCC 5 89
PP-VBUS PP-USBDN
6 90
MCU-USBDP
7 91
P1 10K MCU-VBUS MCU-USBDN
8 92
RSTBUT1
Vo 9 93
Contrast RSTBUT2
10 94
GND
LCD-E
D0
D2
D3
D7
D6
D5
D4
LCD-R/W
14 98
15 99
#RT485
16 100
#RX485 #RX232B
17 101
1 14 #TX485 #TX232B
18 102
#MISO
D1
GND
VCC
VEE
RS
E
D0
D2
D3
D7
D6
D5
D4
R/W
19 103
#MOSI
20 104
#SCK
21 105
#ADC-CS
22 106
#DAC-CS
LCD Display
23 107
#DAC-LD
24 108
MMC-CS
25 109
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
20 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
RS232 COMMUNICATION
RS232 RS-232 COMMUNICATION
RS-232 communication enables point-to-point data transfer. It is commonly used in data
ENABLED acquisition applications for data transfer between microcontroller and PC. Since the volt-
age levels of microcontroller and PC are not directly compatible with each other, a level
transition buffer such as MAX232 must be used.
Figure 25. RS232 Connector
UNI-DS3 development board has one RS232 communication device. This RS232 commu-
nication device can be connected to both RS232 communication ports of MCU through
DIP-switch SW3. Only one RS232 communication port can be connected to RS232 commu-
nication device at the time. In order to connect the RS232-A communication port, switches
5 and 6 on SW3 have to be turned on, and switches 7 and 8 have to be turned off (Fig. 26).
In order to connect the RS232-B communication port, switches 5 and 6 on SW3 have to be
turned off, and switches 7 and 8 have to be turned on.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 21
UNI-DS3 User’s Manual
RS232 COMMUNICATION MikroElektronika
Development tools
PC
6 9
RS232
CON 1 5
CONNECT Receive
MCU TO PC data (Rx)
SERIAL
CABLE
VCC
CONNECT
PC TO MCU Send
Data (Tx)
6 9 CN11
RS232-A CN13
SUB-D 9p
CON 1 5
1 85
2 86
1
2
7
9
3
6
5
4
3 87
4 88
PP-USBDP
5 89
PP-VBUS PP-USBDN
6 90
MCU-USBDP
7 91
MCU-VBUS MCU-USBDN
8 92
RSTBUT1
9 93
RSTBUT2
10 94
E8 #RX232A #CAN-CS
10uF 11 95
#TX232A #CAN-RST
VCC 12 96
#CAN-INT
13 97
U2 SW3 14 98
1 16 15 99
C1+ VCC #RT485
1 2 3 4 5 6 7 8
ON
16 100
MAX232
E5 2 15 #RX485 #RX232B
VS+ GND 17 101
10uF 3 14 #TX485 #TX232B
C1- T1OUT 18 102
#MISO
4 13 19 103
E7 C2+ R1IN #MOSI
5 12 20 104
10uF C2- R1OUT #SCK
6 11 21 105
#ADC-CS
VS- T1IN 22 106
7 10 #DAC-CS
T2OUT T2IN 23 107
#DAC-LD
8 9 24 108
R2IN R2OUT MMC-CS
E6 25 109
10uF
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
22 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
RS-485 COMMUNICATION
RS-485 RS-485 COMMUNICATION
RS-485 communication enables point-to-point and point-to-multipoint data transfer. It is
SUPPORTED
commonly used for data transfer between several microcontrollers. LTC485 interface tran-
ciever is used to transform signal from microcontroler’s Rx and Tx lines to differential sig-
nal on A and B output lines.
UNI-DS3 development board has one RS485 communica-
tion device. In order to provide more flexible system,
microcontroller is connected to the LTS485 through three
switches on SW4. These switches are used to connect Rt,
Rx and Tx lines from microcontroller to the RS485 port.
Figure 27.
RS232 Connector
VCC
CN11
VCC VCC
R22
1 85 10K
2 86
3 87 R29
4 88 4K7
PP-USBDP RX485 R31 CN22
5 89 RO VCC 51
PP-VBUS PP-USBDN
6 90
MCU-USBDP
RT485 485-B
1
7 91 RE B
MCU-VBUS MCU-USBDN
8 92 DE A
2
RSTBUT1
9 93 TX485 R32 485-A
RSTBUT2 DI GND
10 94 51
R30
#RX232A
LTC485 4K7
#CAN-CS
11 95
#TX232A #CAN-RST
12 96
#CAN-INT
13 97
14 98 SW4
15 99
#RT485
16 100
1 2 3 4 5 6 7 8
ON
#RX485 #RX232B
17 101
#TX485 #TX232B
18 102
#MISO
19 103
#MOSI
20 104
#SCK
21 105
#ADC-CS
22 106
#DAC-CS
23 107
#DAC-LD
24 108
MMC-CS
25 109
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 23
UNI-DS3 User’s Manual
CAN COMMUNICATION MikroElektronika
Development tools
CAN COMMUNICATION
Controller Area Network (CAN) is a serial network that was originally designed for auto-
motive industry, but has also become a popular bus in industrial automation as well as in
other applications. CAN is a network etablished among microcontrollers. It is two-wire,
half-duplex, high-speed network system. Half-duplex means that microcontrollers can send
and recieve data, but only in one direction at the
time.
UNI-DS3 development board has one CAN
communication device. Microcontroller is con-
nected to the CAN Controller through SPI
communication. In order to provide more flex-
ible system, CAN’s Chip Select, Interrupt and
Reset are connected through switches 6, 7 and
8 on SW2.
CAN Transciever
VCC
R23
10K
VCC VCC
CN24
CN11
1 2
100nF 100nF
TXD Rs
CAN2-H
GND CANH C16 C17
VCC CANL
RXD Vref CAN2-L 1 85
2 86
3 87
PCA82C250 4 88
VCC PP-USBDP
5 89
PP-VBUS PP-USBDN
VCC SW2 6 90
MCU-USBDP
7 91
MCU-VBUS MCU-USBDN
8 92
1 2 3 4 5 6 7 8
ON
VCC RSTBUT1
9 93
RSTBUT2
R24 R25 10 94
10K 10K
TxCAN Vdd
#RX232A #CAN-CS
R8 TRxCAN RESET 11 95
#TX232A #CAN-RST
10K 12 96
CLKOUT CS #CAN-INT
13 97
Tx0RTS SO 14 98
U8 SI 15 99
#RT485
Tx1RTS
16 100
#RX485 #RX232B
Tx2RTS SCK 17 101
SW4 #TX485
18 102
#TX232B
INT #MISO
OSC2 19 103
#MOSI
1 2 3 4 5 6 7 8
ON
20 104
OSC1 Rx0BF #SCK
21 105
#ADC-CS
X3 Vss Rx1BF 22 106
MOSI #DAC-CS
16MHz 23 107
#DAC-LD
MCP2510 MISO 24 108
C19 MMC-CS
C18
SCK 25 109
22pF 22pF 26 110
#RTC-INT
27 111
#SCL
28 112
#SDA #ETH-INT
29 113
#ETH-WOL
30 114
CAN Contoller 31
32
115
116
#ETH-CS
#ETH-RST
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
24 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Note: Make sure to select proper voltage level depending on the MCU Card attached to your
UNI-DS3 development board.
Improper VOLTAGE LEVEL can damage development system or Serial Ethernet chip!
Note: All three jumpers (J12, J13 and J14) must be in the same position (left or right).
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 25
SERIAL ETHERNET ON BOARD
page
26
VCC3.3
REG2 VCC VCC3.3 VCC3.3 VCC3.3
MC33269DT-3.3 VCC
CN11 VCC E4
10uF
R16 R17
R28
10K
1 20 1k 1k
DIR VCC
2 19 1 28
A0 OE VCAP VCC
3 18 2 27 VCC3.3
A1 B0 GND LEDA
4 17 3 26
1 85 A2 B1 CLKOUT LEDB
5 16 4 25 C12 22pF
2 86 A3 B2 INT OSC-VCC
6 15 5 24
3 87 A4 B3 WOL OSC2
7 14 6 23 X2
4 88 A5 B4 SO OSC1
PP-USBDP 13 7 22 25 MHz
8 B5 SI OSC-GND
5 89 A6
74HCT245
PP-VBUS PP-USBDN C13 22pF
9 12 8 21
MCU-USBDP 10 11 9 20 FP2
7 91 GND B7 CS PLL-VCC
MCU-VBUS MCU-USBDN 10 19 FERRITE
8 92 RESET RX-VCC
RSTBUT1 11 18 R18 BEAD
9 93 GND-RX TX-GND
ENC28J60/SP
RSTBUT2 12 17 51 CN19
10 94 TPIN- TPOUT+ 11 12
13 16
TPIN+ TPOUT-
14 15 R19 1
RBIAS TXVCC TD+ A2 K2
#RX232A #CAN-CS 51 3
11 95 J12 CT
#TX232A #CAN-RST 2
12 96 TD-
#CAN-INT R15 R15A 7
13 97 RD+ RJ45
1K2 1K2 6
14 98 CT
J13 R20 8
15 99 RD- A1 K1
#RT485 51
16 100 10n 10n
#RX485 #RX232B
17 101 9 10
#TX485 #TX232B R21 C14 C15
18 102 J14 51
#MISO
19 103
#MOSI
20 104
#SCK
21 105
#ADC-CS
22 106
#DAC-CS
23 107
#DAC-LD
24 108
MMC-CS
25 109
26 110
MISO
MOSI
SCK
ETH-INT
ETH-RST
ETH-ICS
ETH-WOL
#RTC-INT
27 111
#SCL
28 112 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1
#SDA #ETH-INT
29 113
#ETH-WOL
30 114
#ETH-CS
31 115
#ETH-RST ON ON
32 116
SW2 SW4
All microcontroller input/ouput pins can be accessed via connectors placed along the right-
hand side of the board. For each of the ports PORTA, PORTB, PORTC, PORTD, PORTE,
PORTF, PORTG, PORTH and PORTJ, there is one 10-pin connector providing VCC, GND
and up to eight port pins.
These connectors can be used for system expansion with external boards such as serial
GLCD, IrDA, CompactFlash, etc.
Ensure that on-board peripherals are not connected with the microcontroller by setting
appropriate jumpers while external peripherals use the same pins.The connectors can also be
used for attaching logic probes or other test equipment.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 27
UNI-DS3 User’s Manual
DIRECT PORT ACCESS MikroElektronika
Development tools
VCC
Figure 34.
Direct port access schematically
RN9 60 144
RE0 RE1
1 61 145
RE2 RE3
62 146
2 RE4 RE5
63 147
3 RE6 RE7
4 64 148
65 149
5 RF0 RF1
66 150
6 RF2 RF3
67 151
7 RF4 RF5
68 152
8 RF6 RF7
69 153
9
70 154
RG0 RG1
71 155
8x100K RG2 RG3
72 156
RG4 RG5
73 157
RG6 RG7
74 158
75 159
RH0 RH1
76 160
RH2 RH3
77 161
RH4 RH5
78 162
CN9 RH6 RH7
79 163
RJ0 RJ1 80 164
RJ0 RJ1
81 165
RJ2 RJ3 RJ2 RJ3
82 166
RJ4 RJ5
83 167
RJ4 RJ5 RJ6 RJ7
84 168
RJ6 RJ7
VCC
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
28 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
256MB
MMC card is used as a storage media for a portable device, in the form that can be easily
SUPPORTED removed for access by PC. For example, a digital camera uses MMC card to store image
files. With MMC reader ( a small box connected to USB or some other serial connection,
although some types can be found integrated into the computer itself), user could copy to
the computer the pictures taken with the digital camera.Microcontroller on UNI-DS3 devel-
opment board comunicates with Multimedia Card via SPI communication.
To enable MMC card you have to turn on switches 4, 5 and 6 on SW4, as shown in Fig-
ure36. By doing that SPI communication lines (SCK, MISO and MOSI) are connected to
microcontroller.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 29
UNI-DS3 User’s Manual
MMC/SD (MULTIMEDIA CARD) MikroElektronika
Development tools
Working voltage of the MMC Card is 3.3V DC. If voltage level of the MCU attached to
your UNI-DS3 development board is 5V, then jumpers J17, J18 and J19 should be discon-
nected. In that way, resistor voltage dividers are used for adjusting voltage from 5V to 3.3V
DC.
UNI-DS3 development board voltage level is 5V.
3.3V power supply voltage regulator (MC33269DT-3.3) is used for the MMC Card.
VCC
CN11
VCC3.3
100nF
C7
1 85 R9 R11 R13
2 86 2K2 2K2 2K2 VCC3.3 CN23
3 87
4 88
PP-USBDP
5 89 1
PP-VBUS PP-USBDN CS
6 90 2
MCU-USBDP
7 91 Din
MCU-VBUS MCU-USBDN 3
8 92 GND
RSTBUT1 4
9 93 +3.3V
RSTBUT2 5
10 94 SCK
6
GND MMC
7
#RX232A
11 95 #CAN-CS Dout CARD
#TX232A #CAN-RST
12 96 R10 R12 R14
#CAN-INT
13 97
14 98
3K3 3K3 3K3
15 99
#RT485
16 100
#RX485 #RX232B
17 101
#TX485 #TX232B
18 102
#MISO
19 103
#MOSI
20 104
#SCK
21 105
#ADC-CS REG2
22 106 SW4
#DAC-CS
23 107 MC33269 VCC
#DAC-LD
24 108 DT-3.3
1 2 3 4 5 6 7 8
ON
MMC-CS
25 109
26 110
#RTC-INT 3
27 111 GND VIN
#SCL MOSI
28 112 1
#SDA #ETH-INT MISO 2 VOUT
29 113 VCC3
#ETH-WOL
30 114 SCK
#ETH-CS
31 115 E16 C8 E15
#ETH-RST
32 116 10uF 100nF 10uF
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
30 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Figure 37.
A/D Converter input
UNI-DS2 development board has 12-bit, 4 input A/D converter MCP3204 with serial inter-
face. As shown in Figure 39, switches on SW3 and SW4 are used to enable communication
between microcontroller and AD converter device. Switch 2 on SW3 is used for AD Chip
Select (AD-CS), and switches 4, 5 and 6 on SW3 have to be turned on in order to enable
SPI communication between ADC device and microcontroller.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 31
UNI-DS3 User’s Manual
D/A CONVERTER MikroElektronika
Development tools
D/A CONVERTER
VREF
4.096V Digital-to-analog converter is a semiconductor device used to convert a digital code into an
ON-BOARD analog signal. The typical digital-to-analog converter outputs an analog signal, usually volt-
age or current which is proportional to the value of the digital code provided to it’s inputs.
Figure 38.
D/A Converter
UNI-DS3 has 12-bit D/A converter MCP4921 with serial interface. In order to enable D/A
converter, switches 3 and 4 on SW3 have to be turned on, as well as switches 4, 5 and 6 on
SW4, which role is to enable SPI communication between microcontroller and D/A convert-
er. D/A converter is schematically shown in Figure 39.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
32 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
CN18
CN17
CN16
CN11
2 1 2 1 VCC 1 2
VCC
J15 VCC
1 85
2 86
VCC MCP
REF1 3 87
1541 4 88
PP-USBDP
R26 R27 5 89
PP-VBUS PP-USBDN
10K 10K 6 90
R7 MCU-USBDP
1 14 1 8 7 91
100 CH0 VCC VCC VOUT MCU-VBUS MCU-USBDN
VIN 1 2 VOUT 2 13 2 7 8 92
RSTBUT1
MCP3204
ON
1 2 3 4 5 6 7 8
ON
C2 C3
ADC-CS
#SCK
21 105
#ADC-CS
DAC-CS 22 106
#DAC-CS
DAC-LD MOSI 23 107
#DAC-LD
24 108
MISO MMC-CS
25 109
SCK 26 110
#RTC-INT
27 111
#SCL
28 112
#SDA #ETH-INT
29 113
#ETH-WOL
30 114
#ETH-CS
31 115
#ETH-RST
32 116
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 33
UNI-DS3 User’s Manual MikroElektronika
Development tools
Real-Time Clock (RTC) is an integrated circuit chip that keeps track of the current time even
when the microcontroller is turned off. Real-time clock runs using a special battery which is
not connected to normal power supply.
In order to enable Real-Time Clock, switch groups SW3 and SW4 are used. You have to
turn on switch 1 on SW3, and switches 7 and 8 on SW4 in order to connect the Real-Time
Clock to the microcontroller’s pins.
Figure 40.
Real-Time Clock
VCC
CN11
VCC VCC
1 85
D1 2 86
BAT43 3 87
4 88
PP-USBDP
5 89
R3 10K
R4 10K
R2 10K
PP-VBUS PP-USBDN
C5 6 90
MCU-USBDP
20 pF
SW3 7 91
R1
51
ON
C4 10 94
D2
100 nF
A0 SCL
SDA #RX232A #CAN-CS
GND
BAT43
X1 11 95
#TX232A #CAN-RST
32,768 KHz 12 96
#CAN-INT
PCF8583P 13 97
14 98
15 99
#RT485
16 100
#RX485 #RX232B
17 101
#TX485 #TX232B
18 102
Figure 41. #MISO
#MOSI
19 103
SW4 20 104
#SCK
21 105
Real-Time Clock schematically #ADC-CS
22 106
1 2 3 4 5 6 7 8
ON
#DAC-CS
23 107
#DAC-LD
24 108
MMC-CS
25 109
26 110
#RTC-INT
27 111
#SCL
28 112
#SDA #ETH-INT
SDA #SDA 29 113
#ETH-WOL
30 114
SCL #SCL #ETH-CS
31 115
#ETH-RST
32 116
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
34 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
ICD
IN-CIRCUIT
DEBUGGER
mikroICD is a highly effective tool for Real-Time debugging on hardware level. mikroICD
debugger enables you to execute a program on microcontroller and see variables’ values,
Special Function Registers (SFR) and EEPROM while the program is running.
You can use the mikroICD within any of MikroElektronika’s compilers for PIC and dsPIC
(mikroC, mikroBasic or mikroPascal). All you have to do is to select appropriate build type
(Release or ICD Debug), build the project, program the MCU and select appropriate debug-
ger (mikroICD Debugger), then you are ready to go.
Note: For more information on how to use mikroICD debugger please refer to the mikroICD
documentation: “mikroICD User’s Manual”. You can also find it within the Help documen-
tation inside any of mentioned compilers.
mikroICD debugger uses on-board programmer to communicate with compiler and it sup-
ports common debugger commands:
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 35
UNI-DS3 User’s Manual
PLACING MCU CARDS MikroElektronika
Development tools
UNI-DS3 development board supports a broad range of MCU families. Each MCU family
has it’s own MCU Card which can be connected to UNI-DS3 development board via 168-
pin connector.
All you have to do in order to switch between different MCU Cards is to remove the exist-
ing MCU Card from the MCU socket and place a new one.
Note: Make sure to place MCU Card properly. Improper placement may damage MCU Card
or development board permanently!
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
36 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
USB Link LED indicates 8051 MCU card is connected to UNI-DS3 devel-
USB link state. opment board via 168-pin connector.
8051 MCU Card is delivered with AT89S52 40-pin microcontroller. Users can remove this
one and fit different microcontroller supported.
The 8051 MCU Card supports AT89S51, AT89S52, AT89S53, AT89S8252 and AT89S8253
microcontrollers.
There is no need to use external equipment during programming because 8051 MCU Card
has its own on-board USB2.0 programmer. All you need to do is to connect the UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the 8051Flash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the 8051 MCU Card (schematically shown
in Fig. 44) is labelled with a pin number which corresponds with the same pin number on
the UNI-DS3 development board. Each pin used on the 8051 MCU Card has also a logical
label which describes pin function.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 37
UNI-DS3 User’s Manual MikroElektronika
Development tools
VCC
8051 MCU CARD
R13
PROGRAM
10K
POWER
8051 MCU Card schematically RSTBUT
R5
1K
R14
1K
100n
C5
On-Board USB
programmer
8051Flash
MULTIPLEXER mRST VCC
SCK
MISO
MOSI
RB6 R1 27
USBDN
RB5 USBDP
RB6-MISO
RB5-MOSI
RB7-SCK
RB7 R2 27
R6
10K CN11
VCC VCC
1 85
2 86
VCC 3 87
A VCC 4 88 USBDP
F 5 89
USBDN
R11 1M 6 90
B 7 91
8 92
RSTBUT
E 9 93
10 94
C
#RX232A RD0 RD5 CAN-CS
D 11 95
R12 #TX232A RD1 RD6 CAN-RST
12 96
1K RD3 CAN-INT
GND 13 97
14 98
15 99
RD7 RT485
74HC04 16 100
#RX485 RD0 RX232B
X1 17 101
#TX485 RD1 TX232B
10MHz 18 102
MISO RB6
VCC 19 103
MOSI
22pF
22pF
RB5
20 104
C10
SCK
C9
R9 100K
RA2 4
29 113
RD4 ETH-WOL
RA3 5
30 114
RD5 ETH-CS
RA4 6
31 115
RA5 7 RD6 ETH-RST
32 116
RA6 8 D0 RA0
33 117
RA7 9
D1 RA1
34 118
D2 RA2 RC2 LCD-CS1
RB0 1 40 VCC 35 119
P1.0 VCC
8x10K
D3 RA3 RC3 LCD-CS2
36 120
RB1 2 39 RA0 D4 RA4 RC4 LCD-RS
P1.1 P0.0 37 121
D5 RA5 RC5 LCD-RW
RB2 3 38 RA1 38 122
P1.2 P0.1 D6 RA6 RC6 LCD-E
RB3 RA2 39 123
4 37 D7 RA7 RC7 LCD-RST
P1.3 P0.2 40 124
RB4 5 36 RA3
P1.4 P0.3
AT89S8252
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
38 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Before you move to the next step of instalation make sure that you have placed your 8051
MCU Card properly into MCU Socket on your UNI-DS3 development board and that USB
cable is connected to your PC.
Step no.2 Install the 8051FLASH programmer and drivers for the 8051 MCU Card.
Start installation from the product CD:
CD_Drive:\product\zip\8051Flash_setup.exe.
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
8051FLASH drivers. Select drivers in order to finish installation. The drivers are placed in
the folder:
System_Drive:\Program Files\MikroElektronika\8051FLASH\Driver.NT.
Step no.4 Run and use 8051FLASH as explained in the document ‘8051flash programmer’. The doc-
ument is placed in the following folder on the product CD:
CD_Drive:\product\pdf\8051prog_manual.pdf.
After these 4 steps, your 8051 MCU Card is installed and ready for use. You can try to read
a program from the chip or to load an example from the examples folder of mikroElektron-
ika’s compilers for 8051 or from the product CD:
CD_Drive:\product\zip\UNI_DS3_8051_examples.zip.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 39
UNI-DS3 User’s Manual
AVR MCU CARD MikroElektronika
Development tools
There is no need to use external equipment during programming because AVR MCU Card
has it’s own on-board USB2.0 programmer. All you need to do is to connect UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the AVRFlash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the AVR MCU Card (schematically shown
in Fig. 46) is labelled with a pin number which corresponds with the same pin number on
the UNI-DS3 development board. Each pin used on the AVR MCU Card has also a logical
label which describes pin function.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
40 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Figure 46. AVR MCU Card schematic
100n
100n
2 86
TCK RF4
C4
C5
3 87
4 88
USBDP
TDO RF6 5 89
USBDN
6 90
VCC VCC 7 91
TMS RF5 mRST RSTBUT1
8 92
9 93
10 94
Vsupply nTRST
RX232A RE0 RE2 CAN-CS
TDI RF7 11 95
TX232A RE1 RE3 CAN-RST
10uF
10uF
12 96
RE7
E1
E2
CAN-INT
13 97
14 98
15 99
HEADER 5x2 16 100
RD4 RT485
RX485 RD2 RD2 RX232B
17 101
TX485 RD3 RD3 TX232B
RB3
18 102
MISO
VCC VCC VCC 19 103
MOSI RB2
RB1
20 104
SCK
21 105
LED1 ADC-CS RB0
RB4
22 106
PROGRAM DAC-CS
10K
23 107
R6
DAC-LD RB5
24 108
RSTBUT MMC-CS RB6
25 109
1K
R5
RE4
26 110
RTC-INT
27 111
SCL RD0
28 112
SDA RD1 RE5 ETH-INT
29 113
RE6
100n
mRST ETH-WOL
C14
30 114
RB7 ETH-CS
31 115
RA1 ETH-RST
On-Board USB
32 116
D0 RC0
programmer
MULTIPLEXER 33 117
RB1
RE0
RE1
D1 RC1
34 118
AVRflash
45 129
R10 RB0 RB1
46 130
RB2 RB3
RE0-MOSI
RE1-MISO
mRST
RB1-SCK
VCC RB4
47 131
RB5
10K 74HC04 48 132
L1 RB6 RB7
49 133
10uH
50 134
C3
A VCC RC0 RC1
100n 51 135
RC2 RC3
52 136
F RC4 RC5
53 137
RC6 RC7
B 54 138
55 139
RF7
RF0
RF1
RF2
RF3
RF4
RF5
RF6
RA0
RA1
RA2
E RD0 RD1
56 140
RD2 RD3
57 141
C RD4 RD5
58 142
AREF
PA0
PF0
AVCC
GND
PF6
VCC
PF1
PF3
PF5
PF7
GND
PA1
PF4
PA2
PF2
RD6 RD7
D 59 143
PEN RA3 60 144
PA3
RA4 RE0 RE1
PE0 PA4 GND 61 145
PE1 PA5
RA5 RE2 RE3
RE2 RA6
VCC 62 146
PE2 PA6 RE4 RE5
RE3
PE3 PA7
RA7
63 147
RE4 RG2 RE6 RE7
RE5
PE4
PE5
PG2
RC7 64 148
PC7
RE6
ATmega128 RC6 65 149
RE7
PE6 PC6 R7 1M RF0 RF1
PE7 PC5
RC5
66 150
RB0 RC4 RF2 RF3
PB0 PC4 67 151
PB1 PC3
RC3
RF4 RF5
RB2
PB2 RC2 68 152
RB3 PC2
RC1 R8 VCC VCC RF6 RF7
RB4
PB3 PC1
RC0 69 153
PB4 PC0 1K
RB5 RG1 70 154
PB5 PG1 RG0 RG1
RB6
PB6 RG0 LED2 71 155
RESET
PG0
RG2 RG3
XTAL2
XTAL1
72 156
GND
POWER
VCC
PG3
PG4
PD2
PD3
PD0
PD1
PD4
PD5
PD6
PB7
PD7
RG4 RG5
73 157
X1 RG6 RG7
10MHz
1K
RB7
RG3
RG4
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
22pF
22pF
100n
C6
C1
C2
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 41
UNI-DS3 User’s Manual
CONNECTING THE AVR MCU CARD MikroElektronika
Development tools
Before you move to the next step of installation make sure that you have placed your AVR
MCU Card properly into MCU Socket on your UNI-DS3 development board and that USB
cable is connected to your PC.
Step no.2 Install AVRProg programmer and drivers for the AVR MCU Card.
Start installation from the product CD:
CD_Drive:\product\zip\AVRFlash_setup.exe.
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
AVRProg drivers. Select drivers in order to finish installation. The drivers are placed in the
folder:
System_Drive:\Program Files\MikroElektronika\AVRFLASH\Driver.NT.
Step no.4 Run and use AVRProg as explained in the document ‘AVRflash programmer’. The docu-
ment is placed in the following folder on the product CD:
CD_Drive:\product\pdf\AVRprog_manual.pdf.
After these 4 steps, your AVR MCU Card is installed and ready for use. You can try to read
a program from the chip or to load an example from the examples folder of mikroElektron-
ika’s compilers for AVR or from the product CD:
CD_Drive:\product\zip\UNI_DS3_AVR_examples.zip.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
42 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Figure 47. AVR MCU card is connected to UNI-DS3 develop- JTAG connector
ment board via 168-pin connector.
ARM Card
There is no need to use external equipment during programming because ARM MCU Card
has it’s own on-board USB2.0 programmer. All you need to do is to connect UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the ARMFlash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the ARM MCU Card (schematically shown
in Fig. 48) is labelled with a pin number which corresponds with the same pin number on
the UNI-DS3 development board. Each pin used on the ARM MCU Card has also a logical
label which describes pin function.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 43
UNI-DS3 User’s Manual
ARM MCU CARD MikroElektronika
Development tools
R8 R9 R11 R12
10K 10K 10K 10K 1 85
TX1 2 86
GND GND
R7 R10 3 87
10uF
100n
100n
100n
100n
10K
10K
10K
10K
10K
10K
C5
C6
C7
C8
4 88
E3 10K Q1
Q2
10K Q3
Q4 5 89
PP-USBDP
BC546 BC546 PP-VBUS PP-USBDN
BC546 BC546 6 90
VCC3 MCU-USBDP
7 91
MCU-VBUS MCU-USBDN
TX0 8 92
RSTBUT
9 93
D1
VCC3 VCC 10 94
BAT43 REG1
MC33269DT-3.3
RX232A P0.1 P0.10 CAN-CS
TX0
11 95 P0.11 CAN-RST
C18
TX232A
100n
Vout Vin 12 96 P0.30 CAN-INT
R6
56 2 3 13 97
GND 14 98
15 99 P1.24 RT485
D2 1
BAT43 E2 C16 P0.9
16 100 P0.9 RX232B
RX485
10uF 100nF
TX1
17 101
BAT1 + TX485 TX1 TX232B
3V
JTAG P0.5
18 102
MISO
230mA
P0.6
19 103
CONNECTOR MOSI
RTCK
TDO
20 104
TRST
TMS
TCK
TDI
J7
J6
J5
J4
P0.4 P0.5
1K
43 127
P0.6 P0.7
VBAT
R15
R16
44 128
P0.8
P0.0
1K
1K
45 129
P0.8 P0.9
46 130
VCC P0.10 P0.11
47 131
P0.12 P0.13
48 132
P0.14 P0.15
VCC 49 133
R38
10K
50 134
XTAL1
P1.29
P0.20
XTAL2
P0.19
P0.18
P1.28
RESET
P1.27
P0.23
P1.30
P0.17
VREF
P0.16
Vdd
VssA
VBAT
Vss
PP-ENT
51 135
PP0.0
PP0.1
P0.17
RTXC1 27 USBDN P0.22 P0.23
P0.16 54 138
ARMprog
P1.31
P1.26
P1.24
P0.4
P0.3
P0.5
P0.6
P0.0
P0.2
P0.7
P0.1
Vdd
Vss
Vss
XTAL2
65 149
XTAL1 X2 P1.24 P1.25
X1
66 150
P1.26 P1.27
MCU-RST
10MHz 32.768KHz
67 151
P1.28 P1.29
68 152
P1.30 P1.31
22pF
22pF
22pF
22pF
C2
C3
C1
C4
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
44 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Before you move to the next step of installation make sure that you have placed your ARM
MCU Card properly into MCU Socket on your UNI-DS3 development board and that USB
cable is connected to your PC.
Step no.2 Install ARMFLASH programmer and drivers for the ARM MCU Card.
Start instalation from the product CD:
CD_Drive:\product\zip\ARMFlash_setup.exe.
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
ARMFLASH drivers. Select drivers in order to finish installation. The drivers are placed
in the folder:
System_Drive:\Program Files\MikroElektronika\ARMFLASH\Driver.NT.
Step no.4 Run and useARMFLASH as explained in the document ‘ARMflash programmer’. The doc-
ument is placed in the following folder on the product CD:
CD_Drive:\product\pdf\ARMflash_manual.pdf.
After these 4 steps, your ARM MCU Card is installed and ready for use. You can try to
read a program from the chip or to load an example from the examples folder of mikroElek-
tronika’s compilers for ARM or from the product CD:
CD_Drive:\product\zip\UNI_DS3_ARM_examples.zip.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 45
UNI-DS3 User’s Manual
P SO C M C U C A R D MikroElektronika
Development tools
USB Link LED indicates AVR MCU card is connected to UNI-DS3 develop-
USB link state. ment board via 168-pin connector.
PSoC MCU Card is delivered with Cypress Semiconductor’s CY8C27643 48-pin micro-
controller.
There is no need to use external equipment during programming because PSoC MCU Card
has it’s own on-board USB2.0 programmer. All you need to do is to connect UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the PSoCFlash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the PSoC MCU Card (schematically shown
in Fig. 50) is labelled with a pin number which corresponds with the same pin number on
the UNI-DS3 development board. Each pin used on the PSoC MCU Card has also a logical
label which describes pin function.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
46 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Figure 50. PSoC MCU Card schematically
P SO C M C U C A R D
VCC VCC VCC VCC VCC VCC
R15
1K
R5
1K
VCC
10uF
10uF
100n
C3
E1
E2
10K
R6
1 85
2 86
Xres RSTBUT
3 87
On-Board USB
4 88
USBDP
programmer
5 89
USBDN
PSoCprog
6 90
MULTIPLEXER 7 91
100n
C14
8 92
RSTBUT
PGC 9 93
PGD 10 94
RB0-PGD
14 98
RB0 R2 27 15 99
RB2 RT485
RA6
16 100
RX485 RA6 RX232B
17 101
TX485 RA7 RA7 TX232B
RB6
18 102
MISO
19 103
MOSI RB5
20 104
VCC SCK RB4
21 105
ADC-CS RC3
RC4
22 106
DAC-CS
23 107
DAC-LD RC5
24 108
MMC-CS RB3
25 109
RC2
26 110
RTC-INT
27 111
SCL RB1
28 112
SDA RB0 RE0 ETH-INT
29 113
RE1 ETH-WOL
30 114
RA7 RE2 ETH-CS
VCC 31 115
RE3
P0[7] VCC 32 116 ETH-RST
RA5 RA6 D0 RD0
33 117
P0[5] P0[6] D1 RD1
34 118
RA3 RA4 D2 RD2
35 119
RA0 LCD-CS1
P0[3] P0[4] D3 RD3
36 120
RA1 LCD-CS2
RA1 RA2 D4 RD4
37 121
RA2 LCD-RS
P0[1] P0[2] D5 RD5
38 122
RA3 LCD-RW
RC7 RA0 D6 RD6
39 123
RA4 LCD-E
P2[7] P0[0] D7 RD7
40 124
RA5 LCD-RST
RC5 RC6
P2[5] P2[6]
RC3 RC4 RA0 RA1
P2[3] P2[4] 41 125
RA2 RA3
RC1 RC2 42 126
RA4 RA5
P2[1] P2[2] 43 127
RA6 RA7
RE7 RC0 44 128
P4[7] P2[0] 45 129
RB0 RB1
RE5 RE6 46 130
RB2 RB3
P4[5] P4[6] 47 131
RB4 RB5
CY8C27643
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 47
UNI-DS3 User’s Manual
CONNECTING PSOC MCU CARD MikroElektronika
Development tools
Before you move to the next step of installation make sure that you have placed your PSoC
MCU Card properly into MCU Socket on your UNI-DS3 development board and that USB
cable is connected to your PC.
Step no.2 Install PSoCFLASH programmer and drivers for the PSoC MCU Card.
Start installation from the product CD:
CD_Drive:\product\zip\PSoCFlash_setup.exe.
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
PSoCFLASH drivers. Select drivers in order to finish installation. The drivers are placed
in the folder:
System_Drive:\Program Files\MikroElektronika\PSoCFLASH\Driver.NT.
Step no.4 Run and usePSoCFLASH as explained in the document ‘PSoCflash programmer’. The doc-
ument is placed in the following folder on the product CD:
CD_Drive:\product\pdf\PSoCprog_manual.pdf.
After these 4 steps, your PSoC MCU Card is installed and ready for use. You can try to read
a program from the chip or to load an example from the examples folder of mikroElektron-
ika’s compilers for PSoC or from the product CD:
CD_Drive:\product\zip\UNI_DS3_PSoC_examples.zip.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
48 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
MCU CARD
dsPIC MCU CARD
Very fast and flexible USB 80-pin PIC30F6014
Figure 51. programmer microcontroller.
dsPIC MCU Card
D SP I C
USB Link LED indicates dsPIC MCU card is connected to UNI-DS3 devel-
USB link state. opment board via 168-pin connector.
There is no need to use external equipment during programming because dsPIC MCU Card
has it’s own on-board USB2.0 programmer. All you need to do is to connect UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the dsPICFlash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the dsPIC MCU Card (schematically shown
in Fig. 52) is labelled with a pin number which corresponds with the same pin number on
the UNI-DS3 development board. Each pin used on the dsPIC MCU Card has also a logical
label which describes pin function.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 49
UNI-DS3 User’s Manual MikroElektronika
Development tools
100n
100n
100n
100n
1 85
C3
C4
C5
C6
2 86
3 87
4 88
VCC VCC VCC USBDP
5 89
USBDN
6 90
7 91
8 92
RSTBUT
9 93
10 94
10uF
10uF
100n
C7
E1
E2
RX232A RF2 RA9 CAN-CS
D SP I C
11 95
TX232A RF3 RA10 CAN-RST
12 96
RA15 CAN-INT
13 97
14 98
VCC VCC VCC VCC 15 99
RF1 RT485
16 100
D5 POWER USB LINK RX485 RF4 RF4 RX232B
17 101
BAT43 TX485 RF5 RF5 TX232B
18 102
MISO RF7
19 103
MOSI RF8
20 104
SCK RF6
R15
10K
R12
21 105
1K
1K
R5
VCC ADC-CS RC1
RC2
22 106
DAC-CS
23 107
DAC-LD RC3
RC4
24 108
MMC-CS
10K
25 109
R6
RA12
26 110
MCLR RSTBUT RTC-INT
27 111
SCL RG2
On-Board USB
RG3
28 112 RA13
SDA ETH-INT
29 113
MULTIPLEXER programmer RA14 ETH-WOL
dsPICflash
30 114 RD14
PGC ETH-CS
31 115
RD15
100n
ETH-RST
C14
PGD 32 116
D0 RD0
33 117
D1 RD1
RB1-PGC 34 118
D2 RD2 RD8 LCD-CS1
35 119
RB0-PGD D3 RD3 RD9 LCD-CS2
36 120
D4 RD4 RD10 LCD-RS
37 121
RB0 R1 27 D5 RD5 RD11 LCD-RW
USBDN 38 122
D6 RD6 RD12 LCD-E
RB1 USBDP 39 123
D7 RD7 RD13 LCD-RST
40 124
R2 27
RA6 RA7
41 125
RA9 RA10
42 126
RA12 RA13
43 127
RA14 RA15
44 128
45 129
RB0 RB1
46 130
RB2 RB3
VCC 47 131
RB4 RB5
48 132
RB6 RB7
49 133
50 134
RB8 RB9
51 135
RB10 RB11
52 136
RB12 RB13
53 137
RB14 RB15
54 138
55 139
RC1 RC2
56 140
RC3 RC4
57 141
RC13 RC14
58 142
59 143
Vss
RD7
RF0
RG13
RG12
RA7
RG1
Vdd
RD6
RD5
RD13
RD12
RD2
RG14
RA6
RG0
RF1
RD4
RD3
RD1
60 144
RD0 RD1
61 145
RG15 RC14 RD2 RD3
RC1 RC13 62 146
RD4 RD5
RC2 RD0 63 147
RD6 RD7
RC3 RD11 64 148
RC4 RD10 65 149
RD8 RD9
RG6 RD9 66 150
RD10 RD11
RG7 RD8 67 151
RG8 RA15 RD12 RD13
68 152
MCLR RA14 RD14 RD15
69 153
RG9 Vss 70 154
Vss dsPIC30FXXXX OSC2 RF0
71 155
RF1
Vdd OSC1/CLKI RF2 RF3
72 156
RA12 Vdd RF4 RF5
73 157
RA13 RG2 RF6 RF7
RB5 RG3 74 158
RB1-PGC
RB0-PGD
75 159
RB4 RF6 RF8
RB3 RF7 76 160
RB2 RF8 77 161
RG0 RG1
RB1 RF2 78 162
RG2 RG3
RB0 RF3 79 163
80 164
RB10
RD14
RD15
RA10
RB12
RB13
RB15
RB14
RB11
AVdd
AVss
RG6 RG7
RB6
RB7
RB8
RA9
RB9
RF4
RF5
Vdd
Vss
81 165
RG8 RG9
82 166
RG12 RG13
83 167
X1 RG14 RG15
10MHz
84 168
22pF
22pF
C2
C1
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
50 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
MCU CARD
CONNECTING dsPIC MCU CARD
Before you move to the next step of installation make sure that you have placed your dsPIC
MCU Card properly into MCU Socket on your UNI-DS3 development board and that USB
cable is connected to your PC.
Step no.2 Install dsPICFLASH programmer and drivers for the dsPIC MCU Card.
Start installation from the product CD:
CD_Drive:\product\zip\dsPICFlash_setup.exe.
D SP I C
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
dsPICFLASH drivers. Select drivers in order to finish installation. The drivers are placed in
the folder:
System_Drive:\Program Files\MikroElektronika\dsPICCFLASH\Driver.NT.
CONNECTING THE
Step no.4 Run and use dsPICFLASH as explained in the document ‘dsPICflash programmer’. The
document is placed in the following folder on the product CD:
CD_Drive:\product\pdf\dsPICprog_manual.pdf.
After these 4 steps, your dsPIC MCU Card is installed and ready for use. You can try to
read a program from the chip or to load an example from the examples folder of mikroElek-
tronika’s compilers for dsPIC or from the product CD:
CD_Drive:\product\zip\UNI_DS3_dsPIC_examples.zip.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 51
UNI-DS3 User’s Manual
PIC DIP40 MCU CARD MikroElektronika
Development tools
USB Link LED indicates PIC DIP40 MCU Card is connected to UNI-DS3 develop-
USB link state. ment board via 168-pin connector.
PIC DIP40 MCU Card is delivered with Microchip’s PIC16F877A 40-pin microcontroller.
Users can remove this one and fit a different microcontroller supported.
PIC DIP40 MCU Card supports all 40-pin Microchip’s PIC microcontrollers. For example,
PIC18F4520, PIC18F4550 etc.
There is no need to use external equipment during programming because PIC DIP40 MCU
Card has it’s own on-board USB2.0 programmer. All you need to do is to connect UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the PICFlash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the PIC DIP40 MCU Card (schematically
shown in Fig. 54) is labelled with a pin number which corresponds with the same pin num-
ber on the UNI-DS3 development board. Each pin used on the PIC DIP40 MCU Card has
also a logical label which describes pin function.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
52 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
R19
R20
27
27 VCC CN11 VCC
J3 J2 J1
VCC VCC
1 85
2 86
GND GND
3 87
4 88
100n
100n
C6
C5 USBDP
5 89
USBDN
VCC VCC VCC VCC 6 90
VCC VCC VCC MCU-USBDP
7 91
MCU-USBDN
8 92
D5 POWER USB LINK RSTBUT
9 93
BAT43 GND
10 94
10K
R12
R15
10uF
1K
100n
R5
VCC TX232A RC6 RE1 CAN-RST
C3
E1
E2
12 96
RB5 CAN-INT
13 97
14 98
10K
15 99
R6
RC1 RT485
16 100
MCLR RSTBUT RX485 RC7 RX232B
17 101
TX485 RC6 TX232B
On-Board USB
18 102
MULTIPLEXER MISO RC4
programmer
19 103
MOSI RC5
PGC 20 104
SCK RC3
PICflash
21 105
PGD RA5
100n
ADC-CS
C14
22 106
DAC-CS RA2
23 107
DAC-LD RA3
24 108
MMC-CS RC0
25 109
RB6-PGC
RB7-PGD
26 110
RTC-INT RB0
RB6 27 111
R1 27 SCL RC3
USBDN 28 112
RB7 SDA RC4 RB4 ETH-INT
USBDP 29 113
RB5 ETH-WOL
30 114
R2 27 RA0 ETH-CS
31 115
RA1 ETH-RST
32 116
D0 RD0
33 117
D1 RD1
34 118
D2 RD2 RB0 LCD-CS1
35 119
D3 RD3 RB1 LCD-CS2
36 120
D4 RD4 RB2 LCD-RS
37 121
D5 RD5 RB3 LCD-RW
38 122
D6 RD6 RB5 LCD-E
RB7-PGD 39 123
1 40 D7 RD7 RB4 LCD-RST
MCLR RB7 40 124
2 39 RB6-PGC
RA0 RB6
3
RA1
38 RA0 RA1
RB5 41 125
4 37 RA2 RA3
RA2 42 126
RB4 RA4 RA5
5 36 43 127
RA3 RB3 RA6 RA7
44 128
PIC16F877A
6 35
RA4 RB2 45 129
RB0 RB1
7 34 46 130
RA5 RB1 RB2 RB3
47 131
8 33 RB4 RB5
RE0 RB0 48 132
RB6 RB7
9 32 49 133
RE1 VCC 50 134
10 31 RC0 RC1
RE2 GND 51 135
RC2 RC3
11 30 52 136
VCC RD7 RC4 RC5
53 137
12 29 RC6 RC7
GND RD6 54 138
13 28 55 139
OSC1 RD5 RD0 RD1
56 140
14 27 RD2 RD3
OSC2 RD4 57 141
15 26 RD4 RD5
58 142
RC0 RC7 RD6 RD7
16 25 59 143
RC1 RC6 60 144
17 24 pRC5 RE0 RE1
RC2 RC5 61 145
RE2
pRC3 18 23 pRC4 62 146
RC3 RC4 63 147
19 22
RD0 RD3 64 148
20 21
RD1 RD2
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 53
UNI-DS3 User’s Manual
CONNECTING THE PIC DIP40 MCU CARD MikroElektronika
Development tools
Before you move to the next step of installation make sure that you have placed your PIC
DIP40 MCU Card properly into MCU Socket on your UNI-DS3 development board and
that USB cable is connected to your PC.
Step no.2 Install PICFLASH programmer and drivers for the PIC DIP40 MCU Card.
Start installation from the product CD:
CD_Drive:\product\zip\PICFlash_setup.exe.
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
PICFLASH drivers. Select drivers in order to finish installation. The drivers are placed in
the folder:
System_Drive:\Program Files\MikroElektronika\PICCFLASH\Driver.NT.
Step no.4 Run and use PICFLASH as explained in the document ‘PICflash programmer’. The docu-
ment is placed in the following folder on the product CD:
CD_Drive:\product\pdf\PICflash_manual_v4.pdf.
After these 4 steps, your PIC DIP40 MCU Card is installed and ready for use. You can try
to read a program from the chip or to load an example from the examples folder of
mikroElektronika’s compilers for PIC or from the product CD:
CD_Drive:\product\zip\UNI_DS3_PICDIP40_examples.zip.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
54 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
P I C 8 0P I N M C U C A R D
PIC 80pin MCU CARD
Very fast and flexibie USB PIC DIP40 MCU Card supports
programmer 40-pin Microchip’s PIC MCUs
USB Link LED indicates PIC DIP40 MCU Card is connected to UNI-DS3 develop-
USB link state. ment board via 168-pin connector.
PIC 80-pin MCU Card is delivered with Microchip’s PIC18F8520 80-pin microcontroller.
There is no need to use external equipment during programming because PIC 80-pin MCU
Card has it’s own on-board USB2.0 programmer. All you need to do is to connect UNI-DS3
development system to PC using USB cable. Then, load your program into the microcon-
troller via the PICFlash programming software which is supplied with the product CD.
Microcontroller pins are routed to various peripherals connected to the UNI-DS3 develop-
ment board MCU socket (Fig. 3). Every pin on the PIC 80-pin MCU Card (schematically
shown in Fig. 56) is labelled with a pin number which corresponds with the same pin num-
ber on the UNI-DS3 development board. Each pin used on the PIC 80-pin MCU Card has
also a logical label which describes pin function.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 55
UNI-DS3 User’s Manual
P I C 8 0P I N M C U C A R D MikroElektronika
Development tools
Figure 56.
100n
100n
100n
100n
1 85
C3
C4
C5
C6
PIC 80-pin MCU Card schematically 2 86
3 87
4 88
VCC VCC VCC USBDP
5 89
USBDN
6 90
7 91
8 92
RSTBUT
9 93
10 94
10uF
10uF
100n
C7
E1
E2
RX232A RC7 RA9 CAN-CS
11 95
TX232A RC6 RA10 CAN-RST
12 96
RA15 CAN-INT
13 97
14 98
VCC VCC VCC VCC 15 99
RF1 RT485
RG2
16 100
D5 POWER USB LINK RX485 RF4 RX232B
17 101
BAT43 TX485 RG1 RF5 TX232B
RC4 18 102
MISO
RC5
19 103
MOSI
RC3
20 104
SCK
R15
10K
R12
21 105
1K
R5
1K
VCC ADC-CS RE3
RE4
22 106
DAC-CS
23 107
DAC-LD RE5
RE6
24 108
MMC-CS
10K
25 109
R6
RB1
26 110
MCLR RSTBUT RTC-INT
27 111
SCL RC3
On-Board USB
RC4
28 112 RB2
SDA ETH-INT
programmer 29 113
MULTIPLEXER 30 114
RB3 ETH-WOL
RG3 ETH-CS
PICflash
PGC 31 115
RG4
100n
ETH-RST
C14
RD0
32 116
PGD D0
33 117
D1 RD1
RD2
34 118 RF0
D2 LCD-CS1
35 119
D3 RD3 RF1 LCD-CS2
RD4
36 120 RF2
D4 LCD-RS
37 121
R1 27 D5 RD5 RF3 LCD-RW
RB6 USBDN 38 122
D6 RD6 RF4 LCD-E
RB6-PGC
RB7-PGD
USBDP 39 123
RB7 D7 RD7 RF5 LCD-RST
40 124
R2 27
RA0 RA1
41 125
RA2 RA3
42 126
RA4 RA5
43 127
44 128
45 129
RB0 RB1
46 130
RB2 RB3
47 131
RB4 RB5
48 132
RB6 RB7
49 133
VCC
50 134
RC0 RC1
51 135
RC2 RC3
52 136
RC4 RC5
53 137 RC7
RC6
54 138
55 139
RD0 RD1
56 140
RD2 RD3
57 141
RD4 RD5
RD6 58 142
RD7
59 143
Vss
RD1
RH1
RH0
RE3
RE6
Vdd
RD2
RD3
RD5
RD6
RJ0
RE2
RE4
RE5
RE7
RD0
RD4
RD7
RJ1
60 144
RE0 RE1
61 145
RH2 RJ2 RE2 RE3
RH3 RJ3 62 146
RE4 RE5
RE1 RB0 63 147
RE6 RE7
RE0 RB1 64 148
RG0 RB2 65 149
RF0 RF1
RG1 RB3 66 150
RF2 RF3
RG2 RB4 67 151
RG3 RB5 RF4 RF5
68 152 RF7
MCLR RB6/PGC RF6
69 153
RG4 Vss 70 154
Vss PIC18FXXXX OSC2 RG0 RG1
71 155 RG3
Vdd OSC1/CLKI RG2
72 156
RF7 Vdd RG4
RF6 RB7/PGD 73 157
RF5 RC5 74 158
75 159
RF4 RC4 RH0 RH1
RF3 RC3 76 160
RH2 RH3
RF2 RC2 77 161
RH4 RH5
RH7 RJ7 78 162
RH6 RH7
RH6 RJ6 79 163
80 164
AVdd
AVss
RJ0 RJ1
RH5
RH4
RC0
RC6
RC1
RC7
RA3
RA0
RA5
RA4
RA2
RA1
RF0
RF1
Vdd
RJ4
RJ5
Vss
81 165
RJ2 RJ3
82 166
RJ4 RJ5
83 167
X1 RJ6 RJ7
10MHz
84 168
22pF
22pF
C2
C1
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
56 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual
Before you move to the next step of installation make sure that you have placed your PIC
80pin MCU Card properly into MCU Socket on your UNI-DS3 development board and that
USB cable is connected to your PC.
Step no.2 Install PICFLASH programmer and drivers for the PIC 80pin MCU Card.
Start installation from the product CD:
CD_Drive:\product\zip\PICFlash_setup.exe.
Step no.3 After this installation connect USB cable to the UNI-DS3 board. You’ll be asked for
PICFLASH drivers. Select drivers in order to finish installation. The drivers are placed in
the folder:
System_Drive:\Program Files\MikroElektronika\PICCFLASH\Driver.NT.
Step no.4 Run and use PICFLASH as explained in the document ‘PICflash programmer’. The docu-
ment is placed in the following folder on the product CD:
CD_Drive:\product\pdf\PICflash_manual_v4.pdf.
After these 4 steps, your PIC 80pin MCU Card is installed and ready for use. You can try
to read a program from the chip or to load an example from the examples folder of
mikroElektronika’s compilers for PIC or from the product CD:
CD_Drive:\product\zip\UNI_DS3_PIC80pin_examples.zip.
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 57
UNI-DS3 User’s Manual MikroElektronika
Development tools
Second edition
March 2007
No part of this manual, including the product and software described in it, may be repro-
duced, transmitted, transcribed, stored in a retrieval system or translated into any language
in any form or by any means, without the express written permission of MikroElektronika
company, excepting documentation kept by the purchaser for backup purposes.
Product warranty or service will not be extended if the product is repaired, modified or
altered, unless such repair, modification or alteration is authorized in writing by
MikroElektronika.
Product and corporate names appearing in this manual may or may not be registered trade-
marks or copyrights of their respective companies, and are used only for identification or
explanation and to the owners benefit, without intent to infringe.
page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
58 with Serial Ethernet
MikroElektronika
Tools-Compilers-Books
www.mikroe.com
UNI-DS3
Serial Ethernet on RS485 communication RS232 communica-
Universal Development tool
PI
lower postion, the
1
KS
PS
8 05
oC
COM
ng pins are set to
aki y logical zero (pull-
PI
Mit eas
C
AR
DEV
Buttons for simulating pins, Graphic LCD connector GLCD/LCD contrast MMC/SD slot for down).
.T
68HC08 O
OL
S high state or low state multimedia cards.
UNI-DS3
with Serial Ethernet
MikroElektronika
SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
E-mail: office@mikroe.com
Web: www.mikroe.com
Forum: www.mikroe.com/forum/