on pour assium prtion Attempt each question onty oce Question 1: 120 Marks] CLO-02 Write an assembly language program t...
on pour assium prtion Attempt each question onty oce Question 1: 120 Marks] CLO-02 Write an assembly language program to count all non-zcro bytes in the entire scratch pad of general -7FH) of 80S1 microcontroller. The counting value is stored in accumulator A, and each non-zero bvte is cleared (set to value zero). 9s Question#2 120 Marksj CLO-03 ?3 onsider a disk mounted on a DC motor that has a variable speed. There are 4 small holes (hl, h2, h3 and h4) on the disk (90 degrees apart). In each revolution, the system generates four pulses (one pulse against each hole). The disk of motor is connected with 8051 such that pulse of each hole is sensed at oin P3.dw while revolving. Spged of the motor is reasonably large such that the pulses are of very short duration rite an assembly language program to calculate speed of motor in RPM (revolutions per minute) Maximum value of speed.can be 2400RPM Store the lower byte of answer in RO and higher in R1 of bank0. (Hin First calcutate number of reyolutions per second and then find speed)
on pour assium prtion Attempt each question onty oce Question 1: 120 Marks] CLO-02 Write an assembly language program to count all non-zcro bytes in the entire scratch pad of general -7FH) of 80S1 microcontroller. The counting value is stored in accumulator A, and each non-zero bvte is cleared (set to value zero). 9s Question#2 120 Marksj CLO-03 ?3 onsider a disk mounted on a DC motor that has a variable speed. There are 4 small holes (hl, h2, h3 and h4) on the disk (90 degrees apart). In each revolution, the system generates four pulses (one pulse against each hole). The disk of motor is connected with 8051 such that pulse of each hole is sensed at oin P3.dw while revolving. Spged of the motor is reasonably large such that the pulses are of very short duration rite an assembly language program to calculate speed of motor in RPM (revolutions per minute) Maximum value of speed.can be 2400RPM Store the lower byte of answer in RO and higher in R1 of bank0. (Hin First calcutate number of reyolutions per second and then find speed)