Re: help - weird intermittent resets
"Paul B. Webster VK2BZC" <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Organization | Webster Medical Pty. Ltd. |
| Message-ID | <[email protected]> |
On Sat, 2005-07-30 at 14:13 +1200, David McNab wrote:
> I'm getting a weird and frustrating problem with a pic18f252 that
> intermittently resets itself.
> I've reduced my test program to the bare essentials - pseudo-code is:
> - clear trisc.0
> - while true
> - reset portc.0 # turn on piezo buzzer
> - wait 1ms # long enough to click buzzer
> - set portc.0 # turn off buzzer
> - wait 249ms
You are using a piezo disc? Not an actual "buzzer" with driver
electronics included?
If it is a "bare" piezo, try a resistor in series and see what happens
- about 1K.
--
Cheers,
Paul B.