gnupic: SDCC sample program for 16F873?
Subject:
Re: SDCC sample program for 16F873?
From:
####@####.#### (Linas Vepstas)
Date:
24 Jun 2002 21:12:23 -0000
Message-Id: <20020624210045.GA15652@backlot.linas.org>
On Mon, Jun 24, 2002 at 01:56:15PM -0700, Scott Dattalo was heard to remark:
> 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? :)
It does on the version of sdcc I have. I had to patch it in a few places,
but I beleive you received & incorporated all those patches, so it should
(in theory) work on the current sdcc.
--linas
--
pub 1024D/01045933 2001-02-01 Linas Vepstas (Labas!) ####@####.####
PGP Key fingerprint = 8305 2521 6000 0B5E 8984 3F54 64A9 9A82 0104 5933