mag card reader
2006-02-10 by G B
Hello, With the mag card reader I am using, You have a strobe that tells you something is about to happen, then a clock and a data pin for the transfer. The clock depends on the speed the card is swiped. Even if you have a motorized version, the speed is not that predictable. Upon the attention strobe I set up the ints for detecting the clock pulses for each channel. I had to reprogram the int direction flag each transition (low-to-high then switch to high-to-low) int so I could get both states. The fun comes in when you write code to detect swipes in both directions (data comes in backwards)! Glen