Download as pdf or txt
Download as pdf or txt
You are on page 1of 43

QLS Electronics http://www.pic16.

com

QLdsPIC3 User’s Manual


REV:2.0

Designed by QLS Electronics

http://www.pic16.com/en

1
QLS Electronics http://www.pic16.com

Introduction

The QLdsPIC3 development board is an experimental development board designed


by QLS Electronic by integrating its main characteristic function module based on
variety of 16-bit microcontroller DEMO boards home and aboard, the main circuit of
which origins from the standard DEMO board and reference application circuit of
MICROCHIP Co. The design of board resource is completely open which can be
flexibly extended, is a good assistant for mass of engineers to deal with the 16-bit
MICROCHIP microcontroller software and hardware design.

The QLdsPIC3 development board supports PIC24FJ96GA008 and other chips


compatible with pin, and the chip module can be changed.

The QLdsPIC3 development board supports dsPIC30F6014A and other chips


compatible with pin, and the chip module can be changed.

The QLdsPIC3 development board supports dsPIC33FJ128GP708 and other chips


compatible with pin, and the chip module can be changed.

If it’s the first time for you to use dsPIC chip or this development board, please
take about one hour to read this manual. If you come across any problem during use
in the future, maybe you can find the answer here.

2
QLS Electronics http://www.pic16.com

Catalogue

Chapter 1-- Brief Introduction Of QLdsPIC3


1. Function explanation--------------------------------------------------------------------5
2. Schematic---------------------------------------------------------------------------------6
Chapter 2-- Source File Edit ------------------------------------------------------------11
Chapter 3-- Debugger&programmer MCD2
1. Introduction Of MCD2-----------------------------------------------------------------15
2. Connection Of MCD2 and OLdsPIC3-----------------------------------------------16
3. Use Method Of MCD2-----------------------------------------------------------------17
As Debugger-----------------------------------------------------------------------------17
As Programmer--------------------------------------------------------------------------18
Chapter 4-- Introduction of all function modules
1. Power Supply module-------------------------------------------------------------------19
2. Main Control Chip And Programmer/reset Circuit module------------------------20
3. LED module------------------------------------------------------------------------------21
4. Key-press module------------------------------------------------------------------------22
5. A/D Converter Input module-----------------------------------------------------------23
6. DS18B20 Digital Thermometer module----------------------------------------------24
7. Real Time Clock module---------------------------------------------------------------25
8. Character LCD1602 module-----------------------------------------------------------26
9. Graphic LCD12864 module------------------------------------------------------------27
10. MMC/SD Card module-----------------------------------------------------------------28
11. PS2 Communication module-----------------------------------------------------------29
12. CAN Bus module------------------------------------------------------------------------30
13. RS232 Communication module--------------------------------------------------------31
14. RS232 Communication module with handshake agreement-----------------------32
15. RS485/422 Communication module--------------------------------------------------33
16. Serial Ethernet module------------------------------------------------------------------34
17. Audio Codec------------------------------------------------------------------------------35
18. Direct Port Access ----------------------------------------------------------------------36
19. Arbitrary Distribution Of I/O Interface Example------------------------------------37
Chapter 5-- PIC24 And dsPIC33 Series Supplement Explanation ---------------38
Chapter 6-- QLS’s Other Main Product -----------------------------------------------39

3
QLS Electronics http://www.pic16.com

Chapter 1 Introduction To Product


QLdsPIC3 development board is an experimental development board designted by
QLS Electronic by integrating its main characteristic function module based on
variety of 16-bit microcontroller DEMO boards home and aboard, the main circuit of
which origins from the standard DEMO board and reference application circuit of
MICROCHIP Co, and is modified properly. The source of it is abundant, the design
is completely open, the pending source can be flexibly used and the other ones can
be extended. OLdsPIC3 development board is not only a good assistant for mass of
microcontroller fans to learn 16-bit microcontroller, but also the advantageous tool
for the mass of engineers to develop products by using the dsPIC microcontroller.
Just change the corresponding master controller for it, then the OLdsPIC3
development board can support the 16-bit microcontroller like PIC24FJ series,
dsPIC30 series and dsPIC33 series.

The OLdsPIC33 adapts the standard ICSP download interface recommended by


MICROCHIP Co. externally, can use MCD2/ICD2/KIT2, etc and the compatible
products to debugging and programming the main controller on OLdsPIC3.

The section 1 mainly introduces all function of OLdsPIC3; and the section 2 mainly
introduces the Schematic of QLdsPIC3.

4
QLS Electronics http://www.pic16.com

1 Function Explanation

1 power supply module 2 master controller Card


3 ICSP interface 4 ICSP pin selection
5 reset key-press 6 LED module
7 key-press module 8 A/D converter input module
9 DS18B20 digital thermometer module 10 real time clock module
11 character LCD1602 12 LCD1602 contrast adjustment
13 graphic LCD12864 14 LCD12864 contrast adjustment
15 MMC/SD card module 16 PS2 module
17 CAN bus module 18 RS232 module
19 RS232 module with hardware flow control
20 RS485/422 module 21 Serial Ethernet module
22 audio codec module 23 direct port access

5
QLS Electronics http://www.pic16.com

2.Schematic
VCC VCC
CN24
RA6 RA7
1 2
RA9 RA10
3 4
E1 E2 E3 E4 C3 C4 C5 C6 C7 RA12 RA13
5 6
10U/6.3V 10U/6.3V 10U/6.3V 10U/6.3V 104P 104P 104P 104P 104P RA14 RA15
7 8
VCC
9 10
PORTA

CN25
RB8 RB9
1 2
RB10 RB11
3 4
RB12 RB13
5 6
RB14 RB15
VCC 7 8
VCC
9 10
PORTB(high)

12

32

48

71
CN26
C49
RB0 RB1
1 2
RB2 RB3

V DD

V DD

V DD

V DD
VCC 1 80 3 4
RG15 RG13 RB4 RB5
2 79 5 6
RC1 RG12 RB6 RB7
3 78 7 8
RC2 RG14 VCC
4 77 9 10
RC3 RA7
R44 5 76 PORTB(low)
RC4 RA6
10K 6 75

dsPIC30FXXXX
RG6 RG0
7 74
RG7 RG1
8 73
dsPIC24XXXX

dsPIC33XXXX
RG8 RF1 CN27
72
R43 RF0 RF8 RC1
VPP 9 69 1 2
MCLR RD7 RC2 RC3
1K 68 3 4
RD6 RC4 RC13
10 67 5 6
RG8 RD5 RC14 NC
13 66 7 8
RA12 RD4 VCC
14 65 9 10
RA13 RD13
K10 15 64 PORTC
RB5 RD12
16 63
RB4 RD3
RESET 17 62
RB3 RD2 CN28
18 61
RB2 RD1 RD8 RD9
19 58 1 2
RB1 RD0 RD10 RD11
20 57 3 4
RB0 RD11 RD12 RD13
21 56 5 6
RB6 RD10 RD14 RD15
22 55 7 8
RB7 RD9 VCC
23 54 9 10
RA9 RD8
24 53 PORTD(high)
RA10 RA15
52
RA14
25 47
AVDD RG2 CN29
26 46
AGND RG3 RD0 RD1
27 45 1 2
RB8 RF6 RD2 RD3
28 44 3 4
RB9 RF7 RD4 RD5
29 43 5 6
RB10 RF8 RD6 RD7
30 42 7 8
RB11 RF2 VCC
33 41 9 10
RB12 RF3
34 40 PORTD(low)
RB13 RF5
35 39
RB14 RF4
36 38
RB15 RD15 CN30
37
RD14 RF0 RF1
60 1 2
OSC1

OSC2

RC14 RF2 RF3


VSS

VSS

VSS

VSS

59 3 4
RC13 RF4 RF5
5 6
RF6 RF7
7 8
VCC
CN17 J17 9 10
70

51

11

31

49

50

1 2 RB6 Y1 PORTF
1
ICSP_CLK 3 4 RB1
2
ICSP_DAT 5 6 RF2
3 CN31
7 8 RD0 10M
4 +3.3V +3.3V
9 10 RB7 1 2
5 VCC C1 C2 +5V +5V
VPP 11 12 RB0 3 4
6 22P 22P RG12 RG13
13 14 RF3 5 6
RG14 RG15
DEBUGGEROR 15 16 RD1 7 8
VCC
PROGRAMMER 9 10
CONNECTOR PORTG(high)
ICSP PORT SELECT

VCC CN32
RG0 RG1
1 2
RG2 RG3
3 4
RG6 RG7
VCC 5 6
RG8 RG9
7 8
D5 VCC
9 10
IN5819 CN18 PORTG(low)
1
2
3

R46 R47 R48


10K 10K 10K

C46 C47 U11


104P R45 22P 1 8 S13
OSCI VDD
68R 2 7 6 1 RA12
OSCO INT
3 6 5 2 RG2
Y2 A0 SCL
4 5 4 3 RG3
32.768Hz GND SDA
PCF8583

D6
IN5819

BT1 PCF8583 I/O


BATTERY

6
QLS Electronics http://www.pic16.com

DC9V IN 7805 +5V VCC


D1 IN4007 F1
1 V V 3 1 3
IN OUT
D2 0.5A
GND

2
IN4007 C5
C2 R9
C3 C4 104P
470

2
D3 10U/25V 47U/6.3V
IN4007 C1 104P 47U/6.3V
LED9
POWER
D4 IN4007

U2
1117-3.3 +3.3V
3 V V 2
+5V OUT
IN
GND
C7 C9
C8
104P
POWER

1
47U/6.3V 47U/6.3V
C6 104P

+5V
C17
105P
C16
105P
CN5
1
2
3
4

C15 J6
104P 1
C14 6

16
2
6
105P TX_B 2
S9 CTS_B 7
RF2 1 8 RX_B_MCU RX_B 13 V- 12 RX_B_MCU RX_B 3
V+

VCC
R1 IN R1 OUT
RF3 2 7 TX_B_MCU CTS_B 8 9 CTS_B_MCU RTS_B 8
R2 IN R2 OUT
RD5 3 6 RTS_B_MCU TX_B_MCU 11 14 TX_B 4
T1 IN T1 OUT
RD4 4 5 CTS_B_MCU RTS_B_MCU 10 7 RTS_B 9
T2 IN T2 OUT
1 4 5
GND

C1+ C2+
3 5
C12 C1- C2- C13 DB9
105P 105P
U4
15

MAX232

RS232-A C23
105P
+5V

C22
CN6 105P
C21 J7
1
2

104P 1
C20 6
16
2
6

S8 105P TX_A 2
RS232 PORT A 7
RX_A 13 12 RX_A_MCU RX_A 3
V+
V-
VCC

RF5 1 4 TX_A_MCU R1 IN R1 OUT


8 9 8
RF4 2 3 RX_A_MCU R2 IN R2 OUT
TX_A_MCU 11 14 TX_A 4
T1 IN T1 OUT
10 7 9
T2 IN T2 OUT
1 4 5
GND

C1+ C2+
3 5
C18 C1- C2- C19
RS232-B 105P
U5
105P
DB9
15

MAX232

CN7 CN8 J8
1
2
1
2

+5V 6
1
R13 120R 2
U6 7
4 5 3
RXD VREF
S7 3 6 8
VDD CRNL
RF0 1 4 2 7 4
GND CRNH
RF1 2 3 1 8 9
TXD RS
R14 33K 5
MCP2551-I/SN
C24 +5V DB9

CAN 104P

U7 +5V
R15
NUL

MAX489E S6
485_DE C25 INSTALL JUMPERFOR485
R16 104P REMOVE FOR 422
14

R17 120R
4

GND 1 4
10K 2 3
CN9
DE

VCC

485_DI 5 9
1
2
3
4

DI Y
2
1

10
Z
485_RO 2 CN10
RO
S5 12
A
1
RF2 1 8 485_RO NC
8 11
RF3 2 7 485_DI NC B
13
RG0 3 6 485_RE NC
GND
GND

RG1 4 5 485_DE +5V


R19
RE

1K R20
1K
3

6
7

RS485/422
1
2
3
4
5
6

485_RE
R18 CN11
+5V
+5V RS485/RS422
10K

7
QLS Electronics http://www.pic16.com

LED1
R1 470 RD0
R2 470 LED2
S1 RD1
RD0 8 9 LED3
RD1 7 10 R3 470 RD2
RD2 6 11 LED4
RD3 5 12 R4 470 RD3
RD4 4 13 LED5
RD5 3 14 R5 470 RD4
RD6 2 15 LED6
RD7 1 16 R6 470 RD5
R7 470 LED7
RD6
R8 470 LED8
RD7

LED
8
7
6
5
4
3
2
1

CN1
K1 RA12
S2
RA12 8 9 K2 RA13
RA13 7 10
RA14 6 11
RA15 5 12 K3 RA14
RC0 4 13
RC1 3 14
RC2 2 15 K4 RA15
RC3 1 16

按键
key K5 RC0

K6 RC1

CN2 K7 RC2
1
2
3 K8 RC3
4
2

5
3 1
6 VCC
7
8 J1
2

3 1
9
8
7
6
5
4
3
2
1

VCC

J2

RJ1

VCC C11
CN4 +5V
C10
1
2

104P
J18 104P R10
3
1 10K VDD
NC 2
S4 2 DQ
CLK 1
3 J5 GND
RC4 1 4 VCC RF6
4 1 DS18B20
2
RC3 2 3 GND U3
5
NC DS18B20
6
DATA

R11
1K
R12
1K
PS2
DS18B20
+5V PS2
8
QLS Electronics http://www.pic16.com

LCD1602 LCD12864

10
11
12
13
14
15
16

10
11
12
13
14
15
16
17
18
19
20
+5V

1
2
3
4
5
6
7
8
9

1
2
3
4
5
6
7
8
9
VEE
+5V

R/W
+5V +5V +5V

VO

R/W

VEE
D0
D1
D2
D3
D4
D5
D6
D7
RS

RST
PSB
D0
D1
D2
D3
D4
D5
D6
D7

NC
D/I
E

V O1

E
+5V VR1
VO

10
12
14
16
18
20
22
C48 VO1

2
4
6
8
VR2
1K J18 10K

10
12
14
16
18
20
22
24
26
28
104P

2
4
6
8
J19

11
13
15
17
19
21
1
3
5
7
9
RD0 VCC
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RB4
RB5
RB6

11
13
15
17
19
21
23
25
27
1
3
5
7
9
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RB4
RB5
RB6

RB2
RB3
RB7
RG9 1 8 MMC CS
RG8 2 7 MOSI
RG6 3 6 SCK

2
RG7 4 5 J14

2
J13 +3.3V
2

J12 R30
R29
2K2
R28 2K2
2K2
C35 104P

1
1
1

J15
CN16
SD CARD
4
1
3 CS
2
2 Din
3
1 GND
R31 R32 R33 4
+3.3V
3K3 3K3 3K3 5
SCK
6 MMC/SD
GND
7 CARD
Dout

MISO

MMC/SD卡
Y1 OPEN
MCLK RG14_SI3000
4
GND

3 +V
OUT 1
Slave or Master J9 NC
1
2 6
5 9
10
VCC AVCC VCC
R23
AVCC
CODEC
音频编码 /解码
2

3 7 11 0
4 8 12 C37 C39
104P C38 104P
22U/6.3V
VCC VCC C36
22U/6.3V

R21 R22
12

13

51K 51K R27 J10


U10 2K2
VD

VA

MCLK 7 2 C42 104P MIN IN CN13


MCLK MBIAS
8 10 C41
SCLK MIC 1
S10 6 11 LINE_IN
FSYNC LINEI 2
RG13 1 10 4 15 C43 LINE_OUT
SDI LINEO 3
RG12 2 9 5 104P
SDO 4
RG15 3 8 VCC 1
R24 SPKRR
RG14 4 7 16 10U/16V
SPKRL LINE I/O
RF6 5 6 10K C40 C44
R25 30R J11
9 3
GND

RESET HDST
SW DIP-5 RG14_SI3000
104P 10U/16V
K9 C45 R26 30R
SI3000
SPK OUT
14

CODEC_RESET
5
4
3
2
1

10U/16V
CN12
1K

VR3

RB41 6
RB52 5
RB63 4
S3

1K

VR4
AD

VCC
CN3
3
2
1

1K

VR5

9
VCC
+3.3V
1 20
DIR VCC

C26
2 19

104P
A0 OE
3 18
A1 B0
ETH-INT 4 17
A2 B1

C27 104P
C28 104P
C29 104P
ETH-WOL 5 16

C30
LED

A3 B2
ETH-MISO 6 15
LEDB

1K
R41
A4 B3

10U/25V
7 14

1K
R42
LED
A5 B4

+3.3V
8 13
LEDA
QLS Electronics

A6 B5
9 12 1 28
A7 B6 VCAP VCC
10 11 2 27
GND B7 GND LEDA
3 26
CLKOUT LEDB

L1
4 25

U8
INT OSC-VCC
5 24
WOL OSC2
6 23

22P
C34

74HCT245
SO OSC1
11
12

Y3
ETH-MOSI 7 22
SI OSC-GND

25M
ETH-SCK 8 21
SCK PLL-GND
ETH-CS 9 20
CS PLL-VCC
A2
K2

ETH-RST 10 19 1
RESET RX-VCC TD+
11 18 3
GND-RX TX-GND CT
12 17 2

22P
C33
TPIN- TPOUT+ TD-
13 16 7
TPIN+ TPOUT- RD+
14 15 6
RBIAS TXVCC CT

RG6
RG8
RG7
8

RG13
RG12
RA15
RA14
R34
R40
51R

10K
RD-

U9
A1
K1

1
2
3
4
5
6
7
8
ENC28J60
9
10

S12
C32

1k2
1k2
103P

R35
R36

+3.3V
R39
51R

16
15
14
13
12
11
10
1

CN19
2
3
R38
51R

4
5
6
7

Ethernet
C31

103P

R37
51R

ETH-CS
ETH-RST
ETH-INT

ETH-SCK
ETH-WOL

ETH-MOSI
ETH-MISO
http://www.pic16.com

10
QLS Electronics http://www.pic16.com

Chapter 2 Source File Edit


The 16-bit PIC microcontroller dsPIC supports assembly language source file and C
language source file. The assembly language generally uses the MPASM30 compiler
taken by MPLAB IDE, while the C language compiler needs to be installed
additionally. At the moment, the common C language compiler contains dsPICC of
HI-TECH CO. and the C30 compiler supplied by Microchip. All the reference
examples attached by this development board are the programs passed by C30
compiler under the MPLAB IDE environment and experiment. The relevant
MPLAB IDE software and C30 compiler can be gained from the CD, or you can get
the new version from the company website of Microchip Co.

There is no difference for installing MPLAB IDE software, C30 compiler and other
application software, neglect here. If you have any doubt, please refer to MPLAB
IDE User’s Guide. This chapter particularly talks about how to use the C30 compiler
and compiling source file in MPLAB IDE to get the final target file. The relevant
introduction to C30 in details, please refer to dsPIC C30 User’s Manual and dsPIC
Language Tool Introduction in the CD-ROM.

Edit the file


Start up the MPLAB IDE software (except particular explanation, all is version 7.50)
from the desktop or Start menu. Select File →New, open a blank source file edit
window, and input the relevant source in it, after edit, select File →Save or Save As,
save the source file to the prescribed route (for example, the route is C:\QLdsPIC3;
and the file name is myfile1.c). See the example as picture 2.1.

”SAVE AS” window

Picture 2.1 save the source program named as myfile.c to the route C:\QLdsPIC.

11
QLS Electronics http://www.pic16.com

Create the project by the guide


Create the project by selecting Project→ Project Wizard, , a welcome interface will
come out, then click NEXT to continue.
First, in the Step One: Select a Device, select the dsPIC30F6014A chip by pulling
down the menu, click NEXT to continue.
Second, in the Step Two: select a language tool suite, select Microchip C30 Tool suite
as Active Tool Suite. And make sure the route of each language tool in the Tool Suite
Contents is correct. If it is wrong, “×” will be signed in the front, then please move it
to the correct route by hand, and click NEXT to continue. See picture 2.2.

Picture 2.2 select the language tool and prescribe the relevant route

Third, in the Step Three: Name your project, input the project name myfile1
(currently keep the same name as the source program, and suffix is not necessary),
click the button Browse, prescribe the project route to the catalogue C: \QLdsPIC
(currently should keep the same route with source file). Then click NEXT to continue.
See as picture 2.3.
Fourth, in the Step Four: Add any existing files to your Project, add two files to the
project. First, select the source file myfile1.c saved in the OLdsPIC3, click ADD, and
add it into the list files used in the project. Second, must add the link description file
p30f6014A.gld, and advise the linker the memorizer structure of dsPIC30F6014A.
The link file is under the route “\support\gld” under the installed catalogue MPLAB
C30, select it, click ADD, and add it into the project. Click NEXT to continue. See
picture 2.4.
Fifth, recheck the project parameter in the Summary window, validate if the position
of chip, tool suite and project file is correct.

12
QLS Electronics http://www.pic16.com

If you would like to change some item, can click Back to return to the last dialog box.
Click Finish to create the new project and workaround. See picture 2.5.
Sixth, perform the menu order Project→ Build All, complie the source file, if there is
any grammar or writing mistake in the source file, then edit and re-compile by Build
All after edit the source file till it succeeds and produces target file (here will produce
file myfile.hex). See picture 2.6.
About the introduction of the source file edit and compiling is over. For more
imformation, please refer to MPLAB IDE User’s Guide.
Next chapter, we will mainly introduce the use of debugger which supports the 16-bit
PIC microcontroller and programmer MCD2.

Picture 2.3 Fill in the project name and consigned route

Picture 2.4 Add the source file and link file to the project

13
QLS Electronics http://www.pic16.com

First file

Second file

Page 14 Picture 2.5 Produce the relevant project window

Compiling result

Source file Target file Project file

Picture 2.6 Compiling result

14
QLS Electronics http://www.pic16.com

Chapter 3 Debugger/Programmer MCD2


1 Introduction of MCD2
MCD2 is a development tool with strong function, low cost and high running speed of
online debugger .It uses the self-reading & self-writing function in the program area
of Flash technical to implement the stimulation and debugging function. MCD2 not
only can be used as debugger, but also can be taken as the little programmer’s tool for
most of chips, with the following characteristics:
◆ MCD2 is completely compatible with the original MPLAB-ICD2 development
tool produced by Microchip.
◆ Use the MPLAB-IDE software development platform of Microchip.
◆ It is compatible with the operating systems like Windows
95/98/ME/NT/2000/XP/2003/VISTA, etc
◆ MCD2 adapts two kinds of communication :including USB & RS-232
◆ It can support most of Flash technical chips. It not only can be used as debugger,
but also can be taken as programmer.
◆ MCD2 can be upgraded for free without limit, and keeps supporting new
components, just download the new version of MPLAB-IDE on the Internet.
In the meantime, compared with most of ICD2 or similar products in the market, it
contains the following advantages:
◇ The electronic protection circuit is set to prevent the problem of MCD2 output
circuit broken caused by the user board while user board electrifying earlier than
the MCD2.
◇ Static electronic protection circuit prevents from the MCD2 output circuit broken
caused by external static.
◇ The user board over-current/short circuit protection circuit, user board
over-voltage protection circuit (adapts lossless, self-restoring and over-current
protection )
◇ The computer USB interface over-current protection circuit (adapts lossless,
self-restoring and over-current protection)
◇ The USB interface voltage & constant voltage circuit prevent form the unstable
stimulator situation caused by the unstable voltage of computer USB interface
◇ Ultra-strong anti-jamming PCB cabling design, earth line zero potential design,
earth line separate design, signal line ground guard design, absolute zero potential
(compare to ground reference) complete board ground guard design.

For more details, please refer to website: http://www.pic16.com/en/wzcapi/m06.htm

15
QLS Electronics http://www.pic16.com

2 Connection Of MCD2 And QLdsPIC3

Before debugging or programming the QLdsPIC3 by using MCD2 and the compatible
product ICD2, please connect MCD2 with QLdsPIC3 as the following picture.
First, connect MCD2 with the computer by USB interface. The power supply is
gained from the computer by USB line for MCD2, so it’s not necessary to connect the
external power supply. Before using, please make sure install the USB driver well.

Second, connect the external power supply with QLdsPIC3 (please pay attention to
use the power supply matching with the board or the power supply in accordance with
the labeling specification on the board).
Third, use the phone line attached by MCD2 (the both ends of which are crystal) to
connect MCD2 and QLdsPIC3.
After integrated connection, the picture is as below.

Picture: connection of MCD2 and QLdsPIC3

Note: QLdsPIC3 must use external power supply. MCD2 can’t offer the power
supply.

16
QLS Electronics http://www.pic16.com

3 Use Method Of MCD2

First of all, connect the MCD2 and the QLdsPIC3 development board as the method
introduced by last section (note: if it’s the first time to connect by COM interface,
should set up its attribute; if it’s the first time to use USB interface, should install
USB driver. For the concrete method, please read the relevant chapter introduction in
MCD2 manual.) Then edit the source file, set up the project files, compile and
produce the relevant target file (.HEX file) according to the method introduced by
chapter 2.

As debugger
When the MCD2 is made as debugger, please follow the following operating steps.
The first step, perform the menu order Configure→ Select Device, select the target
chip.
The second step, perform the menu order Configure→ Configuration Bits, setup the
relevant configuration bits.
The third step, perform the menu order Debugger→ Select. Tools, select MCD2 as
the debugger tool.
The fourth step, perform the menu order Debugger→ Settings, select the
communication port.
The fifth step, perform the menu order Debugger→ Connect, set up the
communication between MCD2 and QLdsPIC3.
The sixth step, perform the menu order Debugger→ Program, make the target file
and debugger file be programmed into the chip.
The seventh step, perform the menu order Debugger→ Run, or use other running
ways to debug the target file.
The eighth step, view the running result of the file.
The ninth step, if edit the source file, after recompiling, then re-perform the fifth
step to eighth step.

17
QLS Electronics http://www.pic16.com

As programmer
When MCD2 is made as programmer, please follow the following operating steps.
The first step, perform the menu order Configure→ Select Device, select the target
chip
The second step, open the project file or directly import the HEX file.
The third step, perform the menu order Configure→ Configuration Bits, if needed,
setup the relevant configuration bits.
The fourth step, perform the menu order Programmer→ Select Tools, select MCD2
as programmer tool.
The fifth step, perform the menu order Programmer→ Setting, select the
communication way.
The sixth step, perform the menu order Programmer→ Connect, set up the
communication between MCD2 and QLdsPIC3.
The seventh step, perform the menu order Programmer→ Program, make the .HEX
file be programmed into the target chip.
The eighth step, cut off the connection between MCD2 and QLdsPIC3.
For more details about the use method, please refer to the PIC16-MCD2 User’s
Manual or the relevant materials.

18
QLS Electronics http://www.pic16.com

Chapter 4 Function introduction of all modules


1. Power supply module

External power supply input interface VCC=5V


Voltage range:
DC: 7V-12V
AC: 5V-10V VCC=3.3V

DC9V IN 7805 +5V VCC


D1 IN4007 F1
1 V V 3 1 3
IN OUT
D2 0.5A
GND
2

IN4007 C5
C2 R9
C3 C4 104P
470
2

D3 10U/25V 47U/6.3V
IN4007 C1 104P 47U/6.3V
LED9
POWER
D4 IN4007

U2
1117-3.3
3 V V 2
+5V OUT +3.3V
IN
GND
C7 C9
C8
104P
1

47U/6.3V 47U/6.3V
C6 104P

Because the Ethernet part on the board and LCD is in a poor light ( if
select the LCD in a poor light), it needs much bigger working electric
current, please don’t touch the power supply part after long time
working in prevent of scalding the skin due to too high temperature.

19
QLS Electronics http://www.pic16.com

2. Main control chip and programmer circuit/ reset circuit module


This manual takes dsPIC30F6014A as example. Just only change the main control
panel when using other chips.

VCC

E1 E2 E3 E4
10U/6.3V 10U/6.3V 10U/6.3V 10U/6.3V

VCC

C3 C4 C5 C6 C7
104P 104P 104P 104P 104P

VCC
12

32

48

71
R44 VPP
VCC
10K
VDD

VDD

VDD

VDD
1
RG15 RG13
2
RC1 RG12
3
RC2 RG14
K10 R43 4
RC3 RA7
1K 5
RC4 RA6
RESET 6
RG6 RG0
DSPIC30F6014A

7
RG7 RG1
8
RG8 RF1
RF0
9
MCLR RD7
RD6
10
RG8 RD5
13
14
15
RA12
RA13 PIC24FJ RD4
RD13
RB5 RD12
16
RB4 RD3
17
RB3 RD2
18
19
RB2
RB1
dsPIC30F RD1
RD0
20
RB0 RD11
21
RB6 RD10
22
23
RB7
RA9
dsPIC33F RD9
RD8
24
RA10 RA15
CN17 J17
RA14
1 2 RB6 25
1 AVDD RG2
ICSP_CLK 3 4 RB1 26
2 AGND RG3
ICSP_DAT 5 6 RF2 27
3 RB8 RF6
7 8 RD0 28
4 RB9 RF7
9 10 RB7 29
5 VCC RB10 RF8
VPP 11 12 RB0 30
6 RB11 RF2
13 14 RF3 33
RB12 RF3
ICD2 CONNECT 15 16 RD1 34
RB13 RF5
35
RB14 RF4
36
ICSP PORT SELECT RB15 RD15
RD14
OSC1

OSC2

RC14
VSS

VSS

VSS

VSS

RC13
70

51

11

31

49

50

Y1

10M

C1 C2
22P 22P

20
QLS Electronics http://www.pic16.com

3. LED module

RD0:ON
OTHER:OFF

LED1
R1 470 RD0
R2 470 LED2
S1 RD1
RD0 8 9 LED3
RD1 7 10 R3 470 RD2
RD2 6 11 LED4
RD3 5 12 R4 470 RD3
RD4 4 13 LED5
RD5 3 14 R5 470 RD4
RD6 2 15 LED6
RD7 1 16 R6 470 RD5
R7 470 LED7
RD6
R8 470 LED8
RD7
8
7
6
5
4
3
2
1

All the LED is high level lightening.


After connecting the power, the LED may be lightened without rule if it doesn’t plug
into the main control chip or there is no file in the main control chip, which is the
ordinary situation, because it’s influenced by the other share I/O interfaces.
If need to use some potential, the corresponding potential of switch should be dialed
to ON end (for example, the RD0 potential in the picture).
Connecting CN1 by the Dupont line can test the LED function of other I/O interfaces
(make sure the corresponding potential of switch is cut off).
There is 8-bit flowing light experiment attached in the CD-ROM for reference.

21
QLS Electronics http://www.pic16.com

4. Key-press module

CN2
K1 RA12
8
7
6
5
4
3
2
1

K2 RA13

S2
RA12 8 9 K3 RA14
RA13 7 10
RA14 6 11
RA15 5 12 K4 RA15
RC0 4 13
RC1 3 14
RC2 2 15
RC3 1 16
K5 RC0

VCC K6 RC1
3

J2 K7 RC2
2
K8 RC3
1
2
3
4
5
6
7
8
9

2
1

3 1
VCC

RJ1 J1

When it’s used, should make sure the corresponding potential of switch S2 is on.
J1 selects the situation of key-press pressing down; while J2 selects the level situation
(pull on or pull down) of the data line without key-press.
When J1 jumps to the GND end, then J2 must jump to the UP end.
When J1 jumps to the VCC end, then J2 must jump to the DOWN end.
Connecting CN1 by using the Dupont line can test the key-press function of other I/O
interfaces (make sure the corresponding potential of switch is cut off).
There are key-press examples attached in the CD-ROM for reference (LED shows
the key-press result).

22
QLS Electronics http://www.pic16.com

5 A/D converter input module

VCC

VR3
S3 1K
RB4 1 6
RB5 2 5
RB6 3 4

VR4
1K
3
2
1

CN3
VR5
1K

If not use AD converter input, please make sure the switch S3 is cut off, otherwise,
when the resistance to earth of potentiometer is modified to the lowest, it will affect
the ordinary work of RB4 pin, RB5 pin and RB6 pin.
Connecting CN3 by using Dupont line can test the A/D converter function of other
A/D converter input pin (make sure the corresponding potential of the switch is cut
off).
There are A/D converter examples attached in the CD-ROM for reference (LED
shows the result).

23
QLS Electronics http://www.pic16.com

6 DS18B20 temperature thermometer module

C11 VCC

104P
R10
3
10K VDD
2
DQ
1
J5 GND
RF6 1 2DS18B20
U3
DS18B20

DS18B20 is the selected product for this product.


If not use, please take off DS18B20 from the socket.
When using, pay attention to the inserting and placing direction of DS18B20, and get
through the jumper J5.
After cutting off the jumper J5, can test reading the DS18B20 with other I/O
interfaces by Dupont line.
The datasheet of DS18B20 is attached in the CD-ROM.
There is the example of DS18B20 attached in the CD-ROM for reference (the
1602LCD is made as the display result.).

24
QLS Electronics http://www.pic16.com

7. Real Time Clock module

VCC

VCC
D5
CN18 IN5819
3
2
1

R48 R47 R46


10K 10K 10K

U11 C47 C46


S13 8 1 22P R45 104P
VDD OSCI
RA12 1 6 7 2 68R
INT OSCO
RG2 2 5 6 3
SCL A0 Y2
RG3 3 4 5 4
SDA GND 32.768Hz
PCF8583

D6
IN5819

BT1

BATTERY
Aim of the experiment: familiar with the use method of IIC bus.
When using, please make sure the switch S13 is on.
The datasheet of PCF8583 is attached in the CD-ROM.
Connecting CN18 by Dupont line can read the PCF8583 by other I/O interfaces
(make sure the corresponding switch potential is cut off).
There’s example of PCF8583 attached in the CD-ROM for reference (the 1602LCD is
made as the result).

25
QLS Electronics http://www.pic16.com

8. Character LCD1602 module

LCD1602
10
11
12
13
14
15
16
+5V
1
2
3
4
5
6
7
8
9

+5V
R/W
VO

+5V
D0
D1
D2
D3
D4
D5
D6
D7
RS

VO
10
12
14
16
18
20
22
2
4
6
8

VR2
1K
J18
11
13
15
17
19
21
1
3
5
7
9
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RB4
RB5
RB6

The relevant materials about 1602LCD are record in the attached CD-ROM (is
compatible with the using LCD of this product).
There is example of LCD1602 display for reference in the attached CD-ROM
The 1K potentiometer is used for modifying the LCD display brightness.
If use other I/O interfaces as the communication port of LCD, please cut off the
jumper J18 first as the shown method in the picture, then connect the corresponding
I/O interface by Dupont line. If stops using LCD, we suggest pull down it from the
board in prevent of affecting other modules.

26
QLS Electronics http://www.pic16.com

9. Graphic lcd12864 module

LCD12864
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
VEE

+5V +5V
R/W

VEE
RST
PSB
D0
D1
D2
D3
D4
D5
D6
D7

NC
D/I
VO1

+5V VR1

C48 VO1
10K
10
12
14
16
18
20
22
24
26
28

104P
2
4
6
8

J19
VCC
11
13
15
17
19
21
23
25
27
1
3
5
7
9
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RB4
RB5
RB6

RB2
RB3
RB7

The relevant materials about 12864LCD are record in the attached CD-ROM (is
compatible with the using LCD of this product).
There is example of 12864LCD display for reference in the attached CD-ROM.
The 10K potentiometer is used for modifying the contrast of LCD.
If use other I/O interfaces as the communication port of LCD, please cut off the
jumper J19 first as the shown method in the picture, then connect the corresponding
I/O interface by Dupont line. If stops using LCD, we suggest pull down it from the
board in prevent of affecting other module.

27
QLS Electronics http://www.pic16.com

10. MMC/SD card module

RG9 1 8 MMC CS
RG8 2 7 MOSI
RG6 3 6 SCK
2

RG7 4 5 J14
2

J13 +3.3V
2

J12 R30
R29
2K2
R28 2K2
2K2
C35 104P
1
1
1

J15
CN16
SD CARD
4
1
3 CS
2
2 Din
3
1 GND
R31 R32 R33 4
+3.3V
3K3 3K3 3K3 5
SCK
6 MMC/SD
GND
7 CARD
Dout

MISO

The working voltage of SD card is 3.3V.


When using, please make sure the switch S11 is on.
Jumper J12-14:
When the working voltage of system is 5V, should cut off the jumper J12-J14, so as to
meet the need of SD card, the input pin voltage extension of which is between 0 to
3.3V.
When the working voltage of system is 3.3V, should access the jumper J12-J14 to
Shielding the partial voltage circuit , so as to meet the need of SD card, the input
pin voltage extension of which is between 0 to 3.3V.
Connecting the CN16 by the Dupont line can read the MMC/SD card by other I/O
interfaces (make sure the corresponding potential of switch is cut off).
The relevant materials about SD card are record in the CD-ROM.
The example about simple read and write SD card is attached in the CD-ROM.

28
QLS Electronics http://www.pic16.com

11. PS2 communication module

+5V

C10
104P R11 R12
CN4
1K 1K
1
2

J18
1
NC
2 S4
CLK
3
VCC 1 4 RC4
4
GND 2 3 RC3
5
NC
6
DATA
PS2

Through the PS2 interface, you can connect QLdsPIC3 directly to the external
equipments with PS2 interfaces, like PS2 keyboard, PS2 mouse, etc.
When using, please make sure the switch S4 is on.
Connecting CN4 by Dupont line can use other I/O interfaces communicat with PS2
communication equipment (make sure the switch potential is accordingly cut off).
The relevant materials of PS2 agreement are attached in the CD-ROM.
There is simple example of reading keyboard and key code in the CD-ROM for
reference.

29
QLS Electronics http://www.pic16.com

12. CAN bus module

CN7 CN8
1
2
1
2

+5V 6
1
R13 120R 2
U6 7
4 5 3
RXD VREF
S7 3 6 8
VDD CRNL
RF0 1 4 2 7 4
GND CRNH
RF1 2 3 1 8 9
TXD RS
R14 33K 5
C24 MCP2551-I/SN
+5V DB9
104P R15
NUL

CAN bus (LAN controller) is a widely application series bus. It only needs two data
lines to implement data delivery and reception when communication, but can only
select one kind of the both at the same time (half duplex communication).
One of the obvious characteristics of CAN bus is, the transfer distance is far, and all
the nodes won’t be interrupted by each other, and any connection, disconnection or
fault won’t affect the normal communication among other nodes in the bus.
When the transfer distance is far away, a 120ohm matching resistor should be brought
in between two lines and short connect with the jumper CN8.
The bus receiver CP2551 of Microchip Co. is used in the CAN bus, the materials of it
can be found in the CD-ROM.
When using the CAN bus module, please make sure the switch S7 is on.
Connecting CN7 by Dupont line can test the CAN bus communication by other I/O
interfaces (make sure the switch potential is accordingly cut off).
There’s the simple example of CAN communication record in the CD-ROM for
reference.

30
QLS Electronics http://www.pic16.com

13. RS232 communication module

+5V
C23
105P
C22
105P
CN6 C21
104P
1
2

C20
16
2
6

105P
J7
S8 RX_A 13 12 RX_A_MCU 1
V-
V+

R1 IN
V CC

RS232 PORT A R1 OUT


8 9 6
R2 IN R2 OUT
RF5 1 4 11 14 2
T1 IN T1 OUT
RF4 2 3 RX_A_MCU 10 7 7
T2 IN T2 OUT
1 4 RX_A 3
G ND

C1+ C2+
3 5 8
C18 C1- C2- C19 4
105P 105P 9
U5
5
15

MAX232
DB9

When using, make sure the switch S8 is on.


Connecting CN6 by Dupont line can test the communication function of RS232 by
other I/O interfaces (make sure the corresponding potential of switch is cut off).
The materials about the level transfer chip MAX can be found in the CD-ROM.
There are simple examples in the CD-ROM for reference.

31
QLS Electronics http://www.pic16.com

14. RS232 communication module with handshake agreement

+5V
C17
105P
C16
105P
CN5 C15 J6
1
2
3
4

104P 1
C14 6
16
2
6

105P TX_B 2
S9 CTS_B 7
RX_B 13 12 RX_B_MCU RX_B 3
V-
V+

RF2 1 8 RX_B_MCU R1 IN R1 OUT


V CC

CTS_B 8 9 CTS_B_MCU RTS_B 8


RF3 2 7 TX_B_MCU R2 IN R2 OUT
TX_B_MCU 11 14 TX_B 4
RD5 3 6 RTS_B_MCU T1 IN T1 OUT
RTS_B_MCU 10 7 RTS_B 9
RD4 4 5 CTS_B_MCU T2 IN T2 OUT
1 4 5
G ND

C1+ C2+
3 5
C12 C1- C2- C13 DB9
105P 105P
U4
15

MAX232

When using, make sure the switch S9 is on.


Connecting CN5 by Dupont line can test the communication function of RS232 by
other I/O interfaces (make sure the corresponding potential of switch is cut off).
The materials about the level transfer chip MAX can be found in the CD-ROM.
Confirm the signal lines RTS_B and CTS_B before the communication (similar as the
handshake function of Ethernet).
There are simple examples in the CD-ROM for reference.

32
QLS Electronics http://www.pic16.com

15. RS485/422 communication module

+5V

S6
485_DE C25 INSTALL JUMPERFOR485
R16 104P REMOVE FOR 422
14

R17 120R
4

GND 1 4
10K 2 3
CN9
DE

VCC

485_DI 5 9
1
2
3
4

DI Y

2
1
10
Z
485_RO 2 CN10
RO
S5 12
A
1
RF2 1 8 485_RO NC
8 11
RF3 2 7 485_DI NC B
13
RG0 3 6 485_RE NC
GND
GND

RG1 4 5 485_DE +5V


R19
RE

U7
1K R20
MAX489E 1K
3

6
7

1
2
3
4
5
6

485_RE
R18 CN11
+5V
+5V RS485/RS422
10K

When using, make sure the switch S5 is on.


Connecting CN9 by Dupont line can test the communication function of RS485/422
by other I/O interfaces (make sure the corresponding potential of switch is cut off).
Whether select RS422 communication or RS485 communication for switch S6:
If S6 is cut off: select RS422 communication.
If S6 is access: select RS485 communication.
When the communication distance is far away, it’s necessary to access a 120ohm
matching resistor between the bus and short connect with jumper CON10.
The RS48/422 bus potentiometer chip uses the MAX489, and the materials about it
are record in the CD-ROM.
There is simple example of RS485 communication for reference.

33
QLS Electronics http://www.pic16.com

16. Serial Ethernet module

VCC
+3.3V
U8
1 20 C26
DIR VCC C27 C28 C29
2 19 104P
A0 OE 104P 104P 104P
3 18
A1 B0
ETH-INT 4 17
A2 B1 C30 LEDB
ETH-WOL 5 16
A3 B2 10U LED
ETH-MISO 6 15 R41
A4 B3 LEDA
7 14 1K R42
A5 B4 LED
8 13 U9 1K +3.3V
A6 B5
9 12 1 28
A7 B6 VCAP VCC
10 11 2 27
GND B7 GND LEDA
3 26 C34
CLKOUT LEDB
74HCT245 4 25 L1
INT OSC-VCC
5 24
WOL OSC2
6 23 22P

11

12
SO OSC1 Y3
ETH-MOSI 7 22
SI OSC-GND 25M
ETH-SCK 8 21
SCK PLL-GND
ETH-CS 9 20 C33 J16

A2

K2
CS PLL-VCC
ETH-RST 10 19 1 RJ45
RESET RX-VCC TD+
11 18 3
GND-RX TX-GND CT
12 17 22P 2
TPIN- TPOUT+ TD-
13 16 7
TPIN+ TPOUT- RD+
14 15 6
RG13
RG12
RG6
RG8
RG7
RA15
RA14

RBIAS TXVCC CT
R34 R40 8
RD-
10K ENC28J60 51R

A1

K1
1
2
3
4
5
6
7
8

10
9
+3.3V R35 R36
S12 C32
1k2 1k2
R39 103P
51R
16
15
14
13
12
11
10
9

CN19
1
2
3
R38
4
51
5
6
7

C31
ETH-RST
ETH-CS
ETH-SCK
ETH-MOSI
ETH-MISO
ETH-WOL
ETH-INT

R37 103P
51

The working voltage of ENC28J60 is 3.3V


The 74HCT245 is used for voltage change. When the system uses 5V of working
voltage, 3.3V output is transferred into 5V output for the ENC28J610 by 74HCT245.
When using, please make sure the switch S12 is on.
Connecting CN9 by Dupont line can test the Ethernet communication function by
other I/O interfaces (make sure the corresponding potential of switch is cut off).
Access the QLdsPIC3 into the Ethernet by cross network cable.
The relevant materials about TCP/IP agreement are attached in the CD-ROM.

34
QLS Electronics http://www.pic16.com

17. Audio codec module

Y1 OPEN
MCLK RG14_SI3000
4
GND

3 +V
Slave or Master J9 OUT NC
1
1 5 9 VCC AVCC VCC AVCC
2 6 10 R23
2

3 7 11 0
4 8 12 C37 C39
104P C38 104P
22U/6.3V
VCC VCC C36
22U/6.3V

R21 R22
12

13

51K 51K R27 J10


U10 2K2
VD

VA

MCLK 7
MCLK MBIAS
2 C42 104P MIN IN CN13
8 10 C41
SCLK MIC 1
S10 6 11 LINE_IN
FSYNC LINEI 2
RG13 1 10 4 15 C43 LINE_OUT
SDI LINEO 3
RG12 2 9 5 104P
SDO 4
RG15 3 8 VCC 1
R24 SPKRR
RG14 4 7 16 10U/16V
SPKRL LINE I/O
RF6 5 6 10K C40 C44
R25 30R J11
9 3
GND

RESET HDST
SW DIP-5 RG14_SI3000
104P 10U/16V
K9 C45 R26 30R
SI3000
SPK OUT
14

CODEC_RESET
5
4
3
2
1

10U/16V
CN12

This module mainly tests the DCI function of dspic, the audio codec method.
The audio codec uses the special chip si3000, the materials about it can be found in
the CD-ROM.
The audio input contains mic input and linear input; while audio output contains spk
output and linear output.
When the microcontroller communicates with si3000, the microcontroller can be
made as main controller, while si3000 can be made as slave, and the jumper J9 should
jump to the SLAVE end, and let the main controller offer the clock signal required by
communication; when the si3000 make as main machine, the microcontroller is made
as slave , and the jumper J9 should jump to the MASTER end, the clock signal
required by communication is offered by crystal Y1.
When using, please make sure the switch S10 is on.
Connecting CN12 by Dupont line can test the audio codec function by other I/O
interfaces (make sure the corresponding potential of switch is cut off).
The simple example about codec is record in the CD-ROM for study and reference.

35
QLS Electronics http://www.pic16.com

18.Direct port access module

RA6 RA7 RB8 RB9


1 2 1 2
RA9 RA10 RB10 RB11
3 4 3 4
RA12 RA13 RB12 RB13
5 6 5 6
RA14 RA15 RB14 RB15
7 8 7 8
VCC VCC
9 10 9 10
PORTA
PORTB(high)

CN27
CN26
RF8 RC1
1 2 RB0 RB1
RC2 RC3 1 2
3 4 RB2 RB3
RC4 RC13 3 4
5 6 RB4 RB5
RC14 NC 5 6
7 8 RB6 RB7
VCC 7 8
9 10 VCC
9 10
PORTC
PORTB(low)

CN29 CN28 CN30 CN32 CN31


RD0 RD1 RD8 RD9 RF0 RF1 RG0 RG1 +3.3V +3.3V
1 2 1 2 1 2 1 2 1 2
RD2 RD3 RD10 RD11 RF2 RF3 RG2 RG3 +5V +5V
3 4 3 4 3 4 3 4 3 4
RD4 RD5 RD12 RD13 RF4 RF5 RG6 RG7 RG12 RG13
5 6 5 6 5 6 5 6 5 6
RD6 RD7 RD14 RD15 RF6 RF7 RG8 RG9 RG14 RG15
7 8 7 8 7 8 7 8 7 8
VCC VCC VCC VCC VCC
9 10 9 10 9 10 9 10 9 10
PORTF
PORTD(low) PORTD(high) PORTG(low) PORTG(high)

The port contain:


All the I/O interfaces
+5V voltage (two in total)
+3.3V voltage (two in total)
VCC output (VCC=+5V or VCC=+3.3V)
GND output

36
QLS Electronics http://www.pic16.com

20. Arbitrary distribution of I/O interface example

Take the LED experiment of PORTB interface as the example. The extension of
other functions is similar.
1. Cut off the switch S1.
2. Connect PORTB with the corresponding LED insert pin.
3. No need to change other settings.

All the function modules of QLdsPIC3 are simply introduced here.


If you have any doubt, please contact us directly by phone or email, we will try our
best to settle it for you. If you have any good suggestion, please advise us also.

37
QLS Electronics http://www.pic16.com

Chapter 5 PIC24 and dsPIC33 series supplement


When using the main control board in PIC24 or dsPIC33 series, should pay attention
to the following problems:
i).The top working voltage of the chip in PIC24 or dsPIC33 series should be 3.3V.
Please make sure the working voltage of system is 3.3V (that is select the 3.3V end
for the jumper J3 in the power supply part) before the power is on.
ii).Because the experiment board (here means the big board at the bottom) is designed
according to the dsPIC30 series, so if using the main control board in PIC24 and
dsPIC33 series, the I/O interfaces should be switched accordingly as the table below.
For example:
the RA3 interface of dsPIC33FJ28GP708 should be connected to RA15 on the
experiment board.
The RE0 interface of PIC24FJ28GA108 should be connected to RA6 on the
experiment board.

dsPIC33FJ28GP708 experiment board PIC24FJ96GA008


RA3 RA15 u
RA2 RA14 u
u RA6 RE0
u RA7 RE1
u RG12 RE2
u RG13 RE3
u RG14 RE4
u RG15 RE5
u RC2 RE6
u RC4 RE7
u RA12 RE8
u RA13 RE9
Note: u shows that it’s not necessary to switch the I/O interfaces. Same as the unlisted
I/O interfaces.

38
QLS Electronics http://www.pic16.com

Chapter 6 QLS’s Other Main Product

Integrated Development Experimental System QL200 (the 8-bit PIC


microcontroller development board with programmer function).

QL200 is the PIC microcontroller integrated


development system combing with experimental
instrument, programmer, stimulation interface and
ICSP download interface, with self-control CPU,
which can support over 90% of experiment and
development of PIC microcontroller matching with
the programming software with independently
intellectual property.
Performance characteristics:
Abundant onboard resources: LED, seven-segment display, key-press, keyboard
matrix, characterLCD, Graphic LCD, A/D converter, D/A converter, SPI & IIC
communication, USART series communication, DS18B20 digital temperature
thermometer, DS1302 real time clock, remote control , buzzer, MMC/SD card, and
stepper motor module, etc.
Support programming and the PIC chip developed by experiment: support most of
PIC chips with 8 to 40 pins DIP package, support PIC10 series and PIC16F57, in the
meantime, it can select all kinds of vibrating ways and change into other frequency
crystals.
Open module design: all the modules can control on or off by switch. It’s convenient
for all modules to connect with the arbitrary line of microcontroller by Dupont line,
and it can connect with the prepared line by switch without Dupont line (which is

39
QLS Electronics http://www.pic16.com

convenient for the beginners to use directly). All the IO interfaces are fully open with
output socket, which can implement extension easily.
Powerful onboard programming system: can program over 90% of PIC chips, and can
implement ICSP program for all the chips of the external target board.
Simple and easy-using programmer software: two operation interfaces in Chinese and
English; can keep upgrading; two programming reminding by sound or letter;
automatically test the hardware connection; can get the configuration bit information
of HEX file; can protect and amend the clock valid value of chip.

For more details, please refer to the relevant introduction to website:


http://www.pic16.com/en/wzcapi/ql200.htm

40
QLS Electronics http://www.pic16.com

MCD-DEMO2 development board

The MCD-DEMO2 development board is a primary development experimental board


which is developed for PIC16F87X series of other 28/40 pin PIC 8-bit chip. It can be
used matching with the PIC16-MCD2 produced by our company or ICD2 online
debugger produced by Microchip Co, which will bring you effect that get twice the
result with half the effort, cost you the least money, and learn PIC chip most quickly.
Performance characteristics of DEMO2:
Abundant onboard resources: LED, seven-segment, key-press, keyboard matrix,
character LCD, Graphic LCD, A/D converter , SPI & IIC communication, USART
series communication, DS18B20 digital temperature thermometer, remote control,
buzzer, and stepper motor module, etc.
Support most of PIC chips with 28 and 40 pins DIP package, in the meantime, it can
select all kinds of vibrating ways and change for other frequency crystals.
Open module design: all the modules can control on or off by switch or bouncing line.
It’s convenient for all modules to connect with the arbitrary line of chip by Dupont
line, and it can connect with the prepared line by switch without Dupont line (which is
convenient for the beginners to use directly). All the IO interfaces are fully open with
output socket, which can implement enlarging easily.
The distribution of board is compact, it costs very limited space.
Use the automatic surface mounting production arts and crafts. The board is orderly
and nice-looking.
The user group is large, there’re lots of mature examples for reference.
For more details, please refer to the relevant introduction to website:
http://www.pic16.com/en/wzcapi/mcd_demo2.htm

41
QLS Electronics http://www.pic16.com

QL-2006 PIC chip special programmer

The QL-2006 programmer is a kind of PIC professional programmer with high


dependability, high speed and high performance. The software adapts the new PIC
programming algorithm, which guarantees the high speed and high stability of
programming. In the meantime, it can support the new promoted components of PIC,
it’s easy to upgrade and is dependable to use. The QL-2006 supports the function like
the programming, reading and encrypting of several hundred of PIC chips, and there
are two kinds of communication ways including series and USB, and can use the USB
to supply the power directly without external power supply, is really a machine
connecting by one line and convenient to take it along with you. In addition, the fast
programming speed and automatically program function is another reason that we
select it. The QL2006 can automatically protect the internal clock valid value of chip
to prevent erasure when erasing (this function is not contained by most of universal
programming console). And it adapts the way of programming, and verifying at the
same time, which provides more security to improve the stability of programming the
OTP chip.
There are two kinds of communication ways including USB and series
communication. The USB and series are switched automatically by electronic switch,
and manual jumper is not necessary.
Support all the components, including PIC10ⅹⅹⅹ/12ⅹⅹⅹ/18ⅹⅹⅹ, and series
EEPROM like 24ⅹⅹⅹ and 93ⅹⅹⅹ, etc.
The component algorithm is implemented by software completely. The hardware
contains the upgrading function which can protect the investment benefit of users

42
QLS Electronics http://www.pic16.com

effectively.
Program at high speed, it only cost 3 seconds to program PIC16F72 including erasing,
blank checking, programming and verifying.
It can support ICSP (online board program) by inner ICSP interface without any
accessional setting. The user can make program finally after the circuit board is
welding well. For the FLASH chip, the user even can update its function online.
Support completely automatically programming. The user only needs to place and
take off the chip, and it’s not necessary to make any operation in the computer.

For more details, please refer to the relevant introduction to website:


http://www.pic16.com/en/wzcapi/ql2006.htm

43

You might also like