Thus spake David Covert (davecove@MICROSOFT.COM): > This past Friday night, I tried for the first time to program and > .... > I was astounded at how well things went... Fun, isn't it?! > > 1) What is the best A/D to use with a C84? (8 to 12 bit, 1 to 8 channel, The MAX186 (8 channel, 12 bit, internal reference, also available in a single channel 8 pin chip) seemed like the best choice when I went looking. Attached is some C code to drive it - not for a PIC, but you should be able to modify it easily. The '186 comes in a 20 pin DIP or SMD package, and I have been quoted around AUS$20 here, but got a free sample from Maxim's web page just by asking. Maxim is at www.maxim-ic.com. Data sheets are there too. > 2) I am using Hi-Tech's beta C compiler. How can I add in or link ASM The easiest way to add assembler code is to embed it in a C function, e.g. a_c_func(void) { asm(" clrwdt"); // or like this #asm clrwdt bsf 3,2 ; or whatever - but beware interaction with ; compiled code. #endasm // C code resumes here (this is a C++ style comment) } If you want to write a separate assembler module, put it in a file with a .AS extension, and the compiler will automatically recognize it as assembler code. To set up an assembler file like this, an easy way is to write a dummy C function and compile it to assembler, then use that as a starting point (to get the psect directives etc.) Cheers, Clyde -- Clyde Smith-Stubbs | HI-TECH Software, | Voice: +61 7 3354 2411 clyde@htsoft.com | P.O. Box 103, Alderley, | Fax: +61 7 3354 2422 http://www.htsoft.com | QLD, 4051, AUSTRALIA. | --------------------------------------------------------------------------- Download a FREE beta version of our new ANSI C compiler for the PIC microcontroller! Point your WWW browser at http://www.htsoft.com/ Attachment converted: wonderlandfive:adc.c (TEXT/CSOm) (00009E8E)