Hi members,
I am new to microcontroller programming. I want to program PIC 16F18345 microcontroller using C language on MPLABX IDE, XC8 compiler.
Please let me know good online tutorial where I can learn to program above said microcontrller in C language. I mean how to add headers, which header for what purpose and how to add libraries and what all libraries are available. I also need example sample program for pic16F18345.
One example, if i need to compile a program with pointer, an array what all needs to be done on mplabx ide selecting pic16f18345.
e.g.,
In the same way, how to write complex program? Please let me know the tutorials.
Thanks & regards,
Sarvanan.
I am new to microcontroller programming. I want to program PIC 16F18345 microcontroller using C language on MPLABX IDE, XC8 compiler.
Please let me know good online tutorial where I can learn to program above said microcontrller in C language. I mean how to add headers, which header for what purpose and how to add libraries and what all libraries are available. I also need example sample program for pic16F18345.
One example, if i need to compile a program with pointer, an array what all needs to be done on mplabx ide selecting pic16f18345.
e.g.,
C:
int a[5]={1,2,3,4,5};
void main(void)
{
int *p,i;
p=a;
for(i=0;i<5;i++)
printf(“%d”,*(p+i));
}
Thanks & regards,
Sarvanan.
Last edited by a moderator: