Just returning to PIC programming after a years gap and seem to have forgotten what little I knew. Have just bought the PICkit2 to use in conjunction with PICbasic Pro. Managed (with some difficulty to get them working together and have tried to implement the good old blink program on the 44 pin demo board (PIC 16f887)with the following code:

define osc 4
TRISD = 0
loop: PORTD.0 = 1 ' Turn on LED connected to PORTD.0
Pause 500 ' Delay for .5 seconds

PORTD.0 = 0 ' Turn off LED connected to PORTD.0
Pause 500 ' Delay for .5 seconds

Goto loop ' Go back to loop and blink LED forever
End

All the darned thing does when I compile and program from McS is to fire up the PICKit2 OK and when I hit the Auto imort hex and write file button it programs the thing OK but when I put the power onto the demo board all 8 of the LEDs on port B light. Got a feeling it has something to do with those darned configuration thingies .. Never did really understand those and now the old grey cells are packing up at a rate of knots... I would be very grateful if anyone could indicate what particular piece of stupidity I have perpetrated this time round.. Thanks for your patience folks ....