Check this thread out. You might get some hints...

http://www.picbasic.co.uk/forum/show...1692#post91692