Hi!
Reset will cause starting your code from beginning. In most likely position, of course, Murphy's law really is phundamental.
. You can not simulate it, it's a hardware design error. In MBLAB sim. everything works fine. I made this mistake, then became suspicious about feeding signal to MCLR input. Changed pin and - voila - everything worked splendidly. I asked Microchip about the phenomena, they admitted that if signal amplitude on MCLR rises above recommended values, everything might happen. Anyway, after connecting a diode (1N4148 in my case) no more mysteries took place.
Btw, it was signal from MIC amplifier cathching whistle sounds.
Power-up timer makes no harm. Without it i'd use software timed wait loop before doing anything serious. Helps a lot! Especially in case of cheap and noisy power supplies...
The timer delays all processor activities for some time after powering on. Just like having a cap connected to reset pin but...now you can use reset pin for other purposes. I think it is a useful feature.


.


Bookmarks