L laxmid New Member Jul 13, 2010 #1 Hi, can you please help me to code using pic32? send me an example using pic32. Thanks & Regards, Laxmi
Hi, can you please help me to code using pic32? send me an example using pic32. Thanks & Regards, Laxmi
P Pommie Well-Known Member Most Helpful Member Jul 13, 2010 #2 Here you go, Code: unsigned char GetFifo(void){ unsigned char chr; while(FifoStart==FifoEnd); //if fifo empty then wait chr=*FifoStart++; if(FifoStart==FifoBuffer+16) //wrapped? FifoStart=FifoBuffer; //yes return(chr); } BTW, don't double post. Mike.
Here you go, Code: unsigned char GetFifo(void){ unsigned char chr; while(FifoStart==FifoEnd); //if fifo empty then wait chr=*FifoStart++; if(FifoStart==FifoBuffer+16) //wrapped? FifoStart=FifoBuffer; //yes return(chr); } BTW, don't double post. Mike.
L laxmid New Member Jul 13, 2010 #3 Thanks for ur reply. I dint get dis properly. Thanks & Regards, Laxmi