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. It also demonstrates the reset vector which is at address 1FFH for PIC16C54,55 3FF for PIC16C55 and 7FF for PIC16C57 by placing an infinite loop at address 0 which is never entered because a jump at the reset vector jumps directly to the Start Label.

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

Filename Version Description
tut6.pjt 1.0 MPLAB Project
tut6.asm 1.0 PIC16C5X 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

PIC16C54

PIC16C55

PIC16C56

PIC16C57

LED8

NETLABEL