Hi, It's working now as it should, but: > 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???? Ah, sorry for not being clear. What I meant was that you can't select the PIC12F509 in IC-Prog as the PIC you're programming. You can program it though, but you have to select the PIC12C509 if you want to do so. By the way, I just noticed that I've also programmed a PIC12C509A by accident and it works just fine. "Alan B. Pearce" wrote: >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), -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist Website: http://members.lycos.nl/anthonyvh --------------------------------- Do you Yahoo!? Yahoo! Small Business - Try our new resources site! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist