In a version of 8051 the crystal frequency is 12 MHz, find the time delay associated with loop section of the following DELAY subroutine. Consider the machine cycle lasts 12 clock cycles of the crystal frequency

DELAY: MOV R3, # 200

HERE: NOP

            NOP

            NOP

            DJNZ R3; HERE

            RET

This question was previously asked in
UGC NET Paper 2: Electronic Science 29 Oct 2022 Shift 1
View all UGC NET Papers >
  1. 0.5 milliseconds
  2. 1 millisecond
  3. 1.5 milliseconds
  4. 2 milliseconds

Answer (Detailed Solution Below)

Option 2 : 1 millisecond
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
8.8 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The crystal frequency of 8051 is 12 MHz .

The period of the machine cycle for 8051 system is calculated as follows:

12MHz/12  = \(1µs\)

Therefore the machine cycle for a system of 12MHz is \(1µs\).

Instruction Machine cycles Time to execute
DELAY: MOV R3; #200 1  1
HERE : NOP 1  1
NOP 1  1
NOP 1  1
DJNZ R3, HERE 2  2
RET 2  2
     

 

The time delay associated with the loop section of the DELAY subroutine is: \([ 200(1+1+1+2)]× 1 µs\)

 = \(200(5) × 1µs\)

 = \(1000 µs\)

 = \(1 millisecond\)

Hence option 2 is correct.

Latest UGC NET Updates

Last updated on Jun 6, 2025

-> The UGC NET Exam Schedule 2025 for June has been released on its official website.

-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.

-> The UGC NET 2025 online application form submission closed on 12th May 2025.

-> The June 2025 Exam will be conducted from 21st June to 30th June 2025

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Microprocessors and Microcontrollers Questions

More Digital Electronics Questions

Get Free Access Now
Hot Links: teen patti win teen patti sequence teen patti fun teen patti royal teen patti master apk