Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
#include "E:\@Dokumenty\pic\test_lcd_873\main.h"
2
 
3
#DEFINE LCD_RS          PIN_B1      // rizeni registru LCD displeje
4
#DEFINE LCD_E           PIN_B2      // enable LCD displeje
5
#DEFINE LCD_DATA_LSB    PIN_B4      // pripojeni LSB bitu datoveho portu LCD displeje (celkem 4 bity vzestupne za sebou)
6
#INCLUDE "MYLCD.C"
7
 
8
 
9
void main() {
10
 
11
   setup_adc_ports(NO_ANALOGS);
12
   setup_adc(ADC_CLOCK_DIV_2);
13
   setup_spi(FALSE);
14
   setup_counters(RTCC_INTERNAL,RTCC_DIV_2);
15
   setup_timer_1(T1_DISABLED);
16
   setup_timer_2(T2_DISABLED,0,1);
17
 
18
   lcd_init();
19
   printf(lcd_putc,"\fStart 1 ...");
20
 
21
   while(true)
22
   {
23
      output_high(PIN_C1);
24
      output_low(PIN_C2);
25
      delay_ms(500);
26
      output_low(PIN_C1);
27
      output_high(PIN_C2);
28
      delay_ms(500);
29
   }
30
 
31
 
32
 
33
}