You are on page 1of 8

NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board l 1

NX-877 plus II
PIC16F8xx/18F Microcontroller Experiment Board
Copyright 2004-2007 by Innovative Experiment Co.,Ltd.

Feature
l Support PIC16F8xx/18F (PIC16F877A on-board). It comes with 8KWords Pro-
gram memory, 20MHz clock and provides 33 I/O port
l Support HS oscillator modes
l Select mode RUN/PROGRAM with one switch
l Connect to PX-200 for downloading program with USB port via ICD2 jack
l RS-232 serial port interface circuit
l 3-digit multiplexed LED display
l 32-Bit LED monitor
l LCD connector
l 1Hz- 1kHz pulse generator

l 4 of 0-5V Voltage source for A/D experiment


l DS18B20 : 1-Wire Temperature sensor on-board.
l Matrix switch 4x3

Packing List
l Experiment board

l Documentation

l PX-200 USB Flash PIC microcontroller In-System Programmer with USB cable
and software in CD-ROM

l 12Vdc Adaptor

l 16x2 LCD module with cable

l RS-232 serial port cable

l Wire jumper box set


2 l NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board

1. NX-877 plus II Schematic Description


1.1 Microcontroller section
The heart of this section is PIC16F877A microcontroller. It is programmed with via
In-System Programming (ISP) via ICD2 jack by PX-200 programmer board (included in this
package) and can select operation mode (Run/Program) by a MODE switch

SW1 +V
POWER D1-D4
1N4001x4
IC1
7805 +5V
J1
C3 C4
DC input C2
47/16V 0.1/50
0.1/50V
DC input : 16-20Vdc
C1
220/25V
K1
ICD2 PORT B
(RJ11-6) RB7
RB7
RB7 RB6
RB6
RB6 40 38
RB7 RB5 RB5
37
RB4 RB4
36
RB3 RB3/LVP
39 35
RB6 RB2 RB2
Vpp 34
RB1 RB1
33
RB0/INT RB0/INT
+5V
R1
1k
+5V
LED2
PROG.
IC2
PIC16F877 11

R2 LED1 32
1k RUN
C5
+5V 0.1/50V
12

R3 31
4.7k R4 SW3
1k MODE
1
MCLR
13
SW2 OSC1 PORT C
RESET
26
14 RC7 RC7/RxD/DT*
OSC2 25
RC6 RC6/TxD/CK*
24
RC5 RC5/SDO
XTAL1 23
20MHz RC4 RC4/SDI/SDA
C6 C7 18
PORT A 22pF 22pF RC3 RC3/SCK/SCL
17
RC2 RC2/CCP1
RA5 7 16
RA5/AN4/SS RA5 RC1/T1OSI/CCP2
RA4 6 RC1
RA4/T0CKI RA4 15
RC0 RC0/T1OSO/T1CKI
RA3 5
RA3/AN3/Vref+ RA3
RA2 4
RA2/AN2/Vref- RA2
RA1 3 PORT D
RA1/AN1 RA1
RA0 2 30
RA0/AN0 RA0 RD7 RD7/PSP7
29
RD6 RD6/PSP6
28
RD5 RD5/PSP5
PORT E 27
RD4 RD4/PSP4
RE2 10 22
RE2/AN7/CS RE2 RD3 RD3/PSP3
RE1 9 21
RE1/AN6/WR RE1 RD2 RD2/PSP2
RE0 8 20
RE0/AN5/RD RE0 RD1 RD1/PSP1
19
RD0 RD0/PSP0
NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board l 3

Experiment board provide 5 port groups, Port A (RA0-RA5), Port B (RB0-RB7), Port C
(RC0-RC7), Port D (RD0-RD7 and Port E (RE0-RE2). However in 28-pin microcontroller can-
not use Port D and E connector
Oscillator mode for microcontroller is HS mode, fixed frequency at 20MHz
On the experiment board provide +5V for supply the experiment circuit and all
circuit on the experiment board.

1.2 LED monitor


On experiment bord provides 32-bit of active high LED monitors . Each channel
connectd current-limit resistor for protect LED current through.

LED125-LED132 LED117-LED124 LED109-LED116 LED101-LED108


RED x8 RED x8 RED x8 RED x8

D15 D7 D15 D7
D14 D6 D14 D6
D13 D5 D13 D5
D12 D4 D12 D4
D11 D3 D11 D3
D10 D2 D10 D2
D9 D1 D9 D1
D8 D0 D8 D0
R109-R116 R101-R108 R109-R116 R101-R108
510 x8 510 x8 510 x8 510 x8

LED Monitor active high 16 bit (UPPER) LED Monitor active high 16 bit (LOWER)

1.3 7-segment LED display


This board provides 3-digit of 7-segment common cathode LEDs. All LED connect
in multiplex and connect current-limit resistor in each segment.

DSP201-DSP203 : LED 7 SEGMENTS COMMON CATHODE


P201 DSP203 DSP202 DSP201
SEGMENT
a a
b b
c c
d d
e e
f f
g g
dp dp

P202 R201-R208 common common common


DIGIT 220x8

3
2
1
4 l NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board

1.4 0 to +5V Reference Voltage VR404


10k
VR403
10k
VR402
10k
VR401
10k +5V
Source
For support analog experiment, NX-877
plus experiment board provides 4 channels of 0
to 5V analog voltage source to supply analog
voltage for ADC circuit.
V4 V3 V2 V1

1.5 Switch input


+5V
Switch is the type of input device for R301
10k*8
microcontroller experiment. Four normally-open S304
D3 D3
pushbuttons are made available via connec-
S303
tors. The buttons are wired in an active-low D2 D2
configuration, with an pull-up resistor. S302
D1 D1
S301
D0 D0

1.6 4x3 Matrix Switch or Keypad


This circuit consist of 12 push-button switch connect in matrix configuration. It is
defined 4 rows and 3 columns. The pull-up resistors are connected at column lines. The
switch position are defined in telephone keypad format, number 0 to 9, * and #.

+5V
P402
R402 ROW
10k *4
+5V
1 2 3 ROW1

4 5 6 ROW2

7 8 9 ROW3

* 0 # ROW4
S405-S420
Keypad 4x3
COL3

COL2

COL1

P403
COLUMN
NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board l 5

1.7 Pulse Generator


The NX-877 plus II experiment board’s pulse generator provides a selectable square-
wave output of 1 Hz, 10 Hz, 100 Hz, and 1 kHz. Frequency selection is by the push-button
near the pulse generator output (an LED indicates current frequency). Be sure that the
output of the pulse generator is connected to an input pin only, as this output is driven
both high and low.

C501 FREQUENCY (Hz)


0.1/50V 1 10 100 1k
R501 LED501-504 R502
10k RED x4 510
1

4 2
7
IC501 6
PGX4100 5
S501
3
FREQ. P501
OUT
8

VR701
10k K701
UIC-LCD
1.8 LCD module connector RS
RW RS
+5V
E RW E
D0 D0 D1
At this connector can connect with 16-char- D1 D2 D3
acters 2-lines LCD module that bundle in experiment D2 D4 D5
D3 D6 D7
board set. It prepare variable resisitor for LCD’s con- D4
D5
trast adjustment. D6
D7

SP601
1.9Piezo speaker Piezo
Speaker

Sounding device on this experiment board is


Piezo speaker. It may connect with 1 to 470mF elec-
trolytic capacitor for amplify sound lev el. The
piezospeaker has resonance frequency at 2 to 3 kHz.
If the resonance frequecncy apply to the piezo
speaker, it lounds maimum.
-
+

P602
PIEZO
6 l NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board

1.10 DS18B20 1-Wire Temperarture sensor


For supporting the 1-Wire interface experiment, NX-877 plus II board provides a
popular 1-Wire device; DS18B20 the temperature sensor include the pull-up resistor ready
to interface witn the microcontroller.

R901 +5V
2.2k

3
VCC
2 DQ
GND
P901 IC901 1
DQ DS18B20

1.11 RS-232 circuit


RS-232 serial port interface to microcontroller, This experiment board provides the
TxD and RxD pin to MAX232 circuit for interface serial port. Experimenter can interface RS-
232 serial port very easy.

+5V
C901
10/50V
C902
10/50V
16 2
C903
K901 10/50V 1 IC902 4
SERIAL PORT C904
MAX232 10/50V
3 5
1
6 7 10
2 TxD
7
3 8 9
8 RxD
4
5 6 15 GND
C905
10/50V P902
SERIAL
DATA
NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board l 7

1.12 Preparing the Solderless Breadboard


Most experiments will involve components placed in the solderless breadboard.
The breadboard on this experiment board size is 2.5x7 Inches and provides 800 point-
contacts. Detail of breadboard shows in the figure below (the figure is example, size,
number of row, point contacts may be change).

1 5 10 15 20 25 1 5 10 15 20 25
A A
B B
C C
D D
E E

F F
G G
H H
I I
J J
1 5 10 15 20 25 1 5 10 15 20 25

2. Using experiment board


2.1 Preparation
Before using, user must prepare some tool and software following :

2.1.1 Personal computer which install Window 95/98/ME/2000/XP, text editor pro-
gram, MPLAB, MPASM and MicroPro software

MPLAB and MPASM are licenced by Microchip Technology , for more infor-
mation please contact at http://www.microchip.com (included in CD-ROM when order
NX-877 plus II)

PICkit2TM Programming Software are licenced by Microchip Technology ,


for more information please contact at http://www.microchip.com (included in CD-ROM
when order NX-877 plus II)

Computer must available at least one USB port for connecting with PX-200
Programmer.

2.1.2 Write program, set beginning address at 0x0000 and save file in .ASM

2.1.3 Assembler .ASM file by MPASM with selected INHX8M type. So it will be HEX file

2.1.4 Prepare DC adpator 9 to 16V 500mA.


8 l NX-877 plus II : PIC16F8xx/18F microcontroller Experiment Board

2.2 Procedure
2.2.1 Constuct the circuit on breadboard of the NX-877 plus II board.

2.2.2 Connect PX-200 with USB port.

2.2.3 Open the PICkit2TM Programming Softwaresoftware.

2.2.4 Connect NX-877 plus boar with PX-127 by ISP-6 cable at ISP jack.

2.2.5 Supply voltage to the NX-877 plus II board.

2.2.6 Press MODE switch for changing to PROGRAM mode, red LED is on.

2.2.7 Select the Device family command of the PICkit2TM Programming Software to
Mid-range device. PX-200 will detect the target device autommatically. The PIC16F877
or PIC16F877A microcontroller will be detected and ready to program.

2.2.8 Open the HEX file.

2.2.9 Erase and blank check data in the microcontroller.

2.2.10 Program all code into the microcontroller

2.2.11 Verify programming

2.2.12 After programming completed, press MODE switch to RUN mode.


Microcontroller will run your program.

Connect to
USB port
Connect with ICD2 cable

Apply the supply voltage


from DC adaptor here

Select MODE swtich to


Program (PGM) mode

Construct the experiment circuit here

INNOVATIVE EXPERIMENT

You might also like