You are on page 1of 60

SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD

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

DESCRIPTION OF DEVELOPMENT SYSTEM page 7

MCU card connector page 7


Jumpers page 8
Switches page 9
Power supply page 10
USB connectors page 11
LEDs page 12
Pushbutton switches page 14
Graphic LCD page 17
LCD 2x16 in 4-bit mode page 18
LCD 2x16 in 8-bit mode page 19
RS-232 communication page 21
RS-485 communication page 23
CAN communication page 24
Serial Ethernet on board page 25
Direct Port Access page 27
MMC/SD (Multimedia Card) page 29
A/D Converter input page 31
D/A Converter output page 32
Real Time Clock page 34
page
UNI-DS3 MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD
with Serial Ethernet 3
UNI-DS3 User’s Manual
CONTENTS MikroElektronika
Development tools

CONTENTS
MCU Cards page 35

mikroICD(In-Circuit Debugger) page 35


Placing MCU Cards page 36
8051 MCU Card page 37
Connecting 8051 MCU Card page 39
AVR MCU Card page 40
Connecting AVR MCU Card page 42
ARM MCU Card page 43
Connecting ARM MCU Card page 45
PSoC MCU Card page 46
Connecting PSoC MCU Card page 48
dsPIC MCU Card page 49
Connecting dsPIC MCU Card page 51
PIC DIP40 MCU Card page 52
Connecting PIC DIP40 MCU Card page 54
PIC 80-pin MCU Card page 55
Connecting PIC 80-pin MCU Card page 57

page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
4 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual

CONNECTING THE SYSTEM


CONNECTING THE SYSTEM

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 CARD CONNECTOR


MCU CARD CONNECTOR
CN11

The UNI-DS3 development board is designed to enable students


VCC 1
2
85
86
VCC and engeneers to exercise and explore capabilities of various
GND 3 87 GND
4
5
88
89 PP-USBDP
microcontrollers. For each supported microcontroller a differ-
PP-VBUS 6 90 PP-USBDN

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

RA0 41 125 RA1


RA2 42 126 RA3
RA4 43 127 RA5
RA6 44 128 RA7
45 129
RB0 46 130 RB1
RB2 47 131 RB3
RB4 48 132 RB5
RB6 49 133 RB7
50 134
RC0 51 135 RC1
RC2 52 136 RC3
RC4 53 137 RC5
RC6 54 138 RC7
55 139
RD0 56 140 RD1
RD2 57 141 RD3
RD4 58 142 RD5
RD6 59 143 RD7
60 144
RE0 61 145 RE1
RE2 62 146 RE3
RE4 63 147 RE5
RE6 64 148 RE7
65 149
RF0 66 150 RF1
RF2 67 151 RF3
RF4 68 152 RF5
RF6 69 153 RF7
70 154
RG0 71 155 RG1
RG2 72 156 RG3
RG4
RG6
73
74
157
158
RG5
RG7
MCU Card Connector Figure 2.
75 159
RH0 76 160 RH1
RH2 77 161 RH3
RH4 78 162 RH5
RH6 79 163 RH7
80 164
RJ0 81 165 RJ1
RJ2 82 166 RJ3
RJ4 83 167 RJ5
RJ6 84 168 RJ7

Figure 3. MCU Card Connector schematically

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.

Figure 4. Jumper as a switch

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

POWER SUPPLY POWER SUPPLY


As a power supply source, user can select either a regulated supply from USB cable (default)
SELECTABLE or an external non-regulated power supply.
In case of USB power supply, system should be connected to the PC using the USB cable
and jumper J11 should be set in the right-hand position.
In case of external power supply, UNI-DS3 development board produces +5V using an
LM7805 voltage regulator. The external power supply can be AC or DC, with voltage
between 8V and 16 V and jumper J11 should be set in the left-hand position.

Note: USB connector CN15 should be used for USB programmer and USB power supply.

Figure 8. Power supply selection jumper

J11 in left-hand: sys-


tem will take power
from external AC/DA
power adapter.

J11 in right -hand


position: system will
take power from
USBcable.

Figure 7.
EXT USB USB Power Supply
Power supply
connectors External Power Supply
EXT USB

+5V USB VCC


REG1
7805
J11
5V
Vin +5V
+ 1 3
GND
2
1
E1 C6 E2 R5
220u/35 100nF 470uF 1K
2
Figure 9. LD1
POWER

Power supply schematically

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

VCC D- D+ GND USB


USB Programmer
Connector

Figure 11. 1 85 CN21


2 86
VCC D- D+ GND

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.

Figure 12. LEDs

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

SW1 RN10 RA0 RA0 RA1


41 125
LED-RA RA2 RA3
1 RA4
42 126
RA5
1 2 3 4 5 6 7 8

ON

LED-RB RA1 43 127


2 RA6 RA7
44 128
LED-RC 3 RB0
45 129
RB1
RA2 46 130
LED-RD 4 RB2
47 131
RB3
RB4 RB5
LED-RE RB6
48 132
RB7
5 49 133
LED-RF RA3
6 50 134
RC0 RC1
LED-RG RC2
51 135
RC3
7 RA4 RC4
52 136
RC5
LED-RH 53 137
8 RC6
54 138
RC7
9 RA5 55 139
SW2 RD0 RD1
56 140
RD2 RD3
57 141
RD4 RD5
8 7 6 5 4 3 2 1

8x1K RA6 58 142


RD6 RD7
59 143
60 144
RE0 RE1
RA7 61 145
RE2 RE3
62 146
RE4 RE5
63 147
RE6 RE7
64 148
65 149
RF0 RF1
66 150
RF2 RF3
67 151
RF4 RF5
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

Group of eight LEDs connected to


PORTA are enabled, all other
LEDs are disabled.

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.

Figure 14. Pushbutton switches

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

RA0 RA0 RA1


41 125
RA2 RA3
42 126
RA4 RA5
RA1 43 127
RA6 RA7
Figure 15. RB0
44
45
128
129
RB1
RA2 46 130
RB2 RB3
47 131
RB4 RB5
48 132
RB6 RB7
Buttons schematically RA3
49 133
50 134
RC0 RC1
51 135
RA4 RC2 RC3
52 136
RC4 RC5
VCC 53 137
0V while button +5V while button RC6 RC7
RA5 54 138
is pressed is pressed 55 139
RD0 RD1
56 140
RD2 RD3
RA6 57 141
J10 RD4
58 142
RD5
RD6 RD7
59 143
RA7
60 144
RE0 RE1
61 145
RE2 RE3
62 146
RE4 RE5
63 147
RE6 RE7
64 148
65 149
RF0 RF1
66 150
RF2 RF3
67 151
RF4 RF5
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 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.

GLCD Figure 19.

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

2x16 LCD LCD 2x16 IN 4-bit MODE


CONNECTOR
2x16 LCD
Standard character LCD is probably the most widely used data visualization component.
ON-BOARD
Normally, it can display two lines of 16 alphanumeric characters, each made of 5x8 pixels.
Character LCD communicates with microcontroller via 4-bit or 8-bit data bus, each requir-
ing the use of different connector on UNI-DS3 development board. In order to use 4-bit data
bus, LCD should be placed in the upper left part of the board, just above the LEDs. It is
important that LCD is placed or removed from UNI-DS3 when the power is turned off..

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

LCD 2X16 IN 4-BIT MODE


LCD 2x16 IN 8-bit MODE

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

In order to enable LCD,


jumper J9 should be set to
the position labelled as
CHAR.

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

Adjustment Leave four #RX232A #CAN-CS


11 95
free pins to #TX232A
12 96 #CAN-RST
#CAN-INT
the right side 13 97
D1
LCD-RS

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

8-bit mode #RTC-INT


#SCL
26
27
28
110
111
112
#SDA #ETH-INT
Leave two free 29 113
#ETH-WOL
30 114
pins to the left side 31 115 #ETH-CS
#ETH-RST
32 116
D0
33 117
D1
34 118
D2 LCD-CS1
35 119
D3 LCD-CS2
36 120
D4 LCD-RS
Figure 24. LCD 8-bit mode schematically D5
37 121
LCD-RW
38 122
D6 LCD-E
39 123
D7 LCD-RST
40 124

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

Figure 26. RS232 Connector schematically

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

Figure 28. RS232 Connector schematically

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

Figure 29. CAN Connector Figure 30. CAN Connector schematically

page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
24 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual

SERIAL ETHERNET ON BOARD


Serial SERIAL ETHERNET ON BOARD
Ethernet
Ethernet is the most common Local Area Network (LAN) technology in use today. On the
SUPPORTED top of the physical layer Ethernet stations communicate to each other by sending data pack-
ets to each other. Each Ethernet station is given a single 48-bit MAC address which is used
to specify both the destination and the source of each data packet.
Serial Ethernet has 28-pin ENC28J60 10BASE-T Ethernet Controller with on-board Media
Access Control and Physical Layer (MAC &PHY), 8 Kbytes of Buffer RAM and Serial
Peripheral Interface (SPI) communication.

Figure 31. Serial Ethernet

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

100nF 100nF 100nF 100nF

Vout Vin C20 C9 C10 C11


2 2 3
VCC
GND
E16 C8 E15
10uF 1
100nF 10uF
VCC3.3 LD74 LD75
VCC LED LED
A1
A2

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

Figure 31. Serial Ethernet schematically


6 90 A7 B6 SCK PLL-GND
UNI-DS3 User’s Manual

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

MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD


MikroElektronika
Development tools

with Serial Ethernet


UNI-DS3
MikroElektronika
Development tools UNI-DS3 User’s Manual

DIRECT PORT ACCESS


DIRECT PORT ACCESS

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.

Figure 32. Direct port access connectors

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

Figure 33. Example of Compact Flash Card connected

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

MMC/SD (MULTIMEDIA CARD)


MMC/SD MMC/SD (Multimedia Card)
MASS STORAGE

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.

Figure 35. MMC Card

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

Figure 36. MMC Card schematically

page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
30 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual

A/D CONVERTER INPUT


ADC INPUT A/D CONVERTER INPUT

Analog-to-digital converter is a semiconductor device used to convert an analog signal into


ENABLED a digital code. In the real world, most of the signals sensed and processed by humans are
analog signals. Analog-to-digital conversion is a primary means by which analog signals are
converted into digital data which can be processed by computers for various purposes.
Analog signal is a signal that may assume any value within a continuous range. Device used
to convert an analog signal into an analog voltage or current is known as a transducer. The
analog-to-digital converter is used to translate further this analog voltage or current into dig-
ital codes that consist of 1's and 0's.

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

A/D-D/A CONVERTERS SCHEMATIC


Figure 39. Converters schematically

Vcc line is Vref line is All lines are


connected connected disconnected ADC DAC VCC
CONNECTOR CONNECTOR

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

CH1 Vref CS GND


3 12 3 6 9 93
3 CH2 AGND SCK VREF RSTBUT2
4
CH3 CLK
11 4
SDI LDAC
5 10 94
GND E10 5
NC DOUT
10
10uF 6
NC DIN
9 MCP3204 #RX232A #CAN-CS
7 8 11 95
DGND CS #TX232A #CAN-RST
12 96
#CAN-INT
13 97
14 98
VCC VCC 15 99
#RT485
16 100
#RX485 #RX232B
17 101
#TX485 #TX232B
SW3 SW4 18 102
100nF 100nF #MISO
19 103
#MOSI
20 104
1 2 3 4 5 6 7 8

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


REAL TIME CLOCK

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

OSCI VDD MCU-VBUS MCU-USBDN


8 92
RTC-INT #RTC-INT RSTBUT1
9 93
3V/230mA BAT43

OSCO INT RSTBUT2


1 2 3 4 5 6 7 8

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

mikroICD (IN-CIRCUIT DEBUGGER)


mikroICD (Real-Time Hardware In-Circuit Debugger)
mikro

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:

Start Debugger [F9]


Run/ Pause Debugger [F6]
Toggle Breakpoints [F5]
Run to cursor [F4]
Step Into [F7]
Step Over [F8]
Flush RAM [F2]
Stop Debugger [Ctrl+F2]

microICD is supported by the following MCU Cards:


- PIC DIP40 MCU Card
- PIC 80-pin MCU Card
- dsPIC MCU Card

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

PLACING MCU CARDS

Figure 42. Placing MCU Card

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

8051 MCU CARD


8051 MCU CARD

Very fast and flexible USB 8051 MCU Card supports


programmer 40-pin Atmel mocrocontrollers.

USB Link LED indicates 8051 MCU card is connected to UNI-DS3 devel-
USB link state. opment board via 168-pin connector.

Figure 43. 8051 MCU Card

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

VCC VCC VCC


Figure 44. LED1
LED2

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

VCC VCC RB7


21 105
ADC-CS RC0
22 106
DAC-CS RB2
23 107
DAC-LD RB3
24 108
MMC-CS RC1
RN10 25 109
1 26 110
RTC-INT RD2
RA0 2 27 111
C6 E3 SCL RB0
RA1 3 28 112
R10 100K

100nF 10uF SDA RB1 RD3 ETH-INT


R8 100K

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

RB5-MOSI 6 35 RA4 RA0 RA1


P1.5 P0.4 41 125
RB6-MISO 7 34 RA5 RA2 RA3
P1.6 P0.5 42 126
RA4 RA5
RB7-SCK 8 33 RA6 43 127
P1.7 P0.6 RA6 RA7
mRST 9 32 RA7 44 128
RST P0.7 45 129
RD0 EA RB0 RB1
10 31 46 130
P3.0 VPP RB2 RB3
RD1 ALE 47 131
11
PROG
30
RB4 RB5
P3.1 48 132
RD2 12 29 PSEN RB6 RB7
P3.2 PSEN 49 133
RD3 13 28 RC7 50 134
P3.3 P2.7 RC0 RC1
51 135
RD4 14 27 RC6 RC2 RC3
P3.4 P2.6 52 136
RC4 RC5
RD5 15 26 RC5 53 137
P3.5 P2.5 RC6 RC7
RD6 16 25 RC4 54 138
P3.6 P2.4 55 139
RD7 17 24 RC3 RD0 RD1
P2.3 56 140
P3.7 RD2 RD3
18 23 RC2 57 141
XTAL2 P2.2 RD4 RD5
58 142
OSC1 19 22 RC1 RD6 RD7
XTAL1 P2.1 59 143
GND 20 21 RC0
GND P2.0

page
MIKROELEKTRONIKA SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD UNI-DS3
38 with Serial Ethernet
MikroElektronika
Development tools UNI-DS3 User’s Manual

CONNECTING THE 8051 MCU CARD


CONNECTING 8051 MCU CARD

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

AVR MCU CARD


Very fast and flexible USB USB Link LED indicates ATMEGA128 64-pin microcon-
programmer USB link state. troller.

AVR MCU card is connected to UNI-DS3 devel-


Figure 45. AVR MCU Card opment board via 168-pin connector.

AVR MCU Card is delivered with an Amtel ATMEGA128 64-pin microcontroller.

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

AVR MCU CARD


VCC VCC VCC CN11 VCC
VCC
JTAG
CONNECTOR
CN2 VCC 1 85

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

D2 RC2 RA2 LCD-CS1


35 119
D3 RC3 RA3 LCD-CS2
36 120
D4 RC4 RA4 LCD-RS
37 121
D5 RC5 RA5 LCD-RW
38 122
D6 RC6 RA6 LCD-E
39 123
D7 RC7 RA7 LCD-RST
SCK 40 124
R1 27
USBDN
MISO
USBDP RA0 RA1
MOSI 41 125
R2 27 RA2 RA3
42 126
RA4 RA5
43 127
RA6 RA7
44 128
VCC
PEN

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

CONNECTING AVR MCU CARD

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

ARM MCU CARD


ARM MCU CARD
Very fast and flexible USB USB Link LED indicates LPC2148 64-pin microcontroller.
programmer USB link state.

Figure 47. AVR MCU card is connected to UNI-DS3 develop- JTAG connector
ment board via 168-pin connector.
ARM Card

ARM MCU Card is delivered with LPC2148 64-pin microcontroller.

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

Figure 48. ARM MCU Card schematically

P0.8 VCC CN11 VCC


P0.0
VCC3 VCC3 VCC3 VCC3 VCC3 VCC3
VCC VCC VCC VCC

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

VCC3 VCC3 VCC3 SCK P0.4


P0.25
21 105
ADC-CS
J7 LD3 DAC-CS P0.28
22 106
P1.31 LINK
R5 J9 J8 P0.29
23 107
1K DAC-LD
J6 R34 R35
MMC-CS P1.25
24 108
P1.28 P0.31
2K2 10K 25 109
J5 Q7 RTC-INT P0.16
26 110
P1.31 P0.2
27 111
BC856 SCL
J4 SDA P0.3
28 112 P0.14 ETH-INT
P1.29 29 113 P0.15 ETH-WOL
J3 D+
R2 27
MCU-USBDP R1 30 114 P0.12 ETH-CS
P1.26 1K5 31 115 P0.13
J2 ETH-RST
32 116
D0 P1.16
P1.27
D-
R3 27 MCU-USBDN P1.17
33 117
J1 D1
P1.18
34 118 P0.17
VCC3 D2 LCD-CS1
P1.19
35 119 P0.18
Q6 D3 LCD-CS2
36 120
J1
J2
J3

J7
J6
J5
J4

BC856 D4 P1.20 P0.19 LCD-RS


P1.21
37 121 P0.20
P0.0 D5 LCD-RW
P1.22
38 122 P0.21
P0.1 D6 LCD-E
P1.23
39 123 P0.22
P0.14 D7 LCD-RST
40 124
D5 VCC3 VCC
BAT43
USB LINK LD1 P0.0 P0.1
41 125
POWER P0.2 P0.3
42 126
R31

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

RSTBUT P0.18 P0.19


52 136
P0.20 P0.21
On-Board USB

P0.21 P1.20 PP-VBUS


P0.22 53 137
programmer

P0.17
RTXC1 27 USBDN P0.22 P0.23
P0.16 54 138
ARMprog

P1.19 P0.15 27 USBDP


55 139
RTXC2 P1.21 P0.25
Vss Vdd 56 140
VddA Vss
57 141
P1.18
LPC2148 P0.14 P0.28 P0.29
P0.25 58 142
P1.22
P0.30 P0.31
D+ P0.13 59 143
D- P0.12
60 144
P1.17 P0.11 P1.16 P1.17
P0.28 P1.23 61 145
P0.29 P1.18 P1.19
P0.10 62 146
P0.30 P0.9
RTXC2
P1.20 P1.21
63 147
P1.16 P0.8
RTXC1 P1.22 P1.23
64 148
P1.25
P0.31

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

CONNECTING THE ARM MCU CARD


CONNECTING ARM MCU CARD

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

PSoC MCU CARD

Very fast and flexible USB LPC2148 64-pin microcontroller.


programmer

USB Link LED indicates AVR MCU card is connected to UNI-DS3 develop-
USB link state. ment board via 168-pin connector.

Figure 49. PSoC MCU Card

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

POWER USB LINK

VCC CN11 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

RX232A RC6 RE5 CAN-CS


11 95
R1 27 TX232A RC7 RE6 CAN-RST
USBDN 12 96
RE7 CAN-INT
RB1 USBDP 13 97
RB1-PGC

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

RE3 RE4 48 132


RB6 RB7
P4[3] P4[4] 49 133
RE1 RE2 50 134
RC0 RC1
P4[1] P4[2] RC2
51 135
RC3
SMP RE0 RC4
52 136
RC5
SMP P4[0] RC6
53 137
RC7
RD7 Xres 54 138
P3[7] Xres RD0
55 139
RD1
RD5 RD6 RD2
56 140
RD3
P3[5] P3[6] RD4
57 141
RD5
RD3 RD4 RD6
58 142
RD7
P3[3] P3[4] 59 143
RD1 RD2 RE0
60 144
RE1
P3[1] P3[2] 61 145
RF3 RE2 RE3
RD0 RE4
62 146
RE5
P5[3] P3[0] 63 147
RF1 RF2 RE6 RE7
64 148
P5[1] P5[2] 65 149
RB7 RF0 RF0 RF1
66 150
P1[7] P5[0] RF2 RF3
67 151
RB5 RB6 68 152
P1[5] P1[6] 69 153
RB3 RB4 70 154
P1[3] P1[4] 71 155
RB1-PGC RB2 72 156
P1[1] P1[2]
73 157
VSS RB0-PGD
VSS P1[0]

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

CONNECTING PSOC MCU CARD

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.

dsPIC MCU Card is delivered with Microchip’s PIC30F6014A 80-pin microcontroller.

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

Figure 52. dsPIC MCU Card connector schematically


MCU CARD

VCC VCC VCC VCC


VCC CN11 VCC

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

PIC DIP40 MCU CARD


Very fast and flexible 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.

Figure 53. PIC DIP40 MCU Card

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

PIC DIP40 MCU CARD


Figure 54. PIC DIP40 MCU Card schematically

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

RX232A RC7 RE0 CAN-CS


11 95
1K
10uF

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

CONNECTING PIC DIP40 MCU CARD

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.

Figure 55. PIC 80-pin MCU Card

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

VCC VCC VCC VCC


VCC CN11 VCC

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

CONNECTING THE PIC 80PIN MCU CARD


CONNECTING PIC 80pin MCU CARD

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.

MIKROELEKTRONIKA PROVIDES THIS MANUAL “AS IS” WITHOUT WARRANTY OF


ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OR CONDITIONS OF MERCHANT’S ABILITY OR FITNESS FOR
A PARTICULAR PURPOSE.

MIKROELEKTRONIKA, IT’S DIRECTORS, OFFICERS, EMPLOYEES OR DISTRIBUTORS


WON’T BE LIABLE FOR ANY DAMAGES WHETHER DIRECT, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL(INCLUDING DAMAGES FOR LOSS OF PROFITS OR INCOME,
LOSS OF BUSINESS, LOSS OF USE OR DATA, INTERRUPTION OF BUSINESS AND
SIMILAR DAMAGES) EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS
MANUAL OR PRODUCT.

SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FURNISHED


FOR INTERNATIONAL USE ONLY, AND ARE SUBJECT TO CHANGES AT ANY TIME
WITHOUT NOTICE, AND SHOULD BE CONSTRUED AS A COMMITMENT BY
MIKROELEKTRONIKA

MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that


may appear in this manual, including the product and software described in it.

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

CAN communi- USB connector for


board. port tion ports. cation ports. USB 2.0 programmer USB connector
External power for MCUs with
supply from 8 to USB support
16 V AC/DC.
Choose between
external or USB Turns ON or
power supply. OFF the LEDs
With USB power on all MCU
supply selected, ports.
you don’t need
external supply. Enables Setial
You can connect Ethernet and
LCD if you need CAN communi-
it four your appli- cation.
cation in 4-bit
mode.
Real Time Clock MCU Card
socket
D\A converter
output
Enables
A\D converter RS485, SPI
input communication
lines and Real
See all the sig- Time Clock.
nals - each pin
has an LED. Enables A\D
and D\A mod-
Reset circuit ules and RS232
communication.

Choose how to If you set jumper


affect the pin by to the upper posi-
pressing button, tion the pins of
high state or low the appropriate
state. port are set to
logical one (pull-
up). If you set
RS BO jumper to the
LE AVR

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

If you are experiencing problems with any of our Technical Support :


products or you just want additional information, support@mikroe.com
please let us know. We are committed to meeting
any need of yours. If you have any other question, comment or a busi-
ness proposal, please contact us:

E-mail: office@mikroe.com
Web: www.mikroe.com
Forum: www.mikroe.com/forum/

Software and Hardware


solutions for Embedded World

You might also like