Question: Timer in 8051 Given: MOV TMOD, #01H ; set timer0 to mode 1 MOV TMOD, #10H ; set timer1 to mode 1 MOV IE, #8A

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

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!