You have no items in your shopping cart.

Subtotal: 0.00

User Manual for PIC 16F/18F Development Kit

INTRODUCTION

The PIC is a Development Board which demonstrates the capabilities of the 40-pin PIC16and PIC18 devices.

The PIC development Board can be used stand-alone board built with an in-circuit USB programmer. Sample programs are provided to demonstrate the unique features of the supported devices.

The PIC Development Board kit comes with the following:



PIC Development Board

The PIC Development Board has the following hardware features:

  • 40-pin ZIF socket.
  • +12V and +5V regulators for direct input from 15V, 500 mA AC/DC wall adapter
  • RS-232 socket and associated hardware for RS-232 interface.
  • ICSP USB 2.0 Programmer with busy LED indication
  • Two 5 KΩ pot and one LM35 for devices with analog inputs.
  • Four push button switches for external interrupts and Reset.
  • Red power-on indicator LED.
  • Eight red LEDs connected to 10 Pin FRC.
  • A 10 MHz crystal oscillator.
  • Microchip 25C040 Serial SPI EEPROM.
  • Atmel AT24c04 Serial I2C EEPROM
  • Dallas DS1307 Serial I2C Real-time Clock
  • LCD display with backlight Selection Jumper.
  • Piezo buzzer and OEM Relay.
  • Dallas DS1820 thermal sensor.
  • Four 7Segment multiplexed display
  • ULN2803 driver for unipolar Stepper motors
  • 4x4 matrix keypad
  • 8 way DIP switch for digital input
  • 8 way Configuration DIP switch for multiple operation

PIC Development Board HARDWARE





SAMPLE DEVICES

One FLASH device is included. The device types may change, but will generally include PIC16 and PIC18 40-pin DIP devices.

SAMPLE PROGRAMS

The PIC Development kit includes a CD-ROM with sample programs. These programs may be used with the included sample devices. For each type of device (PIC16 or IC18), demo source code with compiled Hex file is provided.

PIC Development BOARD LAYOUT





Hardware Details

SOCKETS

40 Pin ZIF socket is provided for the processor. Microcontroller can be removed from the board easily. This socket is intended to use our development board as programmer to program other IC’s.

10 pin FRC box type connectors: This will be found in each section of PIC 16F/18F development board. A 10 pin FRC cable is used to make connection with the main board section. Any 8 bit port of microcontroller can be used for interconnection. Ports having less than 8 bits are used as control signals for various sections.





Pins 1-8 are Data Pins. Pin 9 is VDD and the Pin 10 is GND. All 10 Pin FRC connectors will follow the same rule.

JUMPER SETTINGS

JUMPER

DESCRIPTION

J6

Relay supply select :

Connecting INT and +5v will select internal supply. Connecting EXT and +5v will select external supply if connected GND is a common GND for external

J7

LCD backlight selection:; Put jumper if backlight needed

J8

Interrupt Edge selection: Middle and FE >>Falling Edge

Middle and RE >> Rising Edge

J9, J10, J11

Interrupt Port Pin Selection: Middle and RB >>Interrupt on PORTB Middle and RC >>Interrupt on PORTC

J13

Digital Input logic selection: +5v-Logic High, GND-Logic low Input



CONFIG SWITCH

SW1: 8 way Multifunctional switch

DIP SWITCH PIN

DESCRIPTION

ADC

Supply select for Analog channels

DS1820

Connects DS1820 temperature sensor to RC0

CS, SCL, MISO, MOSI

SPI and I2C Selection pins: Turn ON SCL and MISO for I2C operation Turn all the pins for SPI operation

TXD, RXD

RS232 communication transmit, receive pins



POWER SUPPLY

The external power can be AC or DC, with a voltage (15V, 1A output). The PIC board produces +5V using an LM7805 voltage regulator, which provides supply to the peripherals. Power supply is controlled through slide switch SW2.

POWER SWITCH

Supply Turned OFF

Supply Turned ON



Installation Notes

Installing MPLAB IDE and Hi-tech C Compiler

Open up the user CD comes with PIC Microcontroller Board, Navigate to MPLAB IDE Folder

Double Click Setup.exe and Click >> Next





3. Click >> I accept the terms of the license agreement and Click >> Next





4. Select >> Complete check box and Click >> Next





5. Click >> Next





6. Click >> I accept the terms of the license agreement for both Application Maestro as well as MPLAB c32 windows and Click >> Next, Next







7. Click >> Next to Start Copying Files





8. Now the MPLAB IDE setup will Progress





9. After finishing installation MPLAB IDE, it will prompt for HI-TECH C Installation. Click >> Yes





10. Click >> Next





11. Click >> License agreement Check box and Click >> Next





12. Click >> Next





13. Check >> Add to environment path and Click >> Next





14. Click >> Finish





15. Click >> Finish to InstallShield Wizard Complete





16. Just Close the MPLAB IDE Document Support





Creating a Project on MPLAB IDE



1. Double Click the MPLAB IDE v8.xx from desktop





2. To create a new project, Click >> Project and Project Wizard.





3. At the first page of Project Wizard, Click >> Next.





4. Step ONE: Next, you will need to select the device for your project. For this demonstration I will use PIC16F877A as the device.





5. After selecting the device, click >> Next





6. Step TWO: Select the Compiler for your Project.





7. Click the Active Toolsuite and select HI-TECH Universal ToolSuite.





8. There should not be any red “X” mark (For those with the red “X”, please reinstall the HI-TECH C for PIC 10/12/16). Click Next to continue.





Example: See the “Red X” mark that appears before CCS C compilers





9. Step Three: Select the directory to store your project and your project name.

  • Click on Browse to open a browser where you choose the directory and the project name.
  • It is advised that you use a new folder for a new project, and all the coding file (c file, h file, asm file) should be stored under the same folder.





10. Now enter the Project Name and Click >> Save





11. Click >> Next to the following window





12. Step four, Add existing file to your project. Just Skip this by clicking Next.





13. You have successfully created the project. Click Finish to continue.





14. The project that you create will be open after you successfully create it, and this is what you will see at the IDE, a Project window and an Output window.



If you don’t have these windows on your IDE, you can always enable it back by clicking View >> Click the Project and Output.





15. Click on the icon (New File) to create a new file.





16. After creating the new file, now save it. Click File and Save As.





17. To save it as a c file, put a “.c” at the File name of the file to save. Save the file in the same directory of your project.





18. Now include the “.c” file into your project, right click at the Source File, and click Add Files.





19. Select the file that is being saved.





20. Now the code file “main.c” is added to your project. You can see that it is shown under the Source Files at the Project window.





21. To compile the project, click on the Build Project button or the Rebuild project button.





22. Now you successfully created all the things. Now write your code and Compile it.

Configuring Programmer for PIC Development Board

  • First attach the PIC Microcontroller Development Board with PC via USB cable.
  • Connect the 15V AC/DC Adapter with Development Board.
  • Turn ON the Power Switch.
  • Wait until the Pickit2 Finishes Driver Installation. If the driver not detected just try to reconnect or RESE-Tart your system, then try again.





5. After Finishing the Hardware driver installation. Open MPLAB IDE. Select Programmer >> Select Programmer >> PICkit2





6. If the Kit is properly connected, you can see the Pickit2 Icon set on the Toolbar (Yellow Set) and the PICkit2 Ready Message. Very First icon is used for “Programming the device”.





7. Finally open our Example Programs, Burn into the controller, do the hardware connection as per Chapter 2 and See the result.

Error 1: MPLAB may throw "Write Failure-Get lost Error". If it does, follow the instructions below,



  • Unplug the Power supply from target board
  • Close MPLAB
  • Plug the AC/DC adapter
  • Reopen MPLAB

Error 2: MPLAB may throw "target not found" error, If it does, follow the instructions below

Error 3: MPLAB may throw "Verified Failed" error, due to the following

  • Hex File may be old, so compile the project once and try Programming.
  • Faulty microcontroller device, Replace it with new one.

Note *: If the error still retains check your windows firewall or antivirus software to allow this MPLAB and Pickit2 programmer.

Example Programs and Connections

SEVEN SEGMENT

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

Connect PORTB with JP14 via FRC Cable.

JP14 is at Seven Segment Section

Digits will be incrementing from 0 to 9999

Single

PORTA.3

Ten

PORTA.2

Hundred

PORTA.1

Thousand

PORTA.0

DATA LINES

A

PORTB.0

B

PORTB.1

C

PORTB.2

D

PORTB.3

E

PORTB.4

F

PORTB.5

G

PORTB.6

H

PORTB.7



I2C EEPROM

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CLK

PORTC.3

Turn ON TXD, RXD, SCL and MISO Pins of

CONFIG switch SW1. Connect Serial cable between USART Section in the Board and PC.

The string “I2C Test Program” will be displayed in Hyper- Terminal

DATA

PORTC.4



ADC

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CH0 (LM35)

PORTA.0

Turn ON RXD, TXD and ADC Pin of

SW1 CONFIG Switch Connect Serial cable between USART Section in the Board and PC.

Digital Values of all the Three channels will be displayed in HyperTerminal

CH1 (POT1)

PORTA.1

CH2 (POT2)

PORTA.2



DATA EEPROM

NOTES

This Source code is written to access the Internal EEPROM of PIC Microcontroller. So No hardware connection is needed.

Connect Serial cable between USART Section in the Board and PC.

“Hello World” will be displayed in HyperTerminal Click “Programmer >> Read EEDATA” in MPLAB to see the contents of Internal EEPROM



DIGITAL INPUTS

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

DIGITAL INPUT

Connect PORTB with J14 (Digi- Input) via FRC Cable

Place Jumper between Middle and GND pin of J13

(Digi-Input) Connect PORTC with JP3 (LEDsection) via FRC cable

Turn ON and OFF the DIP switch SW22 and see the changes in LED’s

INPUT.0

PORTB.0

INPUT.1

PORTB.1

INPUT.2

PORTB.2

INPUT.3

PORTB.3

INPUT.4

PORTB.4

INPUT.5

PORTB.5

INPUT.6

PORTB.6

INPUT.7

PORTB.7



DS1307

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CLK

PORTC.3

Turn ON TXD, RXD, SCL and MISO Pins of

CONFIG switch SW1. Connect Serial cable between USART Section in the Board and PC.

Date and Time will be dis- played in HyperTerminal

DATA

PORTC.4



DS1820

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

DATA

PORTC.0

Turn ON RXD, TXD and DS1820 Pin of CONFIG Switch SW1

Connect Serial cable between USART Section in the Board and PC.

Data array and Tempera- ture values will be dis- played in HyperTerminal



INPUT CAPTURE

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

PWM O/P

PORTC.1 (CCP2)

Place a jumper between PORTC.1 and PORTC.2

Turn ON TXD and RXD Pins of CONFIG switch

SW1.Connect Serial cable between USART Section in the Board and PC.

Frequency in terms of time will be displayed in Hyper- Terminal

(2KHz = 500uS)

CAPTURE I/P

PORTC.2 (CCP1)



INTERRUPT

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

INT0

PORTB.0

Place a jumper between Middle and RB pins of

J11 (INT0).

Place a Jumper Between Middle and FE pin J8 (ES) to select Falling Edge.

Connect PORTC with JP3 (LED section) via FRC

cable

Press SW3 (INT0) switch and the PORTC.0(D5) LED will be toggled for every Pressing made by INT0



KEYPAD

HARDWARE PIN OUT

CONNECTION

OUTPUT

ROW1

PORTB.0

Connect PORTB with JP15 (Key- pad) via FRC Cable

Turn ON TXD and RXD Pins of CONFIG switch SW1.

Connect Serial cable between USART Section in the Board and PC and open HyperTerminal

Press RESET once.

Press a Key and the number will be displayed in Hyper- Terminal

ROW2

PORTB.1

ROW3

PORTB.2

ROW4

PORTB.3

COL1

PORTB.4

COL2

PORTB.5

COL3

PORTB.6

COL4

PORTB.7



KEYPAD_LCD

HARDWARE PIN OUT

CONNECTION

OUTPUT

ROW1

PORTB.0

Connect PORTB with JP15 (Key- pad) via FRC Cable

Connect PORTD and JP9 (LCD Section) via FRC Cable

Press RESET once.

Press a Key (4x4 matrix key- pad) and the number will be displayed in LCD

ROW2

PORTB.1

ROW3

PORTB.2

ROW4

PORTB.3

COL1

PORTB.4

COL2

PORTB.5

COL3

PORTB.6

COL4

PORTB.7



LCD

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

Connect PORTD with JP9 (LCD) via FRC Cable

Place a Jumper on BL-SEL (J7) to Enable Backlight

Press RESET Once. Adjust the POT (CONTRAST)

Right or Left until the letters are visible

The Strings “PIC DEV. BOARD” and "LCD DEMO PROGRAM" will be displayed on LCD.

RS

PORTE.0

RW

PORTE.1

IN

PORTE.2

DATA LINES

D0

PORTD0

D1

PORTD1

D2

PORTD2

D3

PORTD3

D4

PORTD4

D5

PORTD5

D6

PORTD6

D7

PORTD7



LED

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

LED.0

PORTx.0

Connect Any one PORT from PORTA, PORTB, PORTC, PORTD with JP3 (LED Section) via FRC cable

LED’s will be Turned ON and

OFF at 500ms interval.

LED.1

PORTx.1

LED.2

PORTx.2

LED.3

PORTx.3

LED.4

PORTx.4

LED.5

PORTx.5

LED.6

PORTx.6

LED.7

PORTx.7



PWM

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

PWM

PORTC.1 (PWM2) PORTC.2 (PWM1)

There are no connections on the board

Connect a CRO and measure the pulse width and duty cycle



RELAY and BUZZER

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

BUZZER

PORTB.0

Connect PORTB with JP5 (E-MECH) via FRC Cable Place a Jumper Between INT and +5V of J6 (J6 is very near to BUZZER).

Turn ON TXD and RXD Pins of CONFIG switch SW1. Connect Serial cable between USART Section in theBoard and PC and open HyperTerminal Press RESET Once.

Choose Any one from1 to 6. The Corre- sponding Action Will Be carried out.

RELAY1

PORTB.1

RELAY2

PORTB.2



SPI EEPROM

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CS

PORTC.0

Turn ON TXD, RXD, CS, SCL, MISO and MOSI Pins of CONFIG switch SW1.

Connect Serial cable between USART Section in the Board and PC. Open HyperTerminal

Press RESET Once (If Necessary)

The string “SPI Test Pro- gram” will be displayed in HyperTerminal

CLK

PORTC.3

MISO

PORTC.4

DAWDLE

PORTC.5



STEPPER MOTOR

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

PHASE.1

PORTC.0

Place a jumper between Middle and RB pins of J11 (INT0).

Place a Jumper Between Middle and FE pinJ8(ES) to select Falling Edge.

Connect a Stepper Motor with J5 (6 wire)or J4 (5 wire).

Check the connection once again Connect PORTC with JP2 (STEPPER) via FRC Cable

Press RESET or INT0 to change the direction of stepper Motor.

PHASE.2

PORTC.1

PHASE.3

PORTC.2

PHASE.4

PORTC.3

INT0

PORTB.0



USART

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RXD

PORTC.7

Turn ON TXD and RXD Pins of CONFIG switch

SW1.Connect Serial cable between USART Section in the Board and PC. Open HyperTerminal

Press RESET Once (If Necessary)

Type a character, same character will be returned from Board.

TXD

PORTC.6



USART with PRINTF

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RXD

PORTC.7

Turn ON TXD and RXD Pins of CONFIG switch

SW1.

Connect Serial cable between USART Section in the Board and PC. Open HyperTerminal

Press RESET Once (If Necessary)

Type a character. The Pressed character with its hex value will be returned.

TXD

PORTC.6



Setting up HyperTerminal

HyperTerminal is automatically installed under Programs >> Accessories,

1. Click Start >> Programs >> Accessories >> Communications >> HyperTerminal


  • Enter Name (e.g. Com1_9600) and choose any one ICON.




2. Click the drop-down arrow by Connect Using >> COM1 >> Click OK





3. COM1 Properties, Port Settings





  • Bits per Second: select 9600 (or desired baud rate)
  • Data Bits: select 8
  • Parity: select None
  • Stop Bits: select 1
  • Flow Control: select none
  • Click OK

4. Now you get the HyperTerminal window.