I am using MPLAB IDE version 8.10 and PICSTART PLUS version 04.50.9.

I am trying to use the picstart plus to program my PIC18F2331.

I have read the picstart plus realease note where it mentions I need to connect Vdd to Avdd pin and insert a 0.1uF cap between Vdd and Vss pin.

But I have not been able to program my pic18f2331.

So,I decided to do ICP.So,I connected wires from the pictstart plus to my pic18F2331 which is in a breadboard.

I have connected pin 1 of the picstart plus to pin 1 of the pic18f2331.Similarly I have connected PGC and PGD pins and I have connected PGM pin low using a resistor to ground.I have connected Vdd and Vss pins to a power supply of 5V.I have connected everything as shown in the following link:

http://melabs.com/support/icsp.htm

But still no luck.

Attached is my code that I am trying to burn in the PIC18F2331:

#include <18F2331.h>
#include <stdio.h>
#include <Stdlib.h>
#include <MATH.h>
#include <String.h>
#use delay (clock=20000000)
#fuses XT,NOWDT,NOPUT,NOPROTECT,NOLVP,NOMCLR,BORV27,HPOL_ HIGH,LPOL_HIGH,T1STANDARD
#byte port_b=0x81

void main() {
set_tris_b(0x00);
port_b=0;

while(TRUE){
output_high(PIN_B2);
delay_us(500);
output_low(PIN_B2);
delay_us(500);
output_high(PIN_B1);
delay_us(500);
output_low(PIN_B1);
delay_us(500);
output_high(PIN_B0);
delay_us(500);
output_low(PIN_B0);
delay_us(500);
}
}


I export the hex file to MPLAB and then use picstart to program my pic.

When I do a erase I get "Erase operation is successful."

When I do a blank check I get

"Device is NOT blank:
Program Memory
Configuration Bits
IDs
Data Memory
"

When I do a read I get

"Device is data protected! Data memory may be invalid.

Device is code protected! Program memory may be invalid.
"
When I select program I get

"PICSTART Program\Verify Report
24-Nov-2008, 17:57:29

Device Type: PIC18F2331
Address Range 0-1fff


Programming/Verification completed successfully
"

Does that mean my I was able to program the pic successfully?Because once I hook up the LEDS to the pin b0,b1 and b2 nothing happens it just remains off.

Can anyone help me?

Thanks