this link explains a lot
http://www.seeedstudio.com/wiki/125Khz_RFID_module_-_UART