gnupic: SDCC sample program for 16F873?
Subject:
Re: SDCC sample program for 16F873?
From:
Scott Dattalo ####@####.####
Date:
24 Jun 2002 21:08:01 -0000
Message-Id: <Pine.LNX.4.44.0206241353140.28873-100000@ruckus.brouhaha.com>
On Mon, 24 Jun 2002, Linas Vepstas wrote:
> On Mon, Jun 24, 2002 at 08:07:55PM +1000, Scott Ellis was heard to remark:
> > I need to write a program that samples the A/D's and sends the results
> > on the serial port. Also has to receive some commands. Does anyone
> > have some sample code for this for Scott's port of SDCC?
> >
> > (I know I am being lazy, but if some one is feeling generous and has
> > already done this then ... :-) )
>
>
>
> /*
> * FILE:
> * a_to_d.c
> *
> * FUNCTION:
> * Program a PIC16F873 to read five analog inputs, make an
> * A to D conversion, and output data on a serial port.
<snip>
You know, I didn't think there was a chance in hell that this would've
existed! I guess it shows that it never hurts to ask...
BTW, Linas, does this compile correctly? :)
Scott