This may help you in setting up the USB.
http://www.picbasic.co.uk/forum/cont...USB-SD-LOGGING