Build A PIC Microcontroller
Objectives
Build and test your own PIC16F887 Microcomputer Use Jameco Prototype board or equivalent Use PIC16F887 40 PIN DIP ( see attached) See instruction for parts ( DIP, CAPS, PICKIT2 header, LED, Resistors) Pre-cut wire is supplied Follow assembly instructions After Blink test demo to instructor
Assembly Steps
1. 2. Simple PIC 16F887 40 PIN dip ( notch on left)
1. Insert as shown
1. 2. 3. 4. 5. 6. +5V PINS 11, 32 GND PINS 12,31 Add .1UF cap between 11,12 Add .1 UF cap between 32,31 Jumper to +5V buss top to bottom Jumper to GND Bus top to bottom
Power and Ground
3.
In Circuit Programmer Debug Interface for use with PICKIT2
1. 2. 3. ( see attached schematic) Note orientation of PICKIT2 and pin1 Use supplied 6 pin header 2.2K with Red Led) hooked to PORTD RD0 Other side of resistor goes to anode of LED (shorter lead) Longer lead of LED goes to ground
4.
Single resistor /LED
1. 2. 3. 4.
5. 6.
Show assembly to instructor Navigate to:C:\EET250\16F887\Lesson 4 Blink with Demo Board\blink
1. 2. 3. 4. 5. 6. Hook PICKIT2 to prototype header and USB to PC Open blink.mcp Select PICKIT2 as debug Make sure in output window that PICKIT2 is shown as ready build, program dowload and Program part Run and validate blinking to instructor
Close-up
PIC Power and Ground Hook up .1UF and 4.7UF Bypass CAPS
Power Bus (RED) Ground Bus (BLUE)
Power Bus Extension Red to red Blue to blue
ISDP Interface
Resistor and LED 2.2K with High efficiency Red LED
PIC Power and Ground Hook up .1UF Bypass CAP
Power and Ground Bus
40 PIN DIP Reference
In Circuit Programmer/Debug
HEADER 1 2 3 PICKIT2 4 5 6 MCLR --- PIN 1 VDD (+5V)-- PIN 11, PIN 32 VSS (GND)--- PIN 12, PIN 31 RB7--- PIN 40 RB6--- PIN 39 Not Used Make sure to connect a 4.7K resistor to ground to each: pin 40 and pin 39
Details