Search Engine

8051 Timer Delay

Add Question

1000 Threads found on 8051 Timer Delay
It is not such difficulty, use 8051 timers Here link for "8051 Time delay/timer routine calculator " 8051 Time delay/timer routine calculator / 8051 software / Downloads : 8051 Microcontroller Projects AVR PIC Projects (...)
have any function code for 8051 , like use sine cosine tan ..
Dear All, Am working on 8051 timer Interrupt Programming. Specs: timer 0 Mode 1. Need to blink an Led for 30 seconds. Xtal Freq: 11.0592Mhz. I've pasted the code below. Could you please identify the errors in it. If so could you give me the complete code for it. It'l be a great help. Thanks. code
hey guys, i tried to delay tyristor using timer. i used to use delay(5);. delay(4);, and delay(3); it works, but my LCD that shows adc value is not shows it well. so i want to use timer for delay. my tmod is 0x10. my xtal is 11.0592MHz but the problem is it seems the (...)
Manoj, Can you specify the timer mode which you are using for this and crystal frequency Also refer search for "calculator for 8051 family by kaushik". This simple program you can generate 8051 code bassa
Can someone help me understand why TH1 and TL1 are set to -230? void Inittimer1() { char tmp; tmp = TMOD; tmp &= 0xCF; //for 8bit auto loader mode tmp |= 0x20; // T1M1 = 1, T1M0 = 0 TMOD = tmp; //for timer1 interrupt at every 250uS TH1 = -230; //to be calculated according to the system clock TL1 = -230; TR1 = 1;
Besides knowing 8051 assembler, you should also know, how the 8051 hardware works, You may want to check the 80S51 datasheet. There's no auto reload in 16-Bit timer 0 mode. timer 2 has it, in contrast.
check this Downloads / 8051 software / 8051 Time delay/timer routine calculator : 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes
hi, how can i use mode 0 of timer in programming? for eg: if i want to produce a delay of 10 micro seconds in mode 0, what should i give in TH0 and TL0 registers? please explain...
could any one say , how calculate 10 milli sec delay using timer in lpc2129
go through this following link for timer 1 and timer 0 operation second question i think the timer 2 is also 16 bit timer which can produce a maximum delay of .07 sec de
go through the following link for tutorial
I said "the only feasible way" with a reason. It's impossible to run 8051 interrupts at 500 kHz. 50 kHz will be demanding yet.
I am trying to produce delay of 1/20 s (50 ms) using timer/counter 0. Crystal frequency is 11.0592 MHz and machine cycle is 11.085?s. for 50ms the machine cycles required is 46079 decimal. The counter is to be loaded with 65536-46079=19457=4C01Hex TH0=04CH and TL0=01H. SETB TR0 initiates timing and Polling TF0 gives the end of the required t
Hi Friends, How to predicit a minimum timer delay for each microcontrollers? how to use set 1sec timer delay in pic18 processor? Thanks in advance!
Xtal=11.0592MHz,time delay of 5ms(milliseconds).solution 11.0592MHz/12 ,the counter counts up every 1.085us.clocks= 5ms/1.085us =4608 clocks,TL and TH the value 65536-4608 =60928=EE00H.TH=EE.Assuming I want time delay of 360 seconds how can I calculate it using this formula
The TMOD or timer Mode Special Function Register (SFR) simply determines the mode of either timer0 or timer1 when enabled/started. The purpose of the TCON or timer Control SFR is to enable/start or disable/stop either timer0 or timer1. Therefore without enabling/starting (...)
Increase the delay and check it... For 8051 series if u use 8 MHz crystal... Write a delay fuction like, void delay(unsigned int time) { while(time--); } then in main function call delay(30000); Before making high and before making low.... This is approximately almost 1 sec delay... (...)
check this timers | 8051 timer | timer Programming
hello ...i need some help in gnerating time delay of exact 5 second does this code is corect..?? but in simulation and in hardware it does not work ... _______________________________________________________________________ #include unsigned char Ali={0,1,2,4,8,16,32,64,128}; sbit led=P1^1; unsigned char k,i; void delay() { TMO
Hi Guys, I've been trying to build a simple power up delay circuit for 110 volt skimmer/pump on my salt water fish tank. My issue is that in a power failure water levels change. The sump water level rises a few inches. When power comes back on my auto top off pump is confused and pumps extra water in and my skimmer kicks on with the wrong water
1.which timer is selected when I enter tmod=00h 2.once I start the timer will it automatically stop when rollof occurs 3.if I doesn't clear tr flag will the timer automatically restart after roll off 4.if I clear tf flag will the timer automatically start 5.if I do not reload the initial value and clear the tf flag does (...)
hi,all what is a duration time of delay and delay2 below: if oscilator frequency is :22.118MHZ of my 8051 kit delay:mov r5,#0ffh h1:mov r3,#0fh h2:djnz r3,h2 djnz r5,h1 ret delay2:mov r5,#0ffh h11:mov r3,#55h h22:djnz r3,h22 djnz r5,h11 ret thanks in advance
I am using a timer delay with polling method. Every thing works fine execpt that when implementend on my dev board, the true delay is twice that of Keil and Proteus simulator. Every crystal frequency setting is correct. Any ideas. I tried to check the X2 in the hardware byte option in flip but then my UART communication was effected and (...)
Hi, Iam using ESA51E board, having 80C51BH Ucontroller forn intel. In my code iam trying to Implement real time clock using timer When i check for register values in Win51E they wont get updated, while other values does...(like PC, DPTR...etc). im also using 8255 The change of values takes place in ISR, which is not happening. Interrpt is nt ge
I'm new to the PIC world and would like some help with my code. In using a PIC12F683 (MikroBasic code) to TURN ON an output (GP2) when two inputs (GP0 and GP1) are both high. If both inputs are HIGH, the output GP2 will go HIGH and remain in that state for 2 minutes then TURN OFF. I am looking for pointers on how to RESET the 2 min timer (delay
Hi, please can anybody help me to solve the below problem. i have been facing this problem since 3days. i.e., cclk=12mhz, pclk=3mhz. i have created a time delay of 2 seconds and used as delay function to blink and led. when i debugged this code, after 2seconds i.e., the timer counter value doesn't reset even though i used the (...)
I am using LPC1768 IC and external crystal 12 MHZ . I am using timer and i want to calculate exact time timer.c file ***************************************************************************** ** Function name: delayMs ** ** Descriptions: Start the timer delay in milo seconds ** until (...)
Hy. I want to construct a 555 timer that has a delay for 20 seconds and then it turns on for 1 second and it turns off for 20 second and repeats in a loop...
Hi every one, I have too much trouble with delay calculation, here my doubt is for ex: some controller working with some frequency(ex: 48MHZ or 84 MHZ some thing else). I want to provide 100 ms delay in my program with for loop or while loop, How to calculate the max count for that. please any one can understand my problem and provide some
I did not checked this on datasheet, but if the uC has a PWM module, you could do that with a minimal code. Yes, the uC has a PWM module. but similar kind of functionality (as that of above code) I implemented on 8051. (using timer not as interrupt but just as a delay by observing the timer flag) but I am not
i m using 89S52 to serialy communicate with ericsson T28 mobile. i simply printf the at command like this printf("AT"); and wait for the input using scanf scanf("%s",myInput); It is working fine. The problem is that sometimes the mobile doesnt respond to the commands and after executing the scanf, and I cannot printf
Have a look at the following example: Assembly delay for an Intel 8051 microcontroller: delay: MOV R0, #ffh ; move 255 to Register 0 (# = immediate) NEXT: NOP ; do whatever stuff here DJNZ R0, NEXT ; decrement R0, check for 0, jump to NEXT RET ; return from subroutine And now for the 'C' code for the Intel (...)
Hi Every One I bought 2x16 LCD screen With LDE backlight it's called SOLOMON and has a sticker wrote on it LM101BSYLU and the LCD has 2 integerated ICs and 16 pin connector I have tried to search for datasheet for it on the internet but i couldn't find any thing Can some one PLEASE Help Me to know how to connect it :?: bye
Hello dear edaboard members ! im stuck with some output issues off this C-code, tryin to build a rather simple temp-sensor and want it to have an output on the serial interface in plain asciicode... but i cant figure out whats wrong, the code is origin from this site:
I have a assembly with a temperature sensor. is another problem. The picture is attached to my display. no temperature. problem is the source code? I can help someone the code is : //program for temperature monitoring system written for PIC16F877A // //author: keshava murali // //version1 // //bellow 30sC LED switches OF
Hi. I'm new to assembly language.I'm doing running light using 25 leds and pic18f8720. Testing on proteus. I'm unable to make it work. Kindly see the attached source code and proteus dsn file. Hope someone can correct my mistakes here. Using INT0 as reset interrupt. timer delay is 1 sec. Source asm, hex and dsn files here: [url=htt
when one interrupt is going on , and in between if another interrupt condition occurs , then after that is completed , then the program goes to the previous interrupt ? like , i gave a 5 minute delay for a program during that time another condition occurs like button press or something , after the procedure according to the button is completed , w
hi guys, i am using pic16f883 micro controller to generate pwm signals to control rgb led, pic has two built in pwm channels, but i need channels to control all three.... please help me how to generate third channel(any options using timers or can i make use of two ccp channels to generate third one.... below is my code using mikro c compiler..
Hi I am trying to encourage my kid to save money in a money box. What I want to build is a money box and as the coin is entered it rolls down two differenrt shoots which as they pass different points an led will light and then go off or stay on as it completes its journey to the bottom of the box and then maybe sets off a buzzer when it hits the
I have a Jeep Wrangler and the design of the Jeep means that the side wings (fenders) are wider than the headlamps. I live in the countryside and the width of the vehicle is very difficult to judge by oncoming motorists. The Jeep is fitted with what US drivers would call side markers in the side of the front fender. These are amber lights which
How to calculate the duration(in seconds) between hardware interrupts received at INT0 and INT1 pins in 8051 MCU with 11.0592 MHz crystal?
Hi, I have been working with the internal oscillator of PIC30F5011, and I followed these steps for calculation of timer /**************************************************************************************** * timer delay Calculations used: * 1. Crystal Source Frequency Fosc * 2. timer (...)
if we see in arduino we have crystal oscillator in its produce square wave of frequency about 16 mhz or something question is how it would be related to input.explain me basically with some examples.thank you in advance
i am getting problem while converting decimal number to hexadecimal number. i am doing small tool for timer delay calc. so how to convert decimal to hex and hex to decimal.
hi, i am trying to establish rs232 connection but something strange is happening here, #use rs232(baud=9600,parity=N,xmit=PIN_A0,rcv=PIN_A1,bits=8, stop=1,invert) void main() { char a; while(1){ a=getc(); putc(a); } } this code works but i receive junk characters, my baudrate and my osc setttings are correct, my
I need help for lcd coding to show word such as 'Welcome' I hope someone can help me to solve the problem. Detail about my coding is i'm going to do a project dat tittle is parking guide system i'm using switch when the switch is press the red led will light on that's means the parking if filled. and the lcd will show +1 example i have 5 parking
HI, I wrote code for LED blinking start turn ON LED wait for some time (delay ) turn OFF LED // LED blinking c code //start //turn ON LED // wait for some time (delay ) // turn OFF LED include // header file for 8051 include<delay.h> // header file for delay (...)
hi, im using the timer newly and i dono how to create a delay value for 1sec. please anyone help me how to program or what the value i should need to give for the timer registers. and im using a 12MHz crystal. 8051 timers use 1/12 of the crystal frequency regardless of machine cycle. Thus (...)