Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void main(){
unsigned char Count=0;
unsigned char Dummy;
TRISA=0;
ADCON1=0x06;
TRISC=0x10;
SSPSTAT=0x40;
SSPCON=0x31;
while(1){
LATAbits.LATA2=1;
SSPBUF=Count++;
while(!SSPSTATbits.BF);
Dummy=SSPBUF;
LATAbits.LATA2=0;
DelaymS(100);
}
}
Here is a link for **broken link removed**.. It covers nearly everything to do with PIC programming, from turning ON and OFF LED to UART to SPI to LCD and others..hayee said:Hi everyone,
i want some tutorials on spi in C.i am using two pic16f877a controllers.any simple tutorials like blinking leds.i have no concept of spi.please help me out if u guys have any information.
Thanx