Question: (3) It is desired that an array of twenty bytes of data (need FOR loop) stored in memory locations starting from 9000H (must use a
(3) It is desired that an array of twenty bytes of data (need FOR loop) stored in memory locations starting from 9000H (must use a pointer) be sent out though the serial port with even parity added as the 9 bit. Write a program using flowchart as a guide. Skip the baud rate generation instructions, (25pts.) (4) A 250 Hz (Mode 1), 50% duty cycle square wave is to be generated on P1.7 using interrupts. 1 MHz Clk (a) Write the main program that would set Timer 1 and the interrupt, and then force the first interrupt.(10pts.) (b) Write the ISR. Include the ORG statement with the proper vector address. Disregard overhead cveles. (10pts.) (5) Repeat question (4) for 5 kHz (Mode 2).(15pts.) EXTRA CREDIT (6) It is desired that an array of twenty bytes of data stored in internal memory locations starting from 30H be sent out to a device connected to the port 1 (PI) using the external interrupt 0. When the external device is ready to accept next byte the operator presses a switch to send a pulse to INTO/P3.2 as an edge triggered interrupt request. By following flowchart: (a) Write the main program. (Spts.) (b) Write the ISR with the ORG statement and switch de-bouncing. (5pts.) MAIN Initialize serial port and start baud rate clock Interrupts & Register Set pointer and counter Wait for interrupts ISR Get next byte and Get next byte and add 9 bit copy it to P1 Adjust Pointer Ok to Send? Last byte? YES YES YES NO Disable Ext O Interrupt Send the byte Back to main More? Flowchart for (6) Flowchart for (3) (3) It is desired that an array of twenty bytes of data (need FOR loop) stored in memory locations starting from 9000H (must use a pointer) be sent out though the serial port with even parity added as the 9 bit. Write a program using flowchart as a guide. Skip the baud rate generation instructions, (25pts.) (4) A 250 Hz (Mode 1), 50% duty cycle square wave is to be generated on P1.7 using interrupts. 1 MHz Clk (a) Write the main program that would set Timer 1 and the interrupt, and then force the first interrupt.(10pts.) (b) Write the ISR. Include the ORG statement with the proper vector address. Disregard overhead cveles. (10pts.) (5) Repeat question (4) for 5 kHz (Mode 2).(15pts.) EXTRA CREDIT (6) It is desired that an array of twenty bytes of data stored in internal memory locations starting from 30H be sent out to a device connected to the port 1 (PI) using the external interrupt 0. When the external device is ready to accept next byte the operator presses a switch to send a pulse to INTO/P3.2 as an edge triggered interrupt request. By following flowchart: (a) Write the main program. (Spts.) (b) Write the ISR with the ORG statement and switch de-bouncing. (5pts.) MAIN Initialize serial port and start baud rate clock Interrupts & Register Set pointer and counter Wait for interrupts ISR Get next byte and Get next byte and add 9 bit copy it to P1 Adjust Pointer Ok to Send? Last byte? YES YES YES NO Disable Ext O Interrupt Send the byte Back to main More? Flowchart for (6) Flowchart for (3)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
