main.c


1
/******************************************************************************************/
2
/*                                                                                        */
3
/*              LCD_Testprogramm mit PIC 16F1829                     */
4
/*                                              */
5
/******************************************************************************************/
6
#include <16F1829.H>
7
#include "stdlib.h"
8
#include "stdio.h"
9
#include "string.h"
10
#include <lcd.h>
11
12
#fuses PUT,BROWNOUT,NOLVP, NOMCLR
13
#fuses INTRC_IO, NOWDT, NOPROTECT
14
#use delay(clock=16000000)
15
16
17
/**********************************************************************************
18
*  M A I N
19
**********************************************************************************/
20
void main(void)
21
{
22
    char msg[]="hallo";
23
  set_tris_c(0x00);   //output
24
25
  LCD_init();
26
  
27
  while(1) // endless loop
28
  {  
29
    delay_ms(5);  
30
    //LCD_out(msg);
31
        LCD_RS=DAT;
32
    LCD_write4Bit(0x30);
33
    }//end while
34
}//end main