--- Mike Harrison wrote: > On Thu, 3 Jun 2004 10:44:16 +0200, you wrote: > > >John Flynn wrote : > > > >> I'm new to PIC could anyone let me know the > details of > >> what is requried to port code from a PIC16C74 to > a > >> PIC16F74 microcontroller. > >> > >> Can I use the hex file targeted for a PIC16C74 on > a > >> PIC16F74, if not what do I neet to do to get it > to > >> work? > > > >Hi ! > > > >First I've not read and compared the data sheets > for these PICs > >(that's your homework), but what you at least > should do, is > >to re-build the hex file for the new target PIC. > Maybe you will > >get some signs of problems already in the assembly > process... > > > >Jan-Erik. > > Code should be no problem - the only difference may > be the config bits. > Just to clarify, it is actually the PIC16C74A that I am using. I've been looking at the datasheets and found that the only difference is in the Code Protection bits (CP1-CP0) in the PIC16C74A and only CP0 in the PIC16F74. If the Configuration Word for the PIC16C74A had CP1 and CP0 both set to one, would the exact same hex file work on the PIC16F74? Can I examine the HEX file to determine the state of the config register for the PIC16C74A ? I would prefer not to change or recompile the code at all. Thanks, J ____________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body