> At 22:49 10/25/2001 -0700, Ned Konz wrote: > >On Thursday 25 October 2001 09:52 pm, Brent Brown wrote: > > > James Caska wrote: > > > > Probably a silly question, but am I to understand the the HITECH-C > > > > compiler does not ship with libraries for these standard sort of > > > > things? > > > > > > Not a silly question, but yes, it doesn't come with those sort of > > > things. > > > >That argument makes sense for non-standard keywords, pragmas, etc., but > >doesn't make too much sense for libraries. I'm still a novice C programer, so I guess I'm uclearon the difference between a library and a built-in function. One of the reasons I went with CCS was its rich set of available functions for A/D, serial I/O, PWM, interrupt handling, etc. There are also a lot of example programs and quite a few of what I would call "libraries" -- that is, a set of functions that can be #included in your program. Some are less useful than others, yes -- like the LCD and keypad routines, which you would of course have to modify for your hardware. A lot of others, though, are highly useful. For example, the compiler will determine by the pin assignments in a pragma statement whether serial I/O is being done with the hardware UART or bit-banged, and use appropriate code on its own - though you can even specify to use bit-banged serial using the hardware UART pins, for example if you want to send 8 bits plus parity. The ADC routines are simple but save an awful lot of time, and generate code almost exactly the same as what I'd do in assembler. So I don't know, does HT has that sort of thing built in? At their prices it wasn't a viable choice for me. Personally, though, I *really really like* having such things as putc(), getc(), pwm(), read_adc() and that sort of thing available without having to write them from scratch and #include them in every program I write. Dale -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.