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. the
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. the crystal frequency is 11.0592MHz. 1. find time delay? (Do the math) 2. find approximate delay? (Do the math) 3. find maximum delay? (Do the math)

\#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
Get step-by-step solutions from verified subject matter experts
