I found out how to calculate instruction cycles for PIC..now I m wondering what that $+1 or $+2 etc actually mean..is that denotes no of instruction cycles to be added or subtracted from the goto ins cycle??? (always 2 right?)
it is a relative goto : program counter goes to the current place +1, +2 or -xx
you can ask for -127 to +128 instructions before or after the current place.
It is similar to short jump in x86 programming. It defines the no. of bytes to jump go forward or backward. If you post a code then it can be explained.
I want to learn the pic programming which method of programming is more easy ; "BASIC" or "C" ?
also please suggest basic pic programming guide for starting PIC programing.
I want to learn the pic programming which method of programming is more easy ; "BASIC" or "C" ?
also please suggest basic pic programming guide for starting PIC programing.
If you are going to use PICs I strongly suggest you use C
There is a great downloadable book with illustrations (or there was) on the mikro web site
Their C compiler is also free to download that works with it.