Just done a quick search for a bit bang serial routine, the one I found seems quite simple.

Thanks Sphere.