hello,
I am new to AVR, pls inform me how could the programs code given on your website could be compiled and how could their hex file be generated.
If any tutorial of this is present pls also give its link
thanks
hello,
I am new to AVR, pls inform me how could the programs code given on your website could be compiled and how could their hex file be generated.
If any tutorial of this is present pls also give its link
thanks
Hello Mustafa,
Use AVRStudio4 for compiling the code given on Engineer garage for AVR microcontroller. Google AVRStudio4 user guide for tutorial & procedures.
Thanks alot
I have programmed the AVR, http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit but LED's are flashing continously, while when i switch them to Gnd all are Off, and when Vcc is supplied all are High.
While when connected to Pot, they flash with different values.
What might be the problem now?
Thanks alot,
I compiled and burn the program on the chip, i am facing a problem that the LED present at the output are continously blinking if i provide some voltage on the adc pin, otherwise if i connect this pin to VCC or GND, they are continously high or low.
Pls guide what could be the problem now.
Thanks again
Hi Ghulam,
I think there is some issues with the reference voltage to the ADC. Have you connected the pin32 (adc reference) to VCC as shown in the circuit?
Well, try this also. Remove the capacitor and directly connect the reference pin to VCC.
I tried it all but the program is not running. Also when i simulated the circuit in Proteus it is working correctly, while not on the bread board.
Also another simple circuit has the same problem
Pls guide what migt be the problem and how it could be resolved.
Thanks
Hi Gulam,
1. what external oscillator you are using. Kindly mention.
2. Give the capacitors values used at external oscillator.
3. check with your harware connections, if possible share your schemtic to verify.
Hello,
I am using the following cofiguration for the atmega16 controller.
I think that the last reason may be this issue.
Kindly check and inform if this is the main issue.
Thanks
Hello Amrith
Thanks for replying, i have mentioned the link which i am following to develop the circuit. Actually i doesnt contain any external oscillator.
Thanks
Hi Ghulam,
I have gone through the link mentioned by you, i think external oscillator is missing in the circuit between pin no. 12 & 13 & there is no internal oscillator enabled in the code. Suggest you to put an oscillator with value 8Mhz and try.
Please correct me if i'm wrong any where.
Thanks very much
Two thinks to ask before implementing.
1- this program was simulated on Proteus and was running well without the oscillator
2- Is there any prblem in the fuse bits
Pls reply so that i may implement it now
I have added 4Mhz crystal now, but still facing the same error.
I have tried some other program which is running correctly.
So the problem, i think is in the code. http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit
Kindly check it and inform me, why the ports are continously blinking.
Thanks
i think that the coder has send all the 10 bits to port b this is the reason that the port is flashing. What do you ppl think?
An important observation:
When the input voltages are less than 2V this error doesnt occour!
Hello,
I have found this program and is working wel for AVR ATmega16 for ADC conversion and wanted to share
Hi Ghulam,
Strange issue. I'm working on it, will let you know if any solution found. Till then keep trying to solve it.