mossy173 wrote: > When I program a 12F675 in a PICKIT 1 with the following code, it doesn't > flash. I take this to mean it's stuck in the rampon loop, because it > flashes when i comment out that one method call. I have no idea why this > would be, or if it's the case--can anyone lend some insight?? Thanks!! For one thing, you've used the global variable "i" for two different things at the same time, once in rampon() and once in delay(). Since the delay(15) call always leaves it set to 15, it never reaches the value 30. Secondly, did you really want to declare i as "double"? That pulls in a whole bunch of floating-point library code that you probably don't really need. -- Dave Tweed -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist