> I have a problem using 16C621 A parts. I finished development w/ >F84's now I'm converting to the '621 and checking out the code. I added a >step to set the CMCON register to 0x05 (all digital comparators). It works >great with my emulator (ICE2000 w/ PCM16XC0), but when I program them >individually, they seem to get stuck somewhere after initialization of RAM, >ports and option register and before the main code. > Any thoughts? When I migrated code from the 'F84 to the 16C622 I had a similar problem. I fixed it by turning the comparators off (0x05 will give you a comparator on A1 and A2 which might be causing the problem). MOVLW 0x07 ;Turn comparators off and enable MOVWF CMCON ;pins for I/O function ...rest of port A set up here James Hillman -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu