Version 1.0
EasyMCU Series
EasyMCU Series
EasyMCU Series
EasyMCU Series
8.24Cx EEPROM
9.DS18B20 control unit
10.DS1302 control unit
11.RS232 Communication
12. 6 bits 7-seg display
13.Buzzer control unit
14. ICSP programming/debugging port
15.Power interface
16.Step motor interface driven by ULN2003A
1.4 Schematic
C8
104
C9
VCC
J1
KEY4
KEY7
KEY8
KEY9
KEY10
KEY11
KEY12
KEY13
KEY14
KEY15
KEY16
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
MCLR
1 2
3 4
5 6
7 8
9 10
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
R9
10K
IN1
IN2
IN3
IN4
IN5
IN6
IN7
GND
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
VCC
ULN2003A
104
VCC
VCC
OSC1
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
C1
22p
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
VDD
VSS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
VCC
VCC
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
22p
OSC2
LED_EN
SEG_EN
1
3
1
3
VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
R10
10K
ULN2003A
2
1
2
3
4
5
RB6
RB7
VCC
g
dp
a
f
d
e
c
b
10
9
1
4
3
6
5
2
ds1
a
b
c
d
e
f
g
dp
DS0
ds2
ds1
ds2
8
R1
1K
R2
1K
DS0
DS1
R3
1K
R4
1K
R5
1K
R6
1K
VCC
C
LED8
R7
1K
R8
1K
VCC
1
2
3
ADC_INPUT
VCC
8
4
A0
A1
A2
VCC
GND
WP
SCL
SDA
R15 R14
1K 1K
24CX_SCL
24CX_SDA
6
5
24C04
Eeprom
ADC_INPUT
MCLR
1
2
Y2
32.768K 3
4
CON6
VCC2
VCC1
X1
SLCK
X2
I/O
GND
RST
RC1
1
RC4
3
RC3
5
RC2
7
RC5
9
RC3
11
ADC1 13
VCC
1302_RST
1302_IO
1302_SCLK
2
18B20_DQ
4
24CX_SDA
6
24CX_SCL
1302_RST
8
1302_IO
10
12 1302_SCLK
14 ADC_INPUT
1 2
3 4
5 6
7 8
9 10
11 12
13 14
DS18B20
VCC
DQ
GND
VCC
18B20_DQ
2
1
VCC
R11 4.7K
DS18B20
VCC
OUT2
OUT3
OUT4
OUT5
Title
Stepmotor
3
LED7
ADC1
Size
LED6
JP2
stepmotor
VCC
RESET
LED4 LED5
LED
RE1
DS1302
6
5
4
3
2
1
Bell
VCC
A
B
C
D
LED3
2
4
2
4
J2
16F877A
ICSP
VCC
VCC
LED2
JP3
CON20
OSC1
LED1
RD7
104
C3
Y1
4MHz
Q1
9015
RC6
C6
RS232
MCLRVPP/THV
RA0/AN0
RA1/AN1
RA2/AN2/VREFRA3/AN3/VREF+
RA4/T0CKI
RA5/AN4/SS
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
VDD
VSS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
C2
16 OUT1
15 OUT2
14 OUT3
13 OUT4
12 OUT5
11
10
Q2
9015
RD6
5
4
3
1
16F877A
CON20
2003
2
4
6
8
10
R12 SEG_EN
10K
Q3
9015
RC7
10
11
OUT1
JP1
1
3
5
7
9
Q4
9015
RD4
C2C2+
C1C1+
15
9
12
BELL
RE0
RC0
RC1
RC2
RC3
ds1
Q3
9015
DS2
T2in
T1in
KEY
RESET
10
9
1
4
3
6
5
2
10
9
1
4
3
6
5
2
a
b
c
d
e
f
g
dp
ds2
8
Q4
9015
DS3
GND
R2out
R1out
T2out
T1out
VV+
RB3
KEY3
RA0
RD5
6
2
VCC
R2in
R1in
MAX232
C5
104
KEY6
R13 SEG_EN
10K
DS5
MAX232
7
14
S4
KEY2
RA1
R14 SEG_EN
10K
RD3
RB2
RA2
R15 SEG_EN
10K
RD2
RA3
R16 SEG_EN
10K
RD0
RB1
DS1
C4
104
16
8
13
5
9
4
8
3
7
2
6
1
S2
RA4
R17 SEG_EN
10K
8. 8.
POWER
1K
UART
KEY5
POWERSWITCH
104
RA5
7-seg display
LED_EN
R20
VCC
RB0
KEY1
3
2
1
DS2
VCC
DS4
RA4
S1
8. 8.
+5V
GND
C7
1000u
POWERLED
VCC
S3
Vin
DS3
DS1
8. 8.
DS2
D1
a
b
c
d
e
f
g
dp
DS3
VCC
0
3
2
1
0
7805
TL780-05C
GND
R22
R23
R24
R25
R26
R27
R28
R29
DS5
POWER
VCC
GND
1
2
3
4
USB-POWER
RA0
RA1
RA2
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RA3
5
1
2
3
4
6
5
VCC
DATADATA+
GND
6
ADC_INPUTA
VCC
VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
VCC
LCD12864
RA0
RA1
RA2
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
1
2
3
4
LCD12864
VCC
VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
LCD1602 CONTRAST
LCD1602
LCD12864 CONTRAST
LCD1602
7
g
dp
a
f
d
e
c
b
6
VCC
a
b
c
d
e
f
g
dp
DS4
RD1
g
dp
a
f
d
e
c
b
DS1302
ICSP
4
Number
Revision
A3
Date:
File:
6
6-Dec-2010
Sheet of
C:\Documents and Settings\Administrator\\2010.11.10
Drawn By: \2010.11.10\2
7
EasyMCU Series
Install.exe) program, and follow a step-by-step installation guide (You may also do not need
changes any of the settings, just click "Next") until finishing the installation.
2.2 MPLAB Simple Application
2.2.1 Create a Simple Project
Edit source codes
Click the MPLAB icon at your WINDOWS desktop, or choose StartAll application
MicrochipMPLAB IDE V.xxMPLAB (Vx.x for MPLAB version) to start running MPLAB
integrated environment. Shown as Figure 2-1.
EasyMCU Series
EasyMCU Series
Step 3, click "Next", select the appropriate compiler tools according to the source language and
chip to be used, as shown in Figure 2-6.
EasyMCU Series
EasyMCU Series
EasyMCU Series
correct result as wanted, whether theres any defects in your design, whether the algorithm design
is reasonable, and whether it can accurately control the various hardware resources, and whether it
can obtain desired results.
Choose debugging tools
Select menu command Debugger Select Tool, to select the simulator connected to the PC as the
debugging tool, or you may select the software debugger which comes with the MPLAB software
as the debugger for the target program. After choice, it will open the corresponding toolbar.
Observe debugging results
The internal storage area of PIC microcontroller can be divided into several sections: program
memory, hardware stack, file registers, special function registers and EEPROM data memory. In
the course of the operation of program, it will repeatedly read, write or modify the contents in the
storage area. Therefore, we can observe the changes of content in storage area corresponding to
the operation of program so as to understand the operation of program, and achieve the purpose of
debugging. To open storage area we can choose the View menu commands, as shown in Figure
2-12.
Apart from the use of these storage area to observe the debugging process, we can also add the
concerned specific modules to the observation window to monitor the results. Implementation the
menu command ViewWatch and the observation window will open, as shown in Figure 2-13.
EasyMCU Series
Thus, we have introduced a simple use of MPLAB, and through the learning in this chapter, we
should be able to complete the source code edit, compile and debug.
Note: For more information on the MPLAB please visit the website of MICROCHIP and download
"MPLAB User Manual".
POWER
2
GND
D1
1
1
VCC
Vin
+5V
C8
104
0
3
2
1
0
3
VCC
C9
3
2
1
POWERSWITCH
104
POWERLED
C7
1000u
7805
TL780-05C
GND
5
VCC
DATADATA+
GND
6
USB-POWER
VCC
1
2
3
4
1
2
3
4
GND
5
1
2
3
4
6
VCC
R20
1K
J2
16F877A/877
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
VCC
OSC1
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
MCLRVPP/THV
RA0/AN0
RA1/AN1
RA2/AN2/VREFRA3/AN3/VREF+
RA4/T0CKI
RA5/AN4/SS
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
VDD
VSS
OSC1/CLKIN
OSC2/CLKOUT
RC0/T1OSO/T1CKI
RC1/T1OSI/CCP2
RC2/CCP1
RC3/SCK/SCL
RD0/PSP0
RD1/PSP1
MCLR
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
CON20
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
VDD
VSS
RD7/PSP7
RD6/PSP6
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5/SDO
RC4/SDI/SDA
RD3/PSP3
RD2/PSP2
C1
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
RB7
RB6
RB5
RB4
RB3
RB2
RB1
RB0
VCC
VCC
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
OSC1
22p
Y1
4MHz
R9
RESET
10K
VCC
C2
22p
OSC2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CON20
EasyMCU Series
RD7
R29
RD6
R28
dp
RD5
R27
seg3
a
b
c
d
e
f
g
dp
RD4
R26
RD3
R25
e
RD2
R24
d
RD1
R23
c
a
b
c
d
e
f
g
dp
a
b
c
d
e
f
g
dp
R22
RD0
seg1
seg2
RA5
RA3
RA4
R17
10K
RA2
R16
10K
RA1
R15
10K
RA0
R14
10K
R13
10K
R12
10K
Q4
Q3
Q4
Q3
Q2
Q1
9015
9015
9015
9015
9015
9015
VCC
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
3
4
GND
RE1
R10 10K
1
3
5
7
9
11
13
JP2
2
4
6
8
10
12
14
1 2
3 4
5 6
7 8
9 10
11 12
13 14
VCC
ADC_INPUTA
VCC
MAX232
UART
5
9
4
8
3
7
2
6
1
16
8
13
7
14
6
2
VCC
R2in
R1in
GND
R2out
R1out
T2out
T1out
T2in
T1in
VV+
MAX232
C5
104
C2C2+
C1C1+
15
9
12
RC7
10
11
5
4
3
1
RC6
C6
104
C3
104
Y2
32.768K
EasyMCU Series
VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VCC
RA0
RA1
RA2
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
VCC
LCD1602
VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VCC
RA4
LCD12864 CONTRAST
RA0
RA1
RA2
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RA3
VCC
LCD12864
ICSP
6
5
4
3
2
1
RB6
RB7
VCC
MCLR
EasyMCU Series
EasyMCU Series
EasyMCU Series
EasyMCU Series
6.1 The board does not power up,what is wrong with the board?.
Make sure that the POWER LED has turned on. If the LED is not on, check to see that the +6-12V
power supply or the USB power is properly connected.It is necessary to note that the +6-12V power
supply and the USB power can not be connected simultaneously.
6.2 I have loaded the PIC16F877A sample code, but It doesnt seem to be working, what is
wrong?
Verify that the correct jumper settings are used for JP1,JP2 or JP3.
6.3 What devices can be programmed with this board?
The experimenters board is designed to develop applications using the PIC16F877A. The device
can be replaced by PIC16F877 device derivatives, respectively.
6.4 How is power supplied to the experimenters board?
Two supply options exist: USB power Cables and external 612VDC power supplies are
supported.
6.5 What type programmer/debugger can be used on this board?
The PIC16F877A supports the programmer/debugger ICD2/KIT2/KIT3 produced by MP.
Certainly, the common PIC programmer/debugger in the market (such as K150,K128 and JDM
etc.)can also be used on this board.
EasyMCU Series
Appendix B. Contact Us
e-mail:wxl07297662156@163.com
QQ: 634503119