The reset characteristics of registers is different depending on the type of reset. The tutorial demonstrates that on a power on reset the status register is detectable different to a wake up from sleep by master reset. This is used to facilitate a Master reset counter with a startup value set by the Power on reset.
| Filename | Version | Description |
| tut6.pjt | 1.0 | MPLAB Project |
| tut6.asm | 1.0 | Assembler code |
| tut6.hex | 1.0 | Precompiled HEX |
| tut6.lst | 1.0 | Precompiled LST |
| tut6.vbb | 1.0 | Virtual Breadboard simulation |
Open tut6.vbb and press RUN.
|
TRISB/PORTB | |
|
Reset Vector | |
|
MCLR wakeup from sleep | |
|
Power on reset | |
|
MCLR reset |
Components Used