TLcd3Pin.c

The program shows how to use the 3-Pin Lcd-Library (by Gerhard Burger).



//----------------------------------------------------------------------------------------------------------------------
// This program is an example how to use the C2C-Pic-Compiler of Pavel Baranov
//
// Author: G. Burger
// Version 1.0
// Compiler version: ?
// Date: 15. May 2003
// Comments and necessary improvment, pleas mail: GBurger_Pic@yahoo.com
// 
// Required hardware: any PIC16F84-board (4MHz), a shift-register and a LCD-display (see attached picture)
// Required files:   
//                  - this file                    TLcd3Pin.c 
//                  - LCD-Library                  Lcd3Pin.c
//                  
// Further files:   - Schematics                   TLcd3Pin.gif
//
// Description:
// The program shows how to use the 3-Pin Lcd-Library. The library can be helpful if you need the other pins for your
// application. 
// On the other side the libary can be used for debugging if more or less all pins are used by the application.
//
// Library:
// Generation of a library is included in folder lib
//-----------------------------------------------------------------------------------------------------------------------

#include "Lcd3Pin.c"


void main(void)
{
  disable_interrupt( GIE );
  clear_bit( STATUS, RP0 );
  LcdSetup();
  delay_ms(250);
  LcdLine1();
  LcdWrite("Hello world");
  int count = 0;

  while (1==1)
  {
    LcdLine2();
    LcdClearLine2();

    LcdWriteInt(count);
    delay_ms(250);
    count++;

    clear_wdt();

  }
}



http://www.sourceboost.com/home.html

Copyright © 2002-2006 SourceBoost Technologies