Tutorial 1: Port Counter 'Smoke Test'

The port counter is my embedded 'Hello World' equivalent.  Simply increments PortB but makes sure all is working properly and nothing "Blows Up" due to bad wiring or something.

Download FEATURE5X_Tutorial1.zip and unzip into folder <your path>\Tutorial 1

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

Running the Simulation

Open tut1.vbb and press RUN.

Code Walk Through

Note: The asm file is compiled only for the pic16C54 but will run on any of the PIC16C5X devices. However when loading the file, Virtual Breadboard will detect the list = p16C54 line in the .lst source code and will warn that there is a processor mismatch. The warning does not effect the execution of the code.

Features Demonstrated

TRISB/PORTB

Components Used

PIC16C54

PIC16C55

PIC16C56

PIC16C57

LED8