Wouter van Ooijen wrote: >>In general, I think asm is necessary for smaller MCUs like >>PIC. >> >> > >Why? > >I often have a project where the PIC hardware costs are small, and a 1k >code 12F or 16F chip will do the trick when programmed in C, so why >shouldn't I use C? > >Wouter van Ooijen > >-- ------------------------------------------- >Van Ooijen Technische Informatica: www.voti.nl >consultancy, development, PICmicro products >docent Hogeschool van Utrecht: www.voti.nl/hvu > > > > You are right, Wouter, and it makes perfect sense. But my projects were always heavier. I would begin with C and eventually run out of (1) Memory (2) code space (3) clock speed [[check 1/2/3 as needed]]. I would then rewrite the entire project in assembler. So I now have 100s of tested routines, all known to work, ready to drop in (with minor tinkering) to do 32-bit math, RS232, square root, etc. Just like C, without having to fool with C. To keep from having to pay for good C compilers, if I just HAVE to have a high level language, I use your JAL, Wouter. Its free. and it works good. --Bob -- Note: To protect our network, attachments must be sent to attach@engineer.cotse.net . 1-520-850-1673 USA/Canada http://beam.to/azengineer -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist