Question: MICROPROCESSOR SUBJECT ARM Cortex MO+ microprocessor is used as a main controller for an automatic washing machine. The machine has 3 mode of operation, that

MICROPROCESSOR SUBJECT

MICROPROCESSOR SUBJECT ARM Cortex MO+ microprocessor is used as a main controller

for an automatic washing machine. The machine has 3 mode of operation,

ARM Cortex MO+ microprocessor is used as a main controller for an automatic washing machine. The machine has 3 mode of operation, that is WASH, RINSE and SPIN. . . Mode SPIN will turn ON SPIN-Mode LED and then drain the water. After fully drain the water, motor will turn on and rotate clockwise (CW) for 3 minutes, Mode RINSE will turn ON RINSE-Mode LED, fill the tab with water, and then the motor will turn on and rotate clockwise (CW) and counter-clockwise (CCW) for 25 times (alterate at every 3 second, with 1 second pause in between). Mode WASH will turn ON WASH-Mode LED, and go through RINSE and SPIN mode alternately for 3 times. . The machine operation was controlled and connected to the input and output through a 16-bits register named "CTRL-REG", located at address 0x2000100E. Figure 1 shows detail function for each bit inside the "CTRL-REG'. 0x2000100E b14-115 613 612 611 610 69 68 67 66 60-b5 b14-115 b13 b12 b11 b10 b9 b8 b7 b6 b0-b5 '01' motor ON (CW), *10 motor ON (CCW). '00' or '11' motor OFF. '1' Turn-ON Buzzer, 'O' Turn-OFF Buzzer - 'I' Water-InLet Valve ON. 'O' Valve OFF -'1' Water-Outlet Valve ON. '0' Valve OFF *1' WASH-Mode-LED ON,'0' WASH-Mode-LED OFF. "I' RINSE-Mode-LED ON, '0' WASH-Mode-LED OFF. I'SPIN-Mode-LED ON, O' WASH-Mode-LED OFF. -'1' Water-Full Sensor ON, '0' Water-Full Sensor OFF - '1' Water-Empty Sensor ON, 'O' Water-Empty Sensor OFF - UNUSED always read as '000000'. Figure 1 CONFIDENTIAL 192011/BEE2223 Based on the given information; (a) Draw a flowchart and write a coding for a subroutine named 'TIMER_3M to get a 3 minute timer. (Assume that delay 1 second is available by calling 'Delayis' subroutine). 15 Marks [CO3, PO3, C5) (6) Draw a flowchart and write a coding for a subroutine named "MD_SPIN' to comply with the mode SPIN [8 Marks] [CO3, PO3, C5) (c) Draw a flowchart and write a coding for a subroutine MD RINSE to comply with the mode RINSE [8 Marks) [CO3, PO3, C5) (d) Finally, by using the subroutine in (a), (b), and (c) above, write a complete program. 14 Marks) (CO3, PO3, C5) ARM Cortex MO+ microprocessor is used as a main controller for an automatic washing machine. The machine has 3 mode of operation, that is WASH, RINSE and SPIN. . . Mode SPIN will turn ON SPIN-Mode LED and then drain the water. After fully drain the water, motor will turn on and rotate clockwise (CW) for 3 minutes, Mode RINSE will turn ON RINSE-Mode LED, fill the tab with water, and then the motor will turn on and rotate clockwise (CW) and counter-clockwise (CCW) for 25 times (alterate at every 3 second, with 1 second pause in between). Mode WASH will turn ON WASH-Mode LED, and go through RINSE and SPIN mode alternately for 3 times. . The machine operation was controlled and connected to the input and output through a 16-bits register named "CTRL-REG", located at address 0x2000100E. Figure 1 shows detail function for each bit inside the "CTRL-REG'. 0x2000100E b14-115 613 612 611 610 69 68 67 66 60-b5 b14-115 b13 b12 b11 b10 b9 b8 b7 b6 b0-b5 '01' motor ON (CW), *10 motor ON (CCW). '00' or '11' motor OFF. '1' Turn-ON Buzzer, 'O' Turn-OFF Buzzer - 'I' Water-InLet Valve ON. 'O' Valve OFF -'1' Water-Outlet Valve ON. '0' Valve OFF *1' WASH-Mode-LED ON,'0' WASH-Mode-LED OFF. "I' RINSE-Mode-LED ON, '0' WASH-Mode-LED OFF. I'SPIN-Mode-LED ON, O' WASH-Mode-LED OFF. -'1' Water-Full Sensor ON, '0' Water-Full Sensor OFF - '1' Water-Empty Sensor ON, 'O' Water-Empty Sensor OFF - UNUSED always read as '000000'. Figure 1 CONFIDENTIAL 192011/BEE2223 Based on the given information; (a) Draw a flowchart and write a coding for a subroutine named 'TIMER_3M to get a 3 minute timer. (Assume that delay 1 second is available by calling 'Delayis' subroutine). 15 Marks [CO3, PO3, C5) (6) Draw a flowchart and write a coding for a subroutine named "MD_SPIN' to comply with the mode SPIN [8 Marks] [CO3, PO3, C5) (c) Draw a flowchart and write a coding for a subroutine MD RINSE to comply with the mode RINSE [8 Marks) [CO3, PO3, C5) (d) Finally, by using the subroutine in (a), (b), and (c) above, write a complete program. 14 Marks) (CO3, PO3, C5)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!