Look here for an article from Elektor about IR remote protocols: **broken link removed**
Here's a PIC remote control for SONY: **broken link removed**
Just search Elektroda for more info.
You can also look at Elektor-Electronics for articles http://www.elektor-electronics.co.uk/ln/ln.htm
Let me know if you need one of the articles from Elektor.
I don't know that you yourself make your TV remote or you decode a TV remote.
If you make yourself, you could use PT2248(IR transmitter) & PT2249 (IR receiver). Datasheet is available on internet using google to search (keyword: PT2248 datasheet).
If you want to decode a TV remote, you should use google to search them.
Google link: