Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
\#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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started