Hi,

You would probably get more answers in a C forum rather than the Pic Basic forum since the code you posted is in C language. Also I doubt Pic Basic supports the PIC30F..

so you will have...