i have placed a file full of bits for the pi84 dtector by mark stuart {code block original by mark pauls.... all credits preserved other than timing adjustments...}
i made a clear fixed pcb added the reset and pullup resistors to the pcb... with drill points
renamed to pi84+ pcb name {makes a nice pcb with press and peel blue stuff... or by old a4 photocopier cooking oil and a roller {and hot lamp}
i have adjusted the code to allow 4,8 mhz on pic84F versions {10 mhz is a hastle}
also a set of files for the pic 16F84A versions 4,8,20 mhz blocks
{with simulations to prove timing {done in proteus lite}
you do need however to set the fuses {code protect watchdog {dont use} etc {basicaly leave it open so you can change if you like later...}and dont forget to set to XP crystal and 20 clock xtal for 20 mhz code block...etc...
or add a config string to the source and recompile it
{if you recompile ignore banks select bits warnings {only warnings regarding flop of cpu at run {like an old fold out book} so ....}so is a runtime anomaly...only in code{typical!!!!}{ to make a new version use mplab make a new project in the same source folder then add the asm as a node to the hex {it will rename the hex tot he same as the file so
then adjust and build {as i say some bank bits warnings {just flop of cpu} ignore this and burn into chip } but setting the fuses is easier..... consult your programmer scripts too see if you need too what too do
so .... if you look through the code you will see the parts i adjusted and comented
also in the file is some proteus lite simulations .... runs in lite right up too 20 mhz fine and solid....
pi84 code blocks here
code blocks and
i made a clear fixed pcb added the reset and pullup resistors to the pcb... with drill points
renamed to pi84+ pcb name {makes a nice pcb with press and peel blue stuff... or by old a4 photocopier cooking oil and a roller {and hot lamp}
i have adjusted the code to allow 4,8 mhz on pic84F versions {10 mhz is a hastle}
also a set of files for the pic 16F84A versions 4,8,20 mhz blocks
{with simulations to prove timing {done in proteus lite}
you do need however to set the fuses {code protect watchdog {dont use} etc {basicaly leave it open so you can change if you like later...}and dont forget to set to XP crystal and 20 clock xtal for 20 mhz code block...etc...
or add a config string to the source and recompile it
{if you recompile ignore banks select bits warnings {only warnings regarding flop of cpu at run {like an old fold out book} so ....}so is a runtime anomaly...only in code{typical!!!!}{ to make a new version use mplab make a new project in the same source folder then add the asm as a node to the hex {it will rename the hex tot he same as the file so
then adjust and build {as i say some bank bits warnings {just flop of cpu} ignore this and burn into chip } but setting the fuses is easier..... consult your programmer scripts too see if you need too what too do
so .... if you look through the code you will see the parts i adjusted and comented
also in the file is some proteus lite simulations .... runs in lite right up too 20 mhz fine and solid....
pi84 code blocks here
code blocks and
Comment