fpic is an include file, some macro files, and lets you compile code in binary.
originaly, PIC14 means 14 bits instruction set, the instruction set of PIC12fxx and pic16fxx series.
but i prefer fpic as a general project name, then, fpic, ad pic14.inc is the include for 14 bits pic instructions
for PIC18fxx series, instruction set is in 16 bits, then, need an other macro, that will be named PIC16. :) to be continued
click here to browse fpic project folder
i test it on a minimal circuit board, with a pic 12F675, i choose this chiL because of:
only 8 pins
ease to program
pic family that share the same instuction set and internals.
click here to download the PIC macro project
this file contains:
pic14.inc ;macros to compile pic14 instructions set
blinkled.asm ;test code for the connection diagram below
RCD.png ;JDM compatible programmer connection diagram, to use with ICPROG or compatible
sprint.ziL ;tool to draw PCB, RCD programmer is "sprint/macro/interface/ICSP.lay"
pic12f675.pdf ;datasheet for the Pic 12f675 device
to flash a PIC with blinkled.pic:
1 open icprog
2 select pic 12f675 device
3 open blinkled.pic
4 reverse byte order >> YES, the first word in program memory should be 2804
5 connect RCD programmer, if not still done.
6 program all
7 wait a little (approximately 10 seconds), power down and up, or reset
8 the led blinks, the microcontroler Hello world.
if the device dont program, check icprog setings.
1 vcc control enable for JDM
2 verify during programming
4 direct I/O
5 delay 4
if the device dont program, check that the device is readable, if it dont read at all, check your connections.