Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
162 kaklik 1
#include "D:\KAKL\PIC\AX25smpl\AX25smpl.h"
2
 
3
#define  TXo PIN_C0           // To the transmitter modulator
4
#include "AX25.c"             // Podprogram pro prenos telemetrie
5
char AXstring[40];            // Buffer pro prenos telemetrie
6
 
7
void main()
8
{
9
   int n;
10
 
11
   setup_adc_ports(RA0_RA1_RA3_ANALOG);
12
   setup_adc(ADC_CLOCK_INTERNAL);
13
   setup_spi(FALSE);
14
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
15
   setup_timer_1(T1_DISABLED);
16
   setup_timer_2(T2_DISABLED,0,1);
17
 
18
   n=0;
19
   while(true)
20
   {
21
      sprintf(AXstring,"Counter: %U\0", n++);  // Convert DATA to String.
22
      SendPacket(&AXstring[0]);
23
      delay_ms(1000);
24
   }
25
}