Confused by IR pulses
ladyada has a discussion about ir pulses over on her page detailing the design of the TV-B-Gone Kit she sells. It might be of some use to you.

EDIT: There's a brand new tutorial on ladyada's site discussing how to build an IR decoder in even more detail, which has just been posted today: IR Detector