I'm using a magnetic cardswipe reader which is read using two signals: clock and data. (The cards swiped are encoded in ABA Track 2 format). The clock pin is connected to an interrupt pin on the PIC and the data is connected to a standard input.
The idea is that each time the clock pulses, the input state of the data pin is read and this data added to a buffer for processing.
How would I create a buffer that can be used to store the incoming data and be checked for a full cardswipe?
I assume that there is too much processing involved to process a full cardswipe in the interrupt routine so a secondary processing function would have to be used? Any ideas on how I could implement this?
Thanks for the post, I've looked at the mcr.c file and it works well for my cardswipe BUT I need it to work without using the card present signal. Any ideas on how I could achieve this?
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Jul 28, 2010 10:47 am
What is the manufacturer and model number of your reader ?
Post a link to the website for the reader.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum