On Mon, Jul 19, 1999 at 12:04:29AM +0100, Les wrote: > Could anyone tell me what printf does in the Hi-Tech C compiler > where does the serial data come from i.e (is it software generated on the See section 4.29 in the manual "Standard I/O functions and serial I/O". PAge 96 in my copy. > how do I set the config bits I know it is _CONFIG but what do I place after > it to make it xt_osc and wdt_off on a 16F877. The makers of the compiler You need to read the chip documentation for this. Look up the CONFIG register bits in the Microchip data sheet, and put these in. For example, __CONFIG(0x3FB1); would set code protection off, ICD off, flash memory write enabled, data EEPROM write enabled, low voltage programming enabled, brown out reset disabled, power up timer enabled, watchdog disabled, and XT oscillator. > should have a section for learners of C. I believe that if you wish to learn > a language you must have the best tools and I thought the HI-Tech was the > one, but I think I was sadly mistaken. To learn a language, you need to remove as many difficulties as possible. You are far better to learn C programming before you try to program a PIC in C. You need to be able to walk before you can run. Regards, Clyde -- Clyde Smith-Stubbs | HI-TECH Software Email: clyde@htsoft.com | Phone Fax WWW: http://www.htsoft.com/ | USA: (408) 490 2885 (408) 490 2885 PGP: finger clyde@htsoft.com | AUS: +61 7 3355 8333 +61 7 3355 8334 --------------------------------------------------------------------------- HI-TECH C: compiling the real world.