Re: PIC18F intermittant reset



Mook Johnson wrote:
"Anthony Fremont" <anyone@xxxxxxxxxx> wrote in message
news:139uuhsnk4f1m18@xxxxxxxxxxxxxxxxxxxxx

I assume you've tried a different chip just to rule out a bad part. Do
you have the watch dog disabled (WDT)? What about the brown-out
detect (BOD)? If you ran off the end of the program or jumped into
unused code space, a blank chip (at least 16F series) will wrap
around and look allot like a reset.

If it did jump to a blank address space, what whould that do? Assume
the OP code woul be 0x0FF? Reset like action?

On a 16F, the instruction 0x3FFF is "ADDLW 0xFF", on the 18F the instruction
0xFFFF is a "NOP". So yep, it will run until the PC wraps around and that
will likely look like a reset to you.

I have tried different chips and all act the same. The only thing I
cna figure is somewhere in the code an instruction is executing on
the A2D readings or something and causing a invalid condition which
makes the chip reset.

I don't know what conditions would cause the chip to reset though.

The watchdog timer (WDT), a brownout detect (BOD), MCLR assertion, or a
power on reset (POR). That's about it for a 16F. Looks like the 18F4520
adds stack over/underflow and an actual RESET instruction to the list.
That's going to be the only ways (discounting things like static zaps) of
causing an actual device reset.

Since you are using 3.3V, beware of the BOD.


.



Relevant Pages

  • Re: Tech: Zaccaria MPU not booting, gen 2 from a Farfalla
    ... Other times it will be on with power then go out. ... You're also forcing the RESET signal to the CPU, ... ROM doesn't disable this, so you have to force it yourself with a jumper ... selecting the wrong chip, or multiple chips at the same time. ...
    (rec.games.pinball)
  • Re: Tech: Zaccaria MPU not booting, gen 2 from a Farfalla
    ... Other times it will be on with power then go out. ... You're also forcing the RESET signal to the CPU, ... ROM doesn't disable this, so you have to force it yourself with a jumper ... selecting the wrong chip, or multiple chips at the same time. ...
    (rec.games.pinball)
  • Re: Midiverb ii issues?
    ... I tested all caps with an ESR meter and all is good. ... You might pay particular attention to Arfa's suggestion of the uP receiving the correct reset. ... Cut bus tracks til you find out which chip is fouling the line. ...
    (sci.electronics.repair)
  • Re: Help with MC68HC908AZ60 2J74Y chip please.
    ... that the reset circuit is not sending multiple pulses to the chip. ...
    (sci.electronics.components)
  • Re: 400/800 OS in a XL
    ... > I just took off the BASIC chip and launched my XL with it's original XL ... hardware by the Os/A ROM. ... it works well in the initial reset phase. ... zeros and pull the Os disable pin of the MMU low. ...
    (comp.sys.atari.8bit)