Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Pic32 example in c

Status
Not open for further replies.

laxmid

New Member
Hi,

can you please help me to code using pic32?

send me an example using pic32.

Thanks & Regards,
Laxmi
 
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top