Tutorial 6: Reset

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 master reset and also that on a Master Reset the main registers are unchanged. This is used to facilitate a Master reset counter with a startup value set by the Power on reset.

Download FEATURE62X_Tutorial6.zip and unzip into folder <your path>\Tutorial 6

Filename Version Description
tut6.pjt 1.0 MPLAB Project
tut6.asm 1.0 PIC16F62X Assembler code
tut6.hex 1.0 Precompiled HEX
tut6.lst 1.0 Precompiled LST
tut6.vbb 1.0 Virtual Breadboard simulation

Running the Simulation

Open tut6.vbb and press RUN.

Code Walk Through

Features Demonstrated

TRISB/PORTB

Reset Vector

MCLR wakeup from sleep

Power on reset

MCLR reset

Components Used

PIC16F628

LED8

NETLABEL