Question: This is an 8051 C program to toggle only bit P1.5 continuously every 50 ms. Use Timer 0, mode (16-bit) to create the delay. 1.

This is an 8051 C program to toggle only bit P1.5 continuously every 50 ms. Use Timer 0, mode (16-bit) to create the delay. 1. find time delay? 2. find approximate delay? 3. find maximum delay?

This is an 8051 C program to toggle only bit P1.5 continuously

\#include void Tom1Delay(void); sbit mybit=P1^5; void main(void) while(1) mybit=-mybit; //toggle P1.5 Tom1Delay(); //Timer 0 , mode 1(16bit) \} (a) Tested for AT89C51, XTAL=11.0592 MHz, using the Proview32 compiler void rompelay (void) \{ TLO=0XFD; //load TLO THO=OX4B; // load THO TRO=1; //turn on TO while (TF0==0); //wait for TF0 to roll over TRO=0; // turn of T TO TFO=0; //clear TF0 3

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!