What don't you understand?
**broken link removed**
explains everything pretty clearly, and even has an RS232 example which you should be able to adapt to your needs as midi is serial data.
Just a side note, please don't re-post your threads, if you think it's in the wrong sub-forum just leave it alone, if it is a moderator will move it.