Mark, 1. Check out the a/d section of the 675 in the datasheet. The register names are different and it is 10 bit so you will have to justify the results one way or the other. I usually use the upper 8 bits and give up the lower 2. Makes the result not jump around as much. 2. Change the binary numbers from xxxxxxxxb to b'xxxxxxxx'. 3. There isn't a section of shared ram on the 675 like the 671. It's all that way. Move your _temp regs down into the range of 20h to 5fh. 4. Also check out the extra config bits on the 675 and set them as you need them. Shouldn't take long at all to convert the code. Bill -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Mark Richards Sent: Monday, December 22, 2003 6:20 PM To: PICLIST@MITVMA.MIT.EDU Subject: [PIC:] Migrating assembly code from 12C671 to 12F675 I've inherited some assembly code, and I need to make it work with the 12F675. It is working code, I just need to migrate to the F675. I have very limited experience with Microchip parts; I'm learning, but it's a steep curve. This is not a commercial project, it is for academic use. If anyone is willing to help I would greatly appreciate it. I have attached the assembly code in case anyone wants to take a look. Thanks, Mark Richards Applied NanoBioScience Center ASU Main Campus Mail Code 4004 Tempe, AZ 85287 Phone: (480) 727-8163 Fax: (480) 727-8283 Email: Mark.Richards@asu.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads