IC card reader-writer has wide applications in many fields such as finance and traffic. The task of this article is designing a kind of general purpose IC card reader-writer. This reader-writer takes AT89C52 and MF RC500 as core device. It includes interface circuit of contact interface and contactless interface of IC card, forms complete hardware system. I designed printed circuit board according to the schematic diagram of the circuit, made actual hardware. I wrote some functions that can be called using C language and Windows API functions at the host port, which control the reader-writer to implement the function of controlling, reading from and writing to IC card by means of serial communication. I wrote programs using C51 language at the reader-writer, which response to the commands from the host and implement operations to IC card. |