You have no items in your shopping cart.

Subtotal: 0.00

INTRODUCTION

The PIC Advanced development board is a development board which demonstrates the capabilities of the 40-pin, 28 Pin, and 18 Pin PIC16F/18F devices.

PIC Advanced development board

The 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.

PIC Advanced development board

Kit comes with the following:

PIC Advanced development board

PIC 16F877A IC

☞CD-ROM, which contains: a) Sample programs b)

PIC Advanced development board

User’s Guide

PIC Advanced development board 

The PIC Advanced 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

ENC28J60 Ethernet driver

☞RF receiver

☞CAN transceiver

PS2 Interface

VGA interface

128x64 Graphical LCD

 

PIC Advanced 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 Advanced 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 PIC18), demo source code with compiled Hex file is provided.

PIC Advanced development board

LAYOUT



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.

28 Pin and 18 Pin IC bases are given so the user can use 28 pin and 18 pin devices as well. But these devices have limited I/O lines; some of the on-board peripherals can be inaccessible. These can be accessed externally.

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.

SOCKETS

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

SECTION

DESCRIPTION

JP1

Power Supply

Placing a jumper between : 1 & 2à Power from onboard Regulator

: 2 & 3à Power from USB

J2

Power Supply

Power ON/OFF Switch

J19

CAN

RXD 1 and 2 shorted

TXD 1 and 2 shorted

We can connect these pins with microcontroller pins having CAN

protocol. The combination is RXD1 and TXD1, RXD2 and TXD2

J11

Main Board

Middle and RISEà Interrupt on Rising Edge

Middle and FALLà Interrupt on Falling Edge

J9

GLCD

LCD mode: Place Jumpers between LCD and CONTRAST, GLCD and LCD_BL

GLCD Mode: Place a Jumper between GLCD and CONTRAST

J10

MAIN BOARD

ICD2 or PICKIT2 Connector for programming the IC’s from an External Programmers. Or use this connector to program external ICs using Onboard Pickit2 Programmer

J1

USB Program-

mer

This is for factory debugging. The User should not do anything with

this connector.



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 J2.


POWER SWITCH (J2)

Supply Turned OFF

Supply Turned ON

 


Installation Notes

INSTALLING MPLAB IDE AND HI-TECH C COMPILER

1. Open up the user CD comes with

PIC Microcontroller Board

, Navigate to MPLAB IDE Folder

2. Double Click Setup.exe and Click >> Next



INSTALLING MPLAB IDE AND HI-TECH C COMPILER

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



 license agreement

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



Complete Check box Setup Type

5. Click >> Next



Choose Destination Location

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


Application Maestro License

C32 License

7. Click >> Next to Start Copying Files



Start Copying Files

8. Now the MPLAB IDE setup will Progress



setup will Progress

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



installation MPLAB IDE

10. Click >> Next



Hi-Tech C

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



License agreement

12. Click >> Next



License agreement

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



Installing HI-TECH C Complier

14. Click >> Finish



Installing HI-TECH C Complier

15. Click >> Finish to InstallShield Wizard Complete



InstallShield Wizard

16. Just Close the MPLAB IDE Document Support



Mplab ide

CREATING A PROJECT ON MPLAB IDE

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



CREATING A PROJECT ON MPLAB IDE

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



Project and Project Wizard

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



Project Wizard

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



Project Wizard

5. After selecting the device, click >> Next



After selecting

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



Select a language toolsuite

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



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.



“X”, please reinstall the HI-TECH C for PIC 10/12/16

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



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.



Step Three

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



Step Three

11. Click >> Next to the following window



Step Three

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



Step Four

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



Summary

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.



windows on your IDE

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



Pic16f Project -Mplab Ide v8.43

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

creating the new file

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.



 c file, put a “.c”

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



Pic16f Project -Mplab Ide v8.43

19. Select the file that is being saved.



Pic16f Project -Mplab Ide v8.43

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.



Pic16f Project -Mplab Ide v6.43

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



Pic16f Project -Mplab Ide v5.43

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

CONFIGURING PROGRAMMER


☞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 is not detected just try to reconnect or RESTART your system, then try again.



Found New Hardware

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



MPLAB IDE V8.43

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”.



Output

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

POSSIBLE ERRORS

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" or “unspecified device id “error, If it does, follow the instructions below


☞Ensure whether the PIC 16F/18F development board placed properly in ZIF jacket.

☞In Configure-->Select device, ensure PIC16F877A (or any) is selected.

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.

PROGRAMMING THE IC’S



Programming The IC'S

1. Just open one of our Example Program, the PICkit2 will be automatically detected and will show the Found PICkit2 message, Click Program the target device (First one in the yellow Icon set). The following message will be displayed,



Programming Target

RUNNING THE PROGRAM

1. Once the program is loaded into microcontroller, press the RESET button to run the loaded program.

2. Do the Hardware configuration as per chapter 4 (Example programs)

Example Programs and Connections

SEVEN SEGMENT


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

ConnectPORTB with JP15 via FRC

Cable

JP15 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 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 Adjust the POT R15 or R16 to change the values or Apply heat on the flat surface of the LM35

CH1(POT1)

PORTA.1

CH2(POT2)

PORTA.2

 


DATA EEPROM


NOTES

This Source code is written to access the Internal EEPROM of PIC 16F/18F development board. So No hardware con-

nection is needed.

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

“Hello World” will be displayed in HyperTerminal

Click “View |?| EEPROM”

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

Connect PORTC with JP3 (LED section) via FRC cable

Turn ON and OFF the DIP

switch SW21 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

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 CONFIGSwitch

Connect Serial cable between USART Section inthe 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

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 FALL pins of J11 (INT0).

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

 


KEYPADKEYPAD_LCD


HARDWARE PIN OUT

CON CONNECTION

OUTP OUTPUT

ROW1

PORTB.0

Connect PORTB with JP16 (Keypad) via FRC Cable

Turn ON TXD and RXD Pins of

CONFIG switch

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

 


LCD


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

Place the LCD Carefully on theSocket. LCD Placement isMarked From the third pin.

Connect PORTD with JP10 (LCD)via FRC Cable

Place a Jumper between LCD and CONTRAST, LCD andLCD_BL of J9.

Press RESET Once

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

RS

RS

RW

RW

EN

EN

DATA LINES

D0

D0

D1

D1

D2

D2

D3

D3

D4

D4

D5

D5

D6

D6

D7

D7

 


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 or

Connect PORTC with LED sec-

tion to see the LED brightness

 


RELAY and BUZZER


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RELAY1

PORTB.0

Connect PORTB with J21 (BUZZ, RELAY DRIVER)

Turn ON TXD and RXD Pins of CONFIG switch

Connect Serial cable between USART Section in the

Board and PC and open HyperTerminal

Press RESET Once.

Press Any one number

from 1 to 6. The Cor-

responding Action

Will Be carried out.

RELAY2

PORTB.1

BUZZER

PORTB.2

 


SPI EEPROM

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CS

PORTC.0

Turn ON TXD, RXD, CS, SCL, MISO and MOSI Pinsof CONFIG switch

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

MOSI

PORTC.5

CS

PORTC.0

 


STEPPER MOTOR


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

PHASE.1

PORTC.0

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

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

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

 


USARTUSART with PRINTF

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RXD

PORTC.7

Turn ON TXD and RXD Pins of CONFIG switch

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

Press RESET Once (If Necessary)

The string "Hello World" will be displayed in HyperTermi- nal

TXD

PORTC.6

 

GLCD

HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CONTROL LINES

Connect PORTD with JP10

(GLCD) via FRC Cable

Place a Jumper between GLCD

and CONTRAST of J9.

An image will be blinking on

GLCD.

CS1

CS1

CS2

CS2

RS

RS

RW

RW

EN

EN

DATA LINES

D0

D0

D1

D1

D2

D2

D3

D3

D4

D4

D5

D5

D6

D6

D7

D7

 


PS2


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

CLK

PORTC.1

Turn ON TXD, RXD Pins of CONFIG switch

Connect PORTC with JP7(PS2) via FRC cable

Connect a PS2 keyboard with U10-PS2 connector

Connect Serial cable between USART Section on

the Board and PC.

Press RESET once.

Press a Key in PS2 key-

board, the key will be

displayed in HyperTermi-

nal

Only Alphanumeric keys

and some special keys will

be displayed.

DATA

PORTC.0

 


VGA


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

VS

PORTA.0

Connect PORTA with J14 VGA Section.

Connect a VGA monitor with P2 VGA

connector

Press RESET once

A Text message will appear on

VGA screen

(Source code not yet provid-

ed)

HS

PORTA.1

Blue

PORTA.2

Green

PORTA.3

Red

PORTA.4

 


ETHERNET


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

AD0

PORTA.0

Connect PORTC with CN2 (ETHERNET)

Turn ON ADC pin of CONFIG

Connect a LAN cable with 10BASE-T LAN connector (Straight). The other end of

LAN cable should be in a LAN switch

Or Connect a LAN cross cable between

PC and Board

Connect PORTD with LED section (JP3)

Connect PORTB with Digital INPUT Sec-

tion (J14)

Open a browser and type the

IP address “192.168.1.60”. A

web page will be displayed.

Click the TOGGLE hyperlink to

turn ON LEDs.

Turn ON/OFF DIP Switch SW21

pins to see the changes in web

page

ADC value will be displayed in

the web page.

Example code used here is

from MikroC PIC (Any Version)

AD1

PORTA.1

RST

PORTC.0

CS

PORTC.1

INT

PORTC.2

WOL

PORTC.3

NC

PORTC.4

MOSI

PORTC.5

MISO

PORTC.6

SCK

PORTC.7

 


RF RECEIVER


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

RF.0

PORTB.0

Connect PORTB with RF

Section.

Connect PORTD with LED

Section

RF Transmitter is a separate

board

Press a switch on transmitter, a

LED will be turned ON.

Release the switch, the LED will

be turned OFF

LED D20 (RF Receiver) indicates

that the transmitted data is re-

ceived successfully

RF.1

PORTB.1

RF.2

PORTB.2

RF.3

PORTB.3

LED.0

PORTD.0

LED.1

PORTD.1

LED.2

PORTD.2

LED.3

PORTD.3

 


CAN TRANCEIVER


HARDWARE PIN OUT

CONNECTIONS

OUTPUT

TX

PORTC.0

Connect the combination of one RXD and one TXD

pins from J19 to microcontroller’s CAN RX and TX.

Source code not yet

provided

RX

PORTC.1

 


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.



Setting up HyperTerminal

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



Connect To

3. COM1 Properties, Port Settings


 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.