Hi, On Sun, Jun 9, 2013 at 7:54 PM, Satya Prakash Prasad <satyaprakash.prasad at gmail.com> wrote: > c = inb(index); > printf("%X", c); Not every IO Port is meant for reading. It can be used for writing and control codes. Regards.