These projects require the MPLAB IDE and Hi Tech C for PIC10/12/16 to be installed, available at MicroChip.com

Here is the ready-to-go source zip file for a text scroller project for our BoardZero setup.
MPLAB8 Project "a 16f88 BoardZero - How to drive a sure SPI LED Matrix panel.".



This board is a very simple 8 bit 'training circuit' that can be added to or simplified as required.
Quite a bit of these Tube video uses a 'Board Zero' and this codepack...

One step at a time project. Flash all ports in combinations to test functionality....


Step 1, start MPLAB IDE.


Step 2, Create a new project using the Wizard. Press [alt] (P)roject (W)izard.



  Step 3, Choose Hi-Tech C (for now)...
 
#define uchar unsigned char
#include<htc.h> //Always include this 'header' file. Definitions for Port and peripheral addresses.
#include "delay.c" //Always include this file that is standard delay routine definitions.

void main()
{
CCP1CON=0;


OSCCON = 0X72;
// ANSEL=0;
// i2 = 1;
//ON=1;
TRISB=0; PORTB=255;
//ADCON0=0x8E; //AN4
//DCON1 = 0b00000011; // //ON=1; TRISA=0;
nRBPU=0;
uchar OutVal=0x55;
TRISB=0;TRISA=0;
while(1)
{
PORTB=OutVal;
DelayBigMs(250);
DelayBigMs(250);
DelayBigMs(250);
OutVal ^=255;
PORTA=OutVal;
DelayBigMs(250);
DelayBigMs(250);
DelayBigMs(250);
}
}




  Skip Navigation Links  




   

LightDiodeFooter