On Tue, 13 Aug 2002, Claudio Tagliola wrote: > Hello all, > > I'm working with PIC's on C, but I was wondering if there is a library of > include files for the odd bunch of pic's. What I mean are header files for > the PIC devices for all register locations with the names as they are used > by MC, comparable to the inc files of mplab. Up to now, I just include the > needed defines for the registers I need, but this isn't very nice, let alone > failsafe. Now, I know I can type them up myself, as I have done with the > MCP2510, but I can't believe no-one has done this for the major pics > already. I'm working with the 16F874, 16F877, 18F452 and 18F458. If someone > has the .h files for these, I would be very gratefull. You may wish to investigate inc2h.pl: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/sdcc/sdcc/support/scripts/inc2h.pl This Perl script was written by Kevin Pauba to convert Microchip assembly include files into SDCC C include files. If you know perl, then it be easy to adapt the script so that it is compatible with CCS (or any C compiler). If you don't know perl, you could try running the script and then create a macro in your favorite text editor to convert the SDCC pragmas into the CCS equivalent. Scott -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body