What bigdogguru has said is right and you should follow the links provided by Kak111. I think, you should download the datasheet of the specific controller you are going to use. Download the reference manual as well and it shouldn't be too hard. This has been provided by Kak111.