gnupic: Thread: how to begin using SDCC targeting the 16F628


[<<] [<] Page 1 of 1 [>] [>>]
Subject: how to begin using SDCC targeting the 16F628
From: Greg Hill ####@####.####
Date: 20 Mar 2003 01:30:13 -0000
Message-Id: <Pine.GSO.4.53.0303191808250.14490@xmission.xmission.com>

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

Subject: Re: how to begin using SDCC targeting the 16F628
From: "Kevin L. Pauba" ####@####.####
Date: 20 Mar 2003 04:29:47 -0000
Message-Id: <200303192217.13696.klpauba@cox.net>

Greg,

Take a look for the inc2h.pl script in <path to 
sdcc>/support/scripts/inc2h.pl.

If you can't find it or need more help, drop me an email.

Later!

On Wednesday 19 March 2003 07:17 pm, Greg Hill wrote:
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.