gnupic@linuxhacker.org
gnupic@linuxhacker.org
I'm beginning a new project where I plan to use the 16F628. I would like
to try SDCC for most of my coding, but I'm having trouble getting started.
I have downloaded, compiled, and installed recent versions of gputils and
sdcc. I also fetched Scott's led-1.tar.gz example which he mentioned here
last July.
After studying the files in that package, I think I have some feel for how
to write the code. The biggest problem is that I don't know how to
generate the p16f628.h file. The p16f877.h file from the led-1 package
mentions that it was automatically generated by inc2h.pl, which I remember
hearing of here previously, but I haven't been able to track it down
anywhere. Where do I get this program?
One more question whose answer isn't immediately clear to me: If I want to
use interrupts in my code (tmr0 interrupt, for example), how do I install
an interrupt handler for that? In the asm world, I just put a .orig 0x004
before my interrupt-handler block of code. How is it done with sdcc?
Greg Hill
gnupic@linuxhacker.org