15 Mar 2013

WEEK 8 ( project progress )


Tittle             : 2D Display
Software       : Proteus 7 Professional
Coding          : MPLAB IDE



#include <htc.h>
#include <pic16f877a.h>
#define _XTAL_FREQ 20000000 // Set the oscillator frequency to 20MHz

void main ( )
{        TRISB = 0x00; //Port B in/output
          TRISC = 0x00; //Port C in/output
          TRISD = 0x00; //Port D in/output
          TRISE = 0x00; //Port E in/output
          while (1)      //Always running
          {       RB0 = 0;
                   RB1 = 0; 
                   RB2 = 0; 
                   RB7 = 0; 
                   RC0 = 0; 
                   RD0 = 0; 
                   RD1 = 0;
                   RD2 = 0; 
                   RD3 = 0; 
                   RD7 = 0; 
                   RD4 = 0; 
                   RD5 = 0; 
                   RE0 = 0;
                   __delay_ms(500); //delay for 500 ms

          }
}










1 comment:

  1. Can you please send me the source code and circuit diagram of this project using PIC micro controller my ID is rizwanfbd1@gmail.com

    I shall be very very thankful to you

    ReplyDelete