Tugrul GUCLU wrote : > I'm programming PIC18F458 to get temperatures.Problem is PIC > resets itself How do you know ? What are the sign of a reset ? > but after reset it goes up from the point where it get > reset. And how do you know that ? > I mean register values don't change. What "register" ? SFR's or GPR's ? And how do you know that the values don't change ? There are tables in the data sheets that tells you the "value" of the SFR's after different "kind" of resets. And I don't think the GPR's are changed at all by a *warm* reset (that is, without a power down/up). > How come this be? Well, are we realy sure of what "this" is right now ? > Program counter gets back to 000h... How do you know ? Anything special in your code that "signals" a reset of the PIC to the outside ? > but after reset it goes back where last stayed. And what are the sign of that ? Again, how do you know that the PIC is reset at all ? It could just as well be that your code jumps to address 0000h, we don't know right now, do we ? We havn't even seen the code... WDT, Vdd-spike, brownout, code bug could be other sources of a "reset". Jan-Erik. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics