On Oct 14, 2004, at 1:07 PM, Anthony Van Herrewege wrote: > > If MPLAB simulates the code and everything works, can I be 100% sure > that the code will behave the same way on the PIC? I'm asking since > the PIC12C509A is an OTP device, so I have to be pretty sure that it > will work the same as simulated when I burn it. > I don't believe that the fuse bits are simulated much, or at all. So you could burn a chip with the fuses wrong and have it not work at all. Likewise, I doubt whether the simulated clock 'drifts' as much as the internally generated clock, so you could get timing problems as well. And of course mplab simulation is much slower than realtime, so it's pretty useless at detecting problems that might be timing dependent. BillW _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist