From: Matt H. <mh...@me...> - 2010-05-29 00:57:48
|
I built pcb-0.3.1, (through hole version) and have tested it as working with a couple of different devices (16f84a, 18f2550). I'd like to be able to program the 16f506, which from looking at the programming specs, is very similar to the 12f508/9. 12f508/509: http://ww1.microchip.com/downloads/en/DeviceDoc/41227E.pdf 16f506 http://ww1.microchip.com/downloads/en/DeviceDoc/41258C.pdf I modified index.xml to include the 16F506 under the P12F508 family, and src/hardware.cpp to backup the oscillator calibration bits. I noticed there was already a 16F506.xml under xml_data, which seems to agree with the data sheets. After recompiling, when I try to read from the 16F506 I get all 0's. Writing to the device gives a "verify error". When I hook a scope up to the PGC and PGD lines I see activity there. The supported devices list says that the 12f508 is not tested, so perhaps the code to program this part isn't working for these chips either? Can someone recommend a direction to start debugging? I'm going to try to get a hold of a 12f508/9 to see if that part works, but it could take awhile. Thanks, Matt |