This idea might be worth a try..
http://www.picbasic.co.uk/forum/show...1881#post91881