Hi, i'm new to PIC, hope you can help me here. I'm using a 16F877A microchip
1) I'm using mikroC, and my program starts as follow:
#include <pic.h>
#define pb1 RA0
void main()
{
......
}
Problem i'm having is when i build, the error comes out saying "cannot open include file pic.h. I downloaded a header file 16F877A.h and pasted it in Mikroelectrica>include, then I replace the program header with 16F877A.h but it comes out a very long error.
What am I suppose to do?
2) I don't understand the following code I saw from a sample:
PORTA = 0b000000;
Is it the same as PORTA = 0;
3) How does using a 8Mhz or a 20Mhz oscillator affects the PIC?
4) I read from a training book that switches and LED should be connected to a resistor or else it would short, is that true? cause i was told that 16F877A has internal resistors.
Thank you for helping.
1) I'm using mikroC, and my program starts as follow:
#include <pic.h>
#define pb1 RA0
void main()
{
......
}
Problem i'm having is when i build, the error comes out saying "cannot open include file pic.h. I downloaded a header file 16F877A.h and pasted it in Mikroelectrica>include, then I replace the program header with 16F877A.h but it comes out a very long error.
What am I suppose to do?
2) I don't understand the following code I saw from a sample:
PORTA = 0b000000;
Is it the same as PORTA = 0;
3) How does using a 8Mhz or a 20Mhz oscillator affects the PIC?
4) I read from a training book that switches and LED should be connected to a resistor or else it would short, is that true? cause i was told that 16F877A has internal resistors.
Thank you for helping.