04-27-2012, 10:58 PM
The objective of this assignment is to enhance your knowledge about;
Basic concepts of System programming.
Serial port Communication
Assignment
Attached please find a slightly modified version C-language program (ASSGN2.C) extracted from course handouts (page 127-129). In this program, we are taking input from user and writing these input characters to COM port in a Self Test mode i.e. in self test mode the output of the UART is routed to its input. So you receive what you send.
Part a) Read and Study the given program (ASSGN2.C) carefully and answer the following question. (02 Marks Each)
S.No. Question Answer
1 Which COM port is being used in the given program?
2 Which Key (when pressed) will terminate program execution?
3 What is the size of Word Length (in bits) being used in this program for data transmission?
4 What is the size of Stop bits being used in this program?
5 Is parity being used is this program? If Yes, then state Even or Odd.
6 What is the Baud rate being used is this program?
Part b) Execute the attached program (ASSGN2.C) and Take a snapshot after typing the following statement on output screen. (Note: You may get a warning while opening the port… Click Ignore) (08 Marks)
“I am a Student of VU and my ID is [Type your ID here]”
Basic concepts of System programming.
Serial port Communication
Assignment
Attached please find a slightly modified version C-language program (ASSGN2.C) extracted from course handouts (page 127-129). In this program, we are taking input from user and writing these input characters to COM port in a Self Test mode i.e. in self test mode the output of the UART is routed to its input. So you receive what you send.
Part a) Read and Study the given program (ASSGN2.C) carefully and answer the following question. (02 Marks Each)
S.No. Question Answer
1 Which COM port is being used in the given program?
2 Which Key (when pressed) will terminate program execution?
3 What is the size of Word Length (in bits) being used in this program for data transmission?
4 What is the size of Stop bits being used in this program?
5 Is parity being used is this program? If Yes, then state Even or Odd.
6 What is the Baud rate being used is this program?
Part b) Execute the attached program (ASSGN2.C) and Take a snapshot after typing the following statement on output screen. (Note: You may get a warning while opening the port… Click Ignore) (08 Marks)
“I am a Student of VU and my ID is [Type your ID here]”
Allah Help those Who help them Selves
mileys44:
mileys44:
