| ??? 01/05/01 23:36 Read: times |
#7882 - RE: Serial port and basic |
Well, in so far as transmitting out to a PC or printer, you can buffer the output ince the IR Remote packet is of fixed length and you can frame it from the onset of IR detect until your on chip ram buffer of samples is full. Then you can dump the buffer serially to the PC or printer. This will get you started.
I'd suggest when implementing this that you wait for a IR detect, and then sample as quickly as you can in BASIC 52 first, then later in ASSEMBLY and load samples into a buffer. When the buffer is filled, link to a routine that serially dumps it via RS232 to a PC or printer; the baud rate won't matter since its buffered and no longer live data. When the buffer is transferred, reinitialize it and start looking for the next IR detect. Note that most IR Remotes will auto-repeat some keys as long as their held down. When you initiate a buffer capture, press the remote key momentarily, just enough to get one frame off. As you collect your sample buffer you can go online and read the documentation of IR Remote controllers and see how close the data you read is to the expected protocol. As you collect and analyze over and over, you'll form the next approach in your experiment. Good Luck, sounds like fun. :) aka j |



