Hello everybody, currently i'm doing my final year project, my project is involving serial ports (RS232)... the question is, i want to write a program that will operate on the data i give.. lets say

if i put data 'a' from my computer
the Port B0 will became high

if i put data 'c' from my computer
the Port B0 & B1 will became high

please everybody, at least if i put 'a' in the virtual terminal it will go as desirable...

please note that i'm very new at c language and i just manage to do a simple program currently..

i hope you all can be my reference.. thanks in advance