lcs81
Member level 3
p24fj128ga010.h
I am doing some project using PIC MCU.
But, i find that some discepencies between two program at below.
Program 1:
---------------------------------------------------
#include "p24fj128ga010.h"
int counter;
int main(void)
{counter=1;
TRISA=0;
while(1)
{
PORTA=counter;
counter++;
}
return 0;
}
------------------------------------------------
Program 2:
-------------------------------------------------
#include <16F873.h>
#use delay (clock=4000000)
void main ()
{
char i,j,k;
i=2;
j=3;
k=i+j;
}
--------------------------------------------------
why in program 1 #include continue with "xxxxx.h" and the program 2 is continue with <xxxx.h>. aren't the same?
is both c language right?
they use diffrent compiler?
in program1, the port A is set as output and all output is high. How can we make some of the output of portA is low?
I am doing some project using PIC MCU.
But, i find that some discepencies between two program at below.
Program 1:
---------------------------------------------------
#include "p24fj128ga010.h"
int counter;
int main(void)
{counter=1;
TRISA=0;
while(1)
{
PORTA=counter;
counter++;
}
return 0;
}
------------------------------------------------
Program 2:
-------------------------------------------------
#include <16F873.h>
#use delay (clock=4000000)
void main ()
{
char i,j,k;
i=2;
j=3;
k=i+j;
}
--------------------------------------------------
why in program 1 #include continue with "xxxxx.h" and the program 2 is continue with <xxxx.h>. aren't the same?
is both c language right?
they use diffrent compiler?
in program1, the port A is set as output and all output is high. How can we make some of the output of portA is low?