24 Threads found on edaboard.com: Delay Using Atmel
what is the time output you are getting... adjust the delay to be approximate to your requirement...
you get accurate value of delay only in assembly program and not in C.. In C program you get nearest value....
So its more of trial and error method.... just run theled for required time and stop it for 5 sec and again start the led blink... k
Microcontrollers :: 08.02.2011 09:55 :: ckshivaram :: Replies: 3 :: Views: 3153
ImageShack? - Online Photo and Video Hosting
This is the circuit diagram of the project im working on. I have a few queries.
1) My Leds connected to P0.0 and P0.1 are not glowing. Is the resistance value too high?
2) The lcd backlight glows but no characters are displayed.
3) Are the 2 reset pins
Microcontrollers :: 27.04.2011 22:48 :: ppoonamk :: Replies: 5 :: Views: 408
Need your advice:
I'm using atmel eeprom AT24C16A.
I write 15bytes into the eeprom page 0 at word adress of 0x0000, no problem, verify by read-back.
Next, after 10ms delay, I write only 5 bytes into page 0 but at word adress of 0x0003. This time I read back and found that it has overwritten my first 5 bytes (...)
Microcontrollers :: 29.06.2004 03:45 :: tom12sg :: Replies: 2 :: Views: 1545
I am using usb controller atmel89c5131a to sense my stethoscope. My controller kit is communicating with pc as standard Microsoft Human Interface Device and atmel provided DLL.
My problem is when there is only single device(My stethokit). there is no data loss and no delay but as soon as I connect other USB (...)
Microcontrollers :: 13.07.2007 06:24 :: nscpl :: Replies: 0 :: Views: 446
You can use four bipolar transistor and one look up table and one delay routine.
L297/L298 is expensive solution comared to four trasistors and few lines code.
Microcontrollers :: 12.08.2007 13:53 :: ace1903 :: Replies: 10 :: Views: 2258
Hello guys, i am newbie here, was doing a project regarding infrared sensor autogate...
what i wish to ask is how to write the command for the situation stated below?
When a IR receiver received a signal from IR transmitter for more than 3 sec, only the DC motor will move CW or CCW? else, the motor will be remained sta
Microcontrollers :: 23.08.2008 17:48 :: keigo911 :: Replies: 4 :: Views: 718
this is main program
Dot Matrix Display Controller
Serial EEPROM: AT24C256
Matrix Size: 16 Row x Column
Character programmable via: PS-2 Keyboard & Serial DB-9 (using custom data downloader)
RTC format hh:mm:ss and DD:MM:YY
#define F_CPU 1474560
Microcontrollers :: 17.07.2010 01:34 :: Fragrance :: Replies: 19 :: Views: 6607
hi everybody.i hv a problem with my is a counter prgrm.i hv 2 calculate like 99,98.........00 bt it is giving o/p like 9(1st display),then it goes off n then 9 on 2nd display.m using atmel 89C51 controller n using keil code is
Microcontrollers :: 18.08.2010 05:09 :: rohini.embsystem :: Replies: 0 :: Views: 944
basically time delay is based on code optimization in Keil compiler (how it optimize the loops)
If you need accurate delay, it is better to use timers
read this application notes
Microcontrollers :: 18.08.2010 11:33 :: bassa :: Replies: 2 :: Views: 1727
Hi....the only available 8051 microcontroller board in my lab is one that is using atmel 89c51ed2 or intel 8051....cant really change the clock frequency....
Are you using 89C51ED2 in X2 mode? If not try putting it in X2 mode when programming or by setting Bit-0 of CKCON0 register at run-time. This will double th
Microcontrollers :: 09.05.2011 16:20 :: CMOS :: Replies: 9 :: Views: 763
input is given by keypad or PC. if it is keypad then you have to write a program for keypad scan... if it is through PC then you have to write a serial communication program and blink the LED. Please tell how is the input given.... which IDE and compiler are you using????
---------- Post added at 10:49 ---------- Previo
Microcontrollers :: 23.06.2011 01:19 :: ckshivaram :: Replies: 15 :: Views: 1435
hey which compiler r u using
im giving some code here
if u got some compiler depended errors,u have to rectify it
but the basic concept im giving here
void delay(unsigned int i)
unsigned int j;
Microcontrollers :: 07.08.2012 13:19 :: kvtal :: Replies: 1 :: Views: 326
You need a delay routine to see the led effect!!!
blink_led: ldi R16,0b11111111
Microcontrollers :: 31.12.2012 18:38 :: nagkiller :: Replies: 14 :: Views: 370
I am trying to control an led matrix(5X7) using an 74HC595 latch+shift registers and atmega32.
I checked out several codes on the was quite easy.
So i tried making up my own code using atmel studio. But the output pins show zero output whatever serial data i send.
(The multimeter showed zero volts with GND as reference)
Microcontrollers :: 12.02.2013 02:36 :: aditya.adi2293 :: Replies: 0 :: Views: 570
Perhaps you can help me:
I have just realized a Clock and timer with AT89C2051
in fact it is a clock and a downcounter and other little features.
(the display is on 6 seven-segments led display using MAX7219)
in fact I have realized the downcounter routine using a delay of
1s; Would their not be a clever way to count the (...)
Hobby Circuits and Small Projects Problems :: 11.05.2003 12:46 :: BENOIT :: Replies: 8 :: Views: 1864
can you tell me what is wrong with the following code. In that code when analog comparator output is high the counter should work but it is not working. I checked output of the T flag and analog comparator they are high then also counter is not working. Can you correct the code
I am also facing probs when I am using 'rcall'
Till now I am a
Microcontrollers :: 07.04.2005 23:41 :: yogi :: Replies: 5 :: Views: 680
I use CodeVision both for the program development and the chip programming. For programming I use the STK200 cable. While ATmega163 and ATmega16 I program without problems, the programmer sometimes hangs when programming the ATmega162 EEPROM. The only cure was to set the delay Multiplier (in the Code Vision programmer settings) equal 2. The pro
Microcontrollers :: 21.04.2005 01:52 :: vdaniel :: Replies: 5 :: Views: 2903
i think it's better to use a short delay ( 10mlS ) after each interrupt for checking that the interrupt is true not noise , you can do it by disabling EX0 after interrupt ( during interrupt routin ) then call delay for 10mlS and check input pin for being 0 , then do what you wamt , and don't remember to enable interrupt before RETI ins
Microcontrollers :: 11.05.2005 16:22 :: hm_fa_da :: Replies: 9 :: Views: 1097
I am using AT89C4051 to utilize it as an AD Converter for an application as a two digit Voltmeter. I am following the circuit design given in the following address: .
I have written a code in C and it does not work and also i am not able to compile, the compiler says something
Microcontrollers :: 12.12.2005 06:41 :: vinash :: Replies: 1 :: Views: 884
Hi guys, i need c code example for AT89s51 or 52 or 53 using .....Keil C or SC51 compiler. Need the basic one, like LED blinking, delay, loop, PWM, Interrupt......
Starting to learn how to program the atmel 8051.
plz help, thanks....
Microcontrollers :: 17.08.2006 00:02 :: wakaka :: Replies: 7 :: Views: 3877
CodeVision AVR is really cool c compiler for AVR MC. I am using it from last 3 yrs. U will get ready made C function for delay LCD, I2C. Also u can perform all mathematical calculations (Including tri,log, exp).
Microcontrollers :: 21.02.2008 12:38 :: ashishvdeshpande :: Replies: 6 :: Views: 1512
I need to generate the different bit stream with constant frequency and at the sm time i need to provide different delay for each of the bit stream...
for ex I have clk ,data ,reset with bit sequence 101,001,110 with pulse width of 500ns with delay of 250ns,100ns and 200ns,
How to generate these sequences using (...)
PC Programming and Interfacing :: 17.07.2008 03:25 :: rampat :: Replies: 3 :: Views: 552
I am having an nmos switch, that i want it to shut off when my comparator gives "0". But i want it to keep on NOT conducting a bit more than the output of the comparator. So as you see in the attached pic, my idea is to delay the output of the comparator, and with an AND function to get a signal that gets 0 in the crucial moment, and stay
Analog IC Design and Layout :: 24.04.2011 07:09 :: geozog86 :: Replies: 7 :: Views: 317
I've got a problem with USART communication on ATmega16, I'm using USB-RS232 converter (AVR-CDC ), with newest drivers and firmware, but simple echo doesn't work :( atmega is clocked by 11.0592MHz crystal, so there should be no errors.
Here's the code:
#define FOSC 11059200
#define BAUD 9600
Microcontrollers :: 30.01.2012 17:53 :: kmail890 :: Replies: 5 :: Views: 777