Hi, Sougata

a look at CYPRESS Application notes could give you the solution and soft ...

I know ... it's not PICs !!! but Free ICD and simple programmer.

Worth it !!!

Alain