00001
00002
00003
00004
00005
00006 #include "piccolo_all.h"
00007 #include "xlcd.h"
00008 #include "delays.h"
00009
00027 void DelayFor18TCY(void) {Delay10TCYx(2); }
00028 void DelayPORXLCD(void) {Delay10KTCYx(60);}
00029 void DelayXLCD() {Delay1KTCYx(60); }
00030
00031 const rom char szoveg[]= "PICCOLO projekt";
00032
00033 void main(void) {
00034 DISABLE_ALL_ANALOG();
00035 OpenXLCD( EIGHT_BIT & LINES_5X7 );
00036 while( BusyXLCD() );
00037 putrsXLCD(szoveg);
00038 while( BusyXLCD() );
00039 SetDDRamAddr(0xC0);
00040 while( BusyXLCD() );
00041 #if defined(__18F14K50)
00042 putrsXLCD("PIC18F14K50 MCU");
00043 #else
00044 putrsXLCD("PIC18F4550 MCU");
00045 #endif
00046 while(1);
00047 }