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 by master reset. This is used to facilitate a Master reset counter with a startup value set by the Power on reset.

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

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

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

PIC16C71

PIC16C715

LED8

NETLABEL