Professional Documents
Culture Documents
QLdsPIC3 User's Manual
QLdsPIC3 User's Manual
com
http://www.pic16.com/en
1
QLS Electronics http://www.pic16.com
Introduction
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
3
QLS Electronics http://www.pic16.com
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
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
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
D6
IN5819
6
QLS Electronics http://www.pic16.com
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
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
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
VA
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
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.
Picture 2.1 save the source program named as myfile.c to the route C:\QLdsPIC.
11
QLS Electronics http://www.pic16.com
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.4 Add the source file and link file to the project
13
QLS Electronics http://www.pic16.com
First file
Second file
Compiling result
14
QLS Electronics http://www.pic16.com
15
QLS Electronics http://www.pic16.com
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.
Note: QLdsPIC3 must use external power supply. MCD2 can’t offer the power
supply.
16
QLS Electronics http://www.pic16.com
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
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
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
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
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
C11 VCC
104P
R10
3
10K VDD
2
DQ
1
J5 GND
RF6 1 2DS18B20
U3
DS18B20
24
QLS Electronics http://www.pic16.com
VCC
VCC
D5
CN18 IN5819
3
2
1
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
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
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
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
28
QLS Electronics http://www.pic16.com
+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
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
+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
C1+ C2+
3 5 8
C18 C1- C2- C19 4
105P 105P 9
U5
5
15
MAX232
DB9
31
QLS Electronics http://www.pic16.com
+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+
C1+ C2+
3 5
C12 C1- C2- C13 DB9
105P 105P
U4
15
MAX232
32
QLS Electronics http://www.pic16.com
+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
U7
1K R20
MAX489E 1K
3
6
7
1
2
3
4
5
6
485_RE
R18 CN11
+5V
+5V RS485/RS422
10K
33
QLS Electronics http://www.pic16.com
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
34
QLS Electronics http://www.pic16.com
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
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
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)
36
QLS Electronics http://www.pic16.com
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.
37
QLS Electronics http://www.pic16.com
38
QLS Electronics http://www.pic16.com
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.
40
QLS Electronics http://www.pic16.com
41
QLS Electronics http://www.pic16.com
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.
43