Show the c software function that automatically selects the


Design an automatic baud rate selector. The input capture system will be used to measure the first three positive logic pulse widths and the first three negative logic widths. To implement this problem on another computer, simply connect to an available input capture. Your software will then choose the smallest pulse width as the communication bit time. For example, if the smallest bit time is 400 E cycles (which falls between 625 and 313), then the baud rate should be 4800 Finally your software will initialize the SCI to communicate at that correct baud rate (eight bit data, one start, one stop and no parity). Specify the E clock rate. You may assume the baud rate is 600, 1200, 2400, 4800, or 9600.

a) Show the hardware connections between a three-wire ±12 V RS232 full-duplex line (TxD, RxD, and Gnd) and the microcomputer. Any RS232 interface chip may be used. Give chip numbers but not pin numbers.

b) Show the appropriate data structure that holds the information of the above table. The organization of this information should be easy to understand and easy to change (e.g., add more baud rates, change of E clock frequency). This data structure will eliminate the need for a complex if then or switch code in Part c.

c) Show the C software function that automatically selects the correct baud rate and initializes the SCI. Gadfly synchronization will be used. Input/output functions for the SCI are not required.

Request for Solution File

Ask an Expert for Answer!!
Mechanical Engineering: Show the c software function that automatically selects the
Reference No:- TGS01468198

Expected delivery within 24 Hours