actually i want to control a stepper motor with infrared remote. im using HT6221 Multi-Purpose Encoders IC... from this IC for each button press its transmitting 7 bit of binary values through infrared. my doubt is in receiver section that means in microcontroller where i have to connect the receiver IR and how to program it?? can i connect that IR receiver in RX pin?? or in external hardware interrupt pin (INT0 or INT1)....?? pls help me friends... i'v attached transmitting section circuit....
connect the IR to the EXTERNAL interrupt line and whenever the data is RXed on the IR line, 8051 will get an interrupt. Now, take care of the timing sequence for decoding IR keycodes on the reception side...