im now taking final project, making an autonomous robot using encoder to determine the distance it has move.
can the PIC act as a counter?
shafiz WROTE:thanks...
the problem is now to program the pic..can somebody tell me how to program pic to make a counter..i preferring to use c programming.please help me!!!
if(RB0==1) counter++;
data=((data<<1)|RB0)&0x03;
if(data==0x01) counter++;
shafiz WROTE:thankz for the reply..but what if i want to use the pic timer as a counter..is it possible?..and how to write the code?thankz again.
Users browsing this forum: No registered users and 4 guests