Try MikroBasic by mikroelectronica they have support ie library for connecting an sd card directly to a pic via a few resistors.

There are plenty of examples on their forum. and fat is supported

The interconnect is on post 4