InfraRed Tx Rx

I have a tsop and a transmitter
I want to send a particular code from the transmitter and receive it on the tsop.

How do i achieve it?

@pavel