Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Timer in 8051 Given: MOV TMOD, #01H ; set timer0 to mode 1 MOV TMOD, #10H ; set

ID: 3676023 • Letter: T

Question

Timer in 8051

Given:

MOV TMOD, #01H               ; set timer0 to mode 1

MOV TMOD, #10H               ; set timer1 to mode 1

MOV IE, #8A                         ; timer0 enable, timer1 enable, global enable

MOV TL0, #55                       ; load timer0 with value 0x4455

MOV TH0, #44

MOV TL1, #77                       ; load timer1 with value 0x6677

MOV TH1, #66

SETB TR0                              ; start timer0

SETB TR1                              ; start timer1

1. Calculate the time that will elapse before timer 0 interrupt is triggered

2. Calculate the time that will elapse before timer 1 interrupt is triggered

Explanation / Answer

1. 17493

2. 26231

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote