i've been trying to program a 16f877-20/p with a hexfile written by the author of a circuit i've been building (tomscarff.tripod.com (pitch to midi)). i am new with the 16 bit microcontrollers and i know in the project i am working with this chip clocks with a 4mhz crystal. i do believe that i want a 16f877-04/p instead, but regardless the file has been failing to write with my enhanced jdm programmer. does this problem sound like the result of trying to program the wrong kind of chip? and should the hexfile write correctly with the correct microcontroller or am i going to need a more advanced programmer?