E2P28 and E2P28 Mk2 Programmer Basic Use Guide

2. Programming a PIC Microcontroller

NOTE: The following document assumes you have already installed the programmer software. If you have not yet installed the programmer software, refer to the chapter on how to install the programmer software, before continuing with the listed steps.

Although the rest of the document uses screenshots from the E2P28 programming software, the steps involved are the same for both programmers. Any differences between the procedures are mentioned when discussing those specific procedures.

Connect the programmer

Use a USB cable to connect your programmer to the USB port of your PC or laptop.

Launch the programmer software

Find the E2P28 or the E2P28_MKII icon on the desktop to start the software. Or start the software by selecting the BKE folder in the application menu and then selecting the installed programmer software.

The main screen of the programming software should open

E2P28 Main Screen

Select your device

Click on the SELECT menu in the main screen

E2P28 Select Device

The device we want to program is a Micro Controller, manufactured by Microchip:

  1. Under Select device type make sure the Micro Controllers radio button is checked.
  2. Under Manufacturer select MICROCHIP “F”.
  3. Under Device select the appropriate device (IMPORTANT: Confirm if your device is the 16F627 or the 16F627A by checking the model number on the physical IC/device itself)
  4. Click the OK button to return to the main screen.

Load the HEX file

Go to the Load menu and using the dialog box, search for the required HEX file and click on OPEN (This hex file was generated when you compiled your assembler code using either the PIC Simulator IDE or Microchip MPLAB)

A Select File Format dialogue box will open. Leave the default settings untouched, and click on OK to return to the main screen.

Check configuration settings

Go to the Config menu and apply the following settings:

  1. Under Hardware Options, un-check all except Data Memory Protection Off.
  2. Under Code protection, make sure only Protection off is checked.
  3. Under Oscillator, select INTOSC+RA6+RA7 when using the 16F627A and select INTRC when using the 16F627.

E2P28 Configuration

Click on OK to close the ID/Configuration window and return to the main screen.

Set the programming options

Go to the Options menu and apply the following settings:

  1. Under General options make sure only Sound ON is checked.
  2. Under Programming Option check only: Erase before Program, Code Area, and Config Bytes.

E2P28 Options

Click on OK to return to the main screen.

Insert the PIC Microcontroller

Ensure the socket is open before inserting the PIC (For the socket to be open, the handle should be lifted up into the vertical position)

Insert the PIC into the socket with the notch of the IC facing the opposite side of the handle and as far away from the handle as possible.

Close the socket by pushing the handle into the horizontal position.

E2P28 with PIC

Programming the PIC

On the main screen, click on Program.

When the PIC is programmed a log will appear on the main screen, verify the Pic programmed successfully by examining the programming log.