Re: >I wrote an application for 16C711 and it has been tested and working fine. >Now my company wants to 16C712 because it's cheaper. > >I used the same code but recompiled it to a 16C712 hex file. (BTW, I use >Hi-Tech's PICC). But the new chip has some weird behaviors; some functions >are working but some are not. It seems to me that I need to edit the code in >order to migrate from 16C711 to 16C712. Have you recompiled the original code and tried _it_ on a 16C711? Perhaps the compiler has changed (CONFIG arguments, header files, etc.) and it's not your source code that's off ... In my cases where a change to the code _was_ necessary (e.g. migrating from 16C77 to 16F877), it's revolved around oscillator settings and analog-vs-digital input configurations. Just some thoughts. -- ______________________________________ Andrew E. Kalman, Ph.D. aek@pumpkininc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics