Olin Lathrop wrote: > mcd@is-sixsigma.com wrote: > >> Simple, really. If you have 16F84 code and you aren't terribly >> familiar with PICs it can be monstrously difficult to port. >> > > Only if you consider three instructions to disable the analog inputs > "difficult". > > I agree, simple to port if you read the datasheet. >> Most of >> the 84 code out there is absolute and horribly written. >> some is OK. But that is irrelevant > Right, so read the datasheet and write your own. There is little to be > learned by trying to make someone else's bugware run. With the simulator to > help, it's really not hard to get a basic pin toggle loop going. > When I 1st started using PIC in 2003 I had no difficulty in getting '84 assembler source code to run on '877. Later I had no difficulty porting stuff to '628 I don't bother with assembler or C now on PIC, using JAL v2 on 16F628, 16F876, 16F877A, 18F2550, 18F4550, 18FxxJxx (44pin & 60pin tqfp 3.3v). I've found porting '84 ASM, C (even PC C for Linux), VB6 test code from windows to JAL no problem. You learn lots porting. If you are simply going to build a "one off " 100% clone of existing design and learn nothing, then maybe use 16F84. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist