>Anyway, I messed around with the code a bit, but it kept simulating >the same as before (except for the weird GPIO4 thing), so I decided >to program my lastest HEX file in the PIC12F509 again. IC-Prog kept >giving errors (it doesn't support the 12F509, you have to use the 12C509), Ahh, another case of not giving all the information. Now are you sure the CONFIG bits are the same? Are you sure that the watchdog is being turned off? This was another thing that I thought about earlier, but dismissed because you said it worked in the simulator. What happens if you set the simulator to 12C509, and run the 12F509 code without re-assembling it???? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist