Welcome
Hello Friends,
Welcome to my web portal. After my long play with the amazing little chips called microcontrollers, I decided to help all those who are also interested. I knew that the information on the net was very scattered and a beginner soon find himself/herself lost. So I came up with this !!! I decided to keep things simple,organized and in one place. I have tried to go in such a manner that a complete beginner to the subject may keep up. If you are having any types of problems or just want to help others please join our forum . Also check out our shop.
If you find this site useful please drop a comment or e-mail me, I would be glad to hear from you.
Avinash Gupta
avinash@extremeelectronics.co.in
News
Feb 16, 2010
xBoard v2.0 Launched !
New version of our popular AVR development board is now available to purchase! This board is based around 40 PIN Atmel AVR ICs like ATmega32 and ATmega16. It has onboard Motor Controller, LCD Module, RF Module etc. It can be easily programmed by USB Port. The Kit comes with many tutorials and sample program. Nice development system to learn Microcontroller programming and development of a variety of projects. This version is optimized for small hobby robotics. And don't forget to avail the introductory discount of Rs. 100 ! (Limited Period Offer)
xBoard v2.0 : Advance Development Board For AVR ATmega32 |
Dec 1, 2009
xBoard MINI v2.0 Launched !
An easy to use development board for 28 PIN Atmel AVR Devices. The board has LCD, Remote Control, Keypad, Real Time Clock, Serial Communication, Temperature Sensor etc. It comes with easy to understand tutorials and source code. Read More ...
xBoard MINI v2.0 |
---------------
May 1, 2009
eXtreme Burner PIC v1.0 Launched !
An easy to use programmer with USB Connectivity for latest PIC18F Micros.
eXtreme Burner PIC - USB Programmer for PIC Micros |
---------------
April 26, 2009
eXtreme Burner 51 v2.0 Launched !
The improved version of our popular programmer for 89S series microcontroller is available!
eXtreme Burner 51 v2.0 - USB Programmer for 89S52 89S51 Micros |
---------------
Jan 23, 2009
USB AVR Programmer v2.0 Launched !
This is the latest and Improved version of our popular Programmer for AVR Series MCUs.
USB AVR Programmer v2.0 |
---------------
Jan 1, 2009
eXtreme Burner 51 : Preview
eXtreme Burner 51 - USB Port based programmer for AT89S51 / AT89S52 MCU from Atmel |
---------------
21 Aug 2008
xBoard - AVR ATmega32 Based Development Board Launched. xBoard is a powerful yet easy to learn Development Board powered by ATmega32 Microcontroller. It has many integrated features which make it far ahead of competitors. May be you are looking for a perfect board for robot control or just learning tool for AVR MCUs it right for you. Take a look at its official website.
xBoard - AVR ATmega32 Based Development Board |




great work started
June 10th, 2008 at 6:42 amcontinue with it
Thanx…
June 20th, 2008 at 11:10 am…njoy
Nice tutorials for AVR micros
June 24th, 2008 at 2:51 pmThanx Binu!
June 25th, 2008 at 12:42 amNice work!!!!
July 10th, 2008 at 6:00 pmThx a lot!!!
Nice work!!!!
July 22nd, 2008 at 6:38 pmThx a lot!!!
thank you lot
July 22nd, 2008 at 6:40 pmGreat work… please carry on!
July 28th, 2008 at 9:57 amgud work dude
September 11th, 2008 at 2:32 amcarry on
i’ll surely ask 4 help from u
Hi Avinash
good work your tutorial are very useful
September 13th, 2008 at 7:18 amcan please provide a link for downloading avr studio 4.0
Hi,
Bittu
ThanX
see
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725
for downloading AVR Studio. You need to register before downloading !
September 16th, 2008 at 3:20 amHi Avinash, I have a question: I’m using a Atmel ATmega169P AVR. Could you tell me what I need to do in order to connect the AVR to my computer (the AVR has a USB port) and download programs into it?
September 23rd, 2008 at 12:50 pmhi avinash….
September 23rd, 2008 at 3:20 pmit’s me rakesh….can u remember me..be in contact yaar…
by d way…nice work…just continue it..
@stef
Hi,
The ATmega169P does not have a USB interface. Maybe you are talking about some development board. It may be having a USB to Serial Convertor by using a FT232 chip.
If you can tell me if you have the chip only or any board I can help.
ThanX
September 24th, 2008 at 5:27 amdear Mr. Avinash,
October 2nd, 2008 at 1:32 pmIn the avr tutorial you have shown a target board for ATmega8. But i want for AT mega 32L. Kindly send or publish the schematic for it. I am just a novice at MCUs.Also tell the correct oscillator crystal for it.
@ronie
The schematic will be same for ATmega32L you have to find proper pins for Vcc,GND,AVcc,AGND, XTAL1,XTAL2, reset etc using the pin configuration given in start of the datasheet. The rest is same. Or you can go for a
http://xboard.extremeelectronics.co.in/
October 3rd, 2008 at 3:37 amwhich is a readymade dev board with many features. And combined with our USB AVR Programmer you will jump start AVR programming withing hours!
dear Mr. Avinash,
October 7th, 2008 at 12:14 pmIts a great job that you are providing the hard to find electronic components to we electronics enthusiasts. But I want to give you a suggestion regarding addition of one more feature in your valueable service. When we create any big electronic circuit then every time it is not possible to cut the connections of vero board and do the job. It would be of great help if you start designing and sending PCB as per customer’s requirements.You can collect the design by asking customer to send a scan copy of the PCB layout and then do as per need.
regards.
Thanks Adhiraaj For you suggestions.
October 8th, 2008 at 3:55 amso whenever you will be starting the pcb designing service then kindly let me know as i am about to get my hands into a C band and S band sattelite receiver. As we are in college it is not possible for us to get any equipments and place them somewhere.
October 10th, 2008 at 2:09 pmGreat site, the AVR tutorials will be very usefull for me! Thank you and keep the good work!
November 11th, 2008 at 4:13 pmthanks Felipe !!!
November 11th, 2008 at 4:56 pmwe required the burgstrip (male or femail
November 21st, 2008 at 3:31 pmcan u suggest any part no.
November 21st, 2008 at 3:38 pm@Atul
See
November 22nd, 2008 at 7:39 amhttp://shop.extremeelectronics.co.in/index.php?cPath=24_28
For Burgstrip Connectors
How can I build an elecronic cct that can store 220V AC for a period of 1 2minutes
December 2nd, 2008 at 2:54 amthanks
nice work…keep it up
December 13th, 2008 at 10:44 amthe tutorial is very easy to understand…
December 17th, 2008 at 5:56 amgood!!
i’ve subscribed this page…
thanx..
go go more ttorials..
Hi Deen
Thanks !!!
December 17th, 2008 at 11:07 amMore tutorials comming up …
So enjoy!
hey can u pls give some example programs so that we can undustand better ………….. pls provide us wid more number of examples
December 23rd, 2008 at 9:27 pmHi Raghu,
Thanks for your suggestion. I have given example program in each topic where required. But sure I will increase the no of example program and also add some complete projects in near future so that they are more helpful.
December 24th, 2008 at 9:44 amhey u jus rock man ….keep gng ……happy new year
December 30th, 2008 at 4:52 pmHello Raghu,
Thanks a lot !!!
Happy New year to all my friends.
December 30th, 2008 at 5:38 pmI am very interest to microcontoller program
January 2nd, 2009 at 10:46 amHi my friend please look at http://www.mikroe.com
There is a pretty good C Compiler.
microC PRO
I already use mikroC for PIC
January 5th, 2009 at 2:15 amhi avinash now i am using atmega 32 i dumped usart program .its not working i am using 8MZ crystal.if its new ic its default low fuse byte 1 mZ for internal RC oscillator. Now i want to set fuse byte for 8mz external oscillator which value i have to use please help me out..
January 10th, 2009 at 1:49 pmHello Kiran
New ICs are shipped with Fuse Setting to use the internal 1MHz crystal. To configure it to use external crystals you have to set the FUSE bits. Pls see the following page for fuse bits setting for external crystals
http://forum.extremeelectronics.co.in/viewtopic.php?f=2&t=24
It is valid for enabling external crystals greater thean 1MHZ on ATmega8,ATmega16 & ATmega32
Pls tell me which programmer software are you using so that I can tell u how to set fuse bits correctly coz work settings can BREAK ur MCUs !!!
January 11th, 2009 at 9:54 amI am using Code Vision AVR compiler to program my atmel mega 32 MCU i am adding 12 MHz crstal externally to the circuit.Can you tell me what will be the system clock setting in MHz….willit be 12 MHz or 12+1 MHz.? If I set 16 MHz and put only 12 MHz crystal then w
January 15th, 2009 at 6:23 pmill the MCU work…..I am trying to develop a motor control using L293D IC…..what are general problems i will face….i am new to this…
@Adhiraaj
Set crystal as 12MHz. Remember you also have to set the fuse bits see this
http://forum.extremeelectronics.co.in/viewtopic.php?f=2&t=24
To instruct the MCU that external crystal is now available.
If you tell compiler that u are using 16 Meg crystal it will configure all libraries according to it (lcd,usart,spi,timers etc). And those components will not function properly. Specially those that require critical timing.
Have Fun
Pls use the forum (http://forum.extremeelectronics.co.in) for discussing problems
January 15th, 2009 at 6:33 pmhi, avinash Thanks for reply for my post . i am using at prog software programmer .if u need any details i will tell u..
January 16th, 2009 at 10:06 ami am building a land based robot using mega16 mcu. If the clock setting is 12 MHz and i use externally 12 MHz Xtal then will it work………in the robot manual no help regarding the programming is given……….Only the source code is given……..please help……………There is an MT8870 DTMF based input and L293D output to motor…what are the possible problems that you think…….
January 19th, 2009 at 6:38 pm@Adhiraaj
You haven’t stated the problem !!! pls give more info. Pls use the forum instead of this page for solving problems.
So pls join
http://forum.extremeelectronics.co.in

January 20th, 2009 at 9:28 amA
hi avinash good morning i set the fuse bit 0xef for mega 32 after changing the fuse my controller is not supporting to dump the code .if i am trying to burn the code into micro controller it gives as an error no connection . please tell the solution my microller has gone or will it work?
January 23rd, 2009 at 1:16 pmare hex code generated by WIN AVR compiler and Codevision compiler are different?? ………Is there any change to make while programming the chip when i use codevision compiler.?
January 25th, 2009 at 1:46 pmHi,
January 26th, 2009 at 7:17 amI have a dell inspiron 1525 and it hase an IrDA on board,
How can I use the remote control ?
Do you have a software for that ?
Thanks
Jo
i jusy joined………..will look forward for gaining knowledge here amongst intellectual peoples
February 5th, 2009 at 1:12 amHi avinash,
Pls sendme your contact detail.
Thanks,
February 5th, 2009 at 3:10 pmKundan
FAE
Excel eltech India
[Ph No Removed Due to security reasons]
I implement your tutorial on IR remote interfacing with atmega8.
February 26th, 2009 at 12:30 amfirst of all thanks for the tutorial.
I am having one problem.I am not getting IR remote code instead LCD showing error “Err in LeadHigh”
Please help me
with regards
Abhishek
Hello Abhishek,
Please move this discussion to the forum
http://forum.extremeelectronics.co.in
Please note following
February 26th, 2009 at 10:43 am>>Crystal used is 12Mhz or 16Mhz Only.
>>Set the crystal used in AVR studio. Or #define F_CPU 12000000 in top of remote.h
>>Please not the remote used is not of Philips or Sony make. I tested them with BPL/Intex/Mitashi and commonn DVD player remote bought from market (@Rs 35/-). These are NEC encoded RC5 encoded remote wont work.
thanks for reply
Project is still not working.I am giving you more details.
I am using ATmega8 micro controller,WINAVR GUI and same IR remote control as shown in your tutorial video.I am using internal RC oscillator in ATmega8 at 12MHz. Should i calibrate oscillator. Please tell me how should I do it ?LCD is working good.TSOP1738 is connected at INT1(PD3).How can i debug the source code. Please send me more details of this projects.
Abhishek
February 27th, 2009 at 10:30 amI don’t think ATmega8 has internal osc of 12MHz. The max is 8MHz. Please use the following fuse settings and use a 12MHz (or 16 MHz) Crystal. Please compile the code with proper CPU speed settings.
NO NEED TO DEBUG THE CODE,IT IS 100% ALRIGHT.
Only timing problem.
February 28th, 2009 at 9:29 amThis is such a great site. Very good tutorials! Keep up the good work =)
March 12th, 2009 at 8:00 pmnice! [IMG]http://rich-niche.info/cookie/img/smilies/happy.gif[/IMG]
March 17th, 2009 at 5:33 amDear Avinash,
March 20th, 2009 at 5:05 pmIt’s a very nice work started by U. Very nice tutorial for practical experience.
Plz continue it.
With Regards,
Sandeep Duhan
Guys C3088 image sensor modules available.
March 23rd, 2009 at 4:42 pmI was interested in trying out AVR cam and ordered surplus.
Anyone interested… mail me at gjayanth8[at]gmail[dot]com
Hi Avinash,
I was wondering if you have any burners/programmers for the AtMega644V. Thanks
March 29th, 2009 at 3:24 pmdear Avinash,
April 5th, 2009 at 11:38 ami think the extreme burner is not working properly.some times the hex files are not loaded successfully and some times it does.also,the message displayed is–usb device not recognised.i plug it into the right port,where i installed it.so it has posed a great problems for me.what to do next.plz reply soon.
bye
regards.
chandan tiwary
9309234034
well it works sometimes,,,sometimes it doesnot work…i have to unplug and plug it continuously for atleast 20 times…it is harassing me…plz tel me what to do…i have an event.plz reply soon
April 5th, 2009 at 6:48 pmbye
regards
chandan
9309234034
Hello! I Purchase a extreme Burner 51 for AT89S Series.
April 7th, 2009 at 7:45 pmIt’s Driver doesn’t support on Vista Operating System.
Pls How i GET Vista Supported Driver….
hi avinash
plz send me the hex file for blinking leds on port 1 and port 2 with some delays…i will chk it out whether my burner is wrong or my compiler…plz do it soon..its a request..
April 8th, 2009 at 8:01 pmregards
chandan tiwary
jaipur
Hei… All Friends
Please use Keil uVision 8 to make program and Compile from it.. use Latest Mazidi Microcontroller Book to make and learn Program… If U have any quary then e-mail me or call me… about programming…. LCD(Assembly and C), Stepper Motor(C and Assembly), IR Sensor Interfacing with MC and It’s Working Circuit…
My e-mail is : dinesh.gocher@gmail.com
Mobile NO : 09179648642
I use Extreme Burner51 and it’s really help me….
April 8th, 2009 at 9:04 pmHello! Avinash…
April 10th, 2009 at 10:13 pmIn your Extreme Burner What is the work of 10 Pin port?
Which is on Your Burner…..
I make a General perpous Readymate Board of AT89C51-52, AT89S51-52 … Avinash can you add this product in your Shop?
April 10th, 2009 at 10:17 pmthanks a lot!!!!!!!!!!!!
sir,
i need some details of SPI on AVR.
& if possible please send me any working code for SPI.
regards.
April 11th, 2009 at 10:48 amHei Avinash…
April 12th, 2009 at 9:23 amAap ne jo myjhe 10 pinSocket kaa configuration BHeja tha us mai GND ki jo 2 pins hai unko mai kaha jodu apne application bord per or Jo Controller ki P1.4 Pin hai us ko kis se connect karu…
hi
April 15th, 2009 at 10:22 amI’m working on RC5 decoding circuit on Atmega16 microcontroller.The project is used to switch home appliances the o/p port set is PORTA.I’m facing a problem where only pin no. 0,1,6 are working rest are showing errors can u suggets me query please.
@Abhay
“rest are showing errors”
what do u mean by that?
April 15th, 2009 at 11:56 amHi, Avinash .what r the diff stages involved in .c file converted into .hex file..
April 15th, 2009 at 12:51 pmHei Kiran
April 15th, 2009 at 10:01 pmIf u use Keil Software then i help u…
Because I programming on Keil with C language…
My mail ID is dinesh.gocher@gmail.com
April 15th, 2009 at 10:02 pmrest means pin number 2,3,4,5 of PORTA are giving error while pin number 0,1,6 of PORTA are working properly.The error pins are giving 5v and 0v continuosly, voltage is not stable at these pins.
April 16th, 2009 at 11:14 amDear Avinash,
April 16th, 2009 at 11:34 pmi went through your avr tutorials.i found out the following lines..please go thru them
if(PIND && 0b00000010)…..
HERE WE ARE USING THE AND OPERATOR…THEN SHOULD WE USE
“&” OR SHOULD WE USE”&&”.I THINK THEY ARE QUITE DIFFERENT.
SHOULD THERE BE “&&” IN THE LINE ABOVE??
I THINK “&” IS REQUIRED.PLEASE ILLUSTRATE ME TJE CONCEPT.I ALSO WENT THROUGH KANETKAR.THERE ALSO A SINGLE “&” IS USED.
THANKS
REGARDS
CHANDAN TIWARY
9309234034
JAIPUR
yup they are different… ‘&’ is bitwise or operation and ‘&&’ is logical operator..
April 16th, 2009 at 11:43 pmsorry.. ‘&’ is bitwise ‘and’ operator whereas ‘&&’ is logical ‘and’ operator…
April 16th, 2009 at 11:44 pmso wat that has been used in d tutorial is rite???or is wrong??
April 17th, 2009 at 12:18 amwrong… (PIND && 0b00000010) evaluates to true if noth expressions are non-zero which doesnt make sense…
(PIND & 0b00000010) masks PIND with the binary expression and is true only if second PIND of D port is non-zero which makes sense…
April 17th, 2009 at 12:45 amthanks a lot…jaynath
April 17th, 2009 at 12:54 ami expect mr avinash to have a correction in his tutorials….
regards..
chandan
Hello Chandan,
Jayanth is 100% right. That was a typing error. Sorry.
I really appreciate your will to learn and studying the subject with deep concentration.
Again I thank you for finding out a mistake.
I am correcting it right now.
I also thank Mr Jayanth for quickly helping out Mr Chandan.
April 17th, 2009 at 7:13 amhi avinash…
i m going thru ur tutorials…i m tryimg the dc motor tutorial right now.in the program u have given that the motor will rotate once clockwise and again anti clockwise.but when i connect the motor to the xboard,it is only rotating in one direction after some delays.so can u help me out right now what to do???i m stuck in this concept and not able to move further to timers tutorial.
plz do it soon.bye..
here is the source code i have burnt to the uc.it is the same as u gave in the tutorial.#include
#include
void wait()
{
char i;
for(i=0;i<100;i++)
_delay_loop_2(0);
}
void main()
{
DDRD = (1<<PD4)|(1<<PD5);
while(1)
{
PORTD = 0B00010000;//clock wise
wait();
PORTD = 0B00100000; //anticlock wise
wait();
PORTD = 0;
wait();
}
}
April 19th, 2009 at 12:13 amplz reply soon..i m waiting
bye
regards
chandan
Hello Chandan,
xBoard uses a slightly different connection to motor. Actually a invertor (CD4069) IC is used so that only a single PIN can drive a Motor!
Please see this
http://xboard.extremeelectronics.co.in/index.php?page=Motors
Also please use the forum instead of this page for discussion
http://forum.extremeelectronics.co.in/viewforum.php?f=2
Pls refer to xBoard schematic.
http://www.extremeelectronics.co.in/datasheets/xBoard_sheet2.pdf
http://www.extremeelectronics.co.in/datasheets/xBoard_sheet1.pdf
Also in the Getting started CD see the sample program folder for DC Motors
April 19th, 2009 at 8:22 amthanks avinash…
April 19th, 2009 at 12:37 pmthanks a lot for the help..
bye
avinash,,,if i want to work on humanoid robots or want to build a small one what should i do????from where should i start???what type of microcontrollers and microprocessors will help???will arm help???
April 19th, 2009 at 8:08 pmhi avinash and jayanth,
i was going through the tutorials for timers by avinash.he has given an example for setting up the TIMER0,which is as follows:
//prescaler = FCPU/1024
TCCR0 |= (1<<CS02)|(CS01);
here if prescaler is FCPU/1024,that means,the TCCR0 will be 00000101,if i m not wrong…but above calculation sets CS02 as 1 and oring is done with CS01.the result comes out to be 00000110.and for this calculation, the prescaler set is:
external clock source on PIN T0.clock on falling edge.
but i think the statement should have been..
TCCR0 |= (1<<CS02)| (CS00);
for the prescaler to set to FCPU/1024,that sets the TCCR0 register to 00000101.
i donot know if i have done any mistake in calculation or my bit-wise shifting fundamental is wrong,,but please have a look at it and please help me out
i m waiting for ur reply.
thanks
April 20th, 2009 at 12:25 amregards
chandan tiwary
9309234034.
Hello Chandan,
My Mistake!
And Such a Mistake that is correct in Machine Language ( thats why It is running correctly) but Wrong in High Level Language (from a Humans point of view).
Actually it should be
TCCR0|=(1<
Coz we want to set(make =1) CS02 and CS00
The final result is
00000101
As CS02=2 and CS00=0
but I have written
TCCR0|=(1<
WHICH ASLO GIVE EXACLY SAME RESULT
00000101
As CS02=2
so, 1<
AND CS01=1
SO,
00000100 |
00000001
----------
00000101
----------
Got it.
AND I REQUEST U PLEASE DON'T USE THIS PAGE FOR DISCUSSION
USE THE FORUM !!! THE LINK IS
http://forum.extremeelectronics.co.in/viewforum.php?f=2
April 20th, 2009 at 7:25 amCommendable attempt to help beginners.
April 24th, 2009 at 1:42 pmbeing a novice in controllers, finding this link very useful.
Thanks.
is it possible to control the speed of ceiling fan using pwm if yes than how?
April 29th, 2009 at 6:47 pm@Abhay
See
April 29th, 2009 at 7:34 pmhttp://forum.extremeelectronics.co.in/viewtopic.php?f=2&t=126
i’m using timer counter 1 of atmega16 microcontroller.Does the timer TCNT1 is loaded as soon as TCCRA1 & TCCRB1 register is set or is there any other method to load TCNT1.
I want to get PWM OF 50HZ what should be my clk frequency any idea please reply.
April 30th, 2009 at 7:49 pmHai Avinash. I am using my USBASP with ProgISP and it is working fine. As per your recomendation, when used with Extremebruner software, the programmer was not detected. Another thing is that i have about 8-9 Diffrent AVR’s locked due to wrong fuse settings. Is there any way to get those back to work? Can you please suggest any solution? Please mail me to supritha19@rediffmail.com
May 16th, 2009 at 5:54 pmthanks avinash. i found this site very useful. hats off to you!!
May 18th, 2009 at 3:00 pmPhod dala bhai keep continue I wish you a great future with this site
May 24th, 2009 at 12:33 amGood avinas
May 25th, 2009 at 11:57 pmHi,
June 1st, 2009 at 3:51 amfor a beginner, this the best and greatest tutorial´s I ever have seen on the web.
HI AVINASH..
June 2nd, 2009 at 2:43 pmITS A GR8 WORK BY U…IT HELPED ME A LOT…REALLY A LOT!!
BUT I WILL B GLAD IF U ADD MORE TUTORIALS ON ALL THE 32 REGISTERS OF AVR MICROCONTROLLERS.ITS A REQUEST.
REGARDS
CHANDAN TIWARY
9309234034
haloo all I’m happy to write all the best in my blog.
June 5th, 2009 at 8:13 pmExcellent program the AVR-eXtreme Burner … Congratulations!
June 7th, 2009 at 3:02 amEqual to ‘Birthday to you’ … Simple, easy and works very well.Excuse me for my bad english.
This site looks to be a great resource. Thanks for all the hard work Avinash!
June 8th, 2009 at 11:31 amhello avinash,
i made USBasp H/W and it works fine with extream-burner.
i found, if target controller int. RC osc clock is 1MHz, then target controller not supports.
Kindly guide me, how to overcome this problem.
Kunal
June 20th, 2009 at 12:26 pmhi avinash,
i got answer, there are two jumpers.
one of them is for slow clock (less than 1.5 MHz)with the hepl of same jumper we can program with 1MHz CLK or less than that.
Kunal
June 21st, 2009 at 10:49 amhi
June 22nd, 2009 at 4:07 pmif we want to use pic16f micro then we will not be able to use pic18f extreme burner.so plz tell me how to burn the pic16f microcontroller
@SRI
PIC16F support is being developed !!! Soon It will be supporting ever popular PIC16F877 & PIC16F628 etc. Which chip you wanna burn ???
June 22nd, 2009 at 6:46 pmhi can we use ths burner for the given microcontroller pic16f876
June 23rd, 2009 at 11:10 amHi avinash
I’m using atmega 16 microcontroller for my project.I’m finding problem to handle two interrupt at a same time.I have used INT0 and INT2 interrupt,but when my controller goes to interrupt service routine of INT2 then interrupt INT1 does’nt work.Please tell me what I do?
June 27th, 2009 at 12:28 pmHi,
July 12th, 2009 at 10:32 pmI need a little help from u guys.Can anyone plz tell me that how can i store my voice data in the eeprom of ATmega32 in running time?
@Salman
Nice Idea! But voice data demand large storage. The lowest quality audio storage is 8 bit sampling @8KHz. I can reproduces frequencies for 0-4KHz. This can store human voice whose range is well within 0-4Khz(Don’t confuse this with the ability of human ears which can hear from 20Hz-20KHz, I am talking about human “mouth”). Even this requeire 8KByte to store a second of voice ! But ATmega32 has only 1KByte of EEPROM. That means you can only store 0.125 sec audio.
You need some external storage of some kind which has high speed and capacity. Possible candidates are SD/MMC Cards or data flash.
See Atmel app note on audio storage here
http://atmel.com/dyn/resources/prod_documents/doc1456.pdf
SD Card Interfacing tutorial here
July 13th, 2009 at 8:08 amhttp://www.dharmanitech.com/2009/01/sd-card-interfacing-with-atmega8-fat32.html
@ Avinash
July 13th, 2009 at 10:39 pmWell thanx alot for the help.Actually i wanna make a voice controlled car. I was wondering(i think this is a stupid question) that can this sd card interfacing has good processing speed.bcause it can alter tyhe efficiancy of my proj.
@Salman,
SD Card has very good speed thats why its used by Mobile Phones and Cameras. They can store data at very high speed. But the limiting factor in ur proj will be the ATmega32 CPU. Actualy for these kind on data intensive and high processing requirement (like voice recognition) a 16bit or 32 CPU is prederred.
See this link for an example speech recognition system (commercial)
July 14th, 2009 at 7:57 amhttp://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2680&dDocName=en023596
Hi avinash,
I put a problem here in front of you but there is no reply or a solution for that. Finally i did some expriment with my serial port programmr and I change zener diode to 3.3v and resistance from 4.7k to 10k.Basically the output current of PC’s COM-port is high cause this problem.
now when i insert new ATMEGA32 and burn programme.
thats after 7 times reading, ereasing and rewriting there is no problem with your serial port programmer with ponyprog software.
now i face new problem with your extreme burner AVR that it reconize USBASP and then it shows following message
found USBasp on usb port
powiring on
powering on failed
cannot communicate with target chip!
retry again ….
what is possible problem? please guide me.
thank you in advance.
waiting for your tutorial on GPS/GSM.
Kapil
July 21st, 2009 at 10:33 pmhey waiting for ur tutorial on rf communication-part2…
July 28th, 2009 at 9:42 pmDear Mr. Avinash,
It would be great helpful if you could come with LPC2000/3000 series Microcontroller tutorials.
Regards,
August 1st, 2009 at 6:21 pmKK Singh
BARC, Mumbai
Hi Avinash,
First I want to thank you for your guidence on nice extreme burner (got from you).In that where should I configure the lfuse value and hfuse value for use external crystal and one morething shall I use the lfuse & hfuse value of ATMega8 with 16MHz for ATMega32 also?
[ Admin Message: Please do not post such questions here. Please post them in forum. This message will not be replied and will be deleted soon.]
August 1st, 2009 at 10:11 pm@Mr Krishna
Thanks for ur suggestions ! Sure I will come up with it. But it will take some time.
August 2nd, 2009 at 10:55 amhi, thank u for your programmer.
August 6th, 2009 at 1:31 pmso so so nice and very good
please show me about the which can i progarmming for atmega128.please help me.
I use programmer AVRISP USB with your eXtreme Burner AVR v1.0. there are some problems:
August 13th, 2009 at 5:56 am- I use ATmega8/88/8535 with fuse low byte 11100001 (default set by manufacture) programmer can not access to target chip. If I set fuse to 11101111 (Ex Crystal) programmer can access to target chip.
How to access target chip with default fuse ?
Best Regards,
Quang
You need to slow down the programmer so that It can access slower (i.e. Internal Crystal) chip. See programmer hardware documentation for more info.
August 13th, 2009 at 8:10 amHi Avinash,
Your tutorials gave been a great help in building a robot for my Uni project.
However I have one morw question – How do you access the different memories (SRAm, EEPROM and Flash) in an Atmega 162?
I am loading a 5kB program, it gets written completely on to the flash but only about 512 bytes are actually executed.
August 20th, 2009 at 9:25 amhi Avinash.
August 26th, 2009 at 7:44 pmin your responce no 48 ur say Crystal used is 12Mhz or 16Mhz Only but in your tutorial on IR remote interfacing with atmega8 lib it is compatable with 8/12/16Mhz,plez guide me which crystal frq.did i prefer
how can getting to eXtreme Burner PIC v1.0 Launched I’am live in Iraq
September 2nd, 2009 at 6:44 am@Raaft,
Sorry no delivery in Iraq.
September 2nd, 2009 at 9:18 amthanks avinash, your tutorials are very useful
September 3rd, 2009 at 10:27 pmHi to all community members,
September 8th, 2009 at 4:32 pmI use the USB programmer of AVR which I have got from here. Its works fine and how fast it was maza aa gaya Thankyou Avinash Sir
And your tutorials are really good..
September 11th, 2009 at 4:16 pmDo you supply assembled AVR Development board? if so the cost etc. Does it support LPC2104
September 13th, 2009 at 2:25 amplease inform
Regards
A Raoof Khan
Problem…. Target is Mega8515 with 3.6848 Xtal. First time I read, everything is ok…. if I click ‘read all’ again, it says 8515 not found.
September 15th, 2009 at 7:15 pmTo rectify this, I have to disconnect the USB progger then reconnect. Then I can read again. Is this a Bug or not ??
more…. target board is 5V, op sys is win XP.
September 15th, 2009 at 7:42 pmNo such problem with my TINY2313 target.Xtal = 9Mhz, Vcc= 5V
Tried the 8515 target with 11.0592 Xtal, still the same…
September 15th, 2009 at 7:59 pmMore info on the 8515. Removing the ISP cable to the target enables a re-read. Pressing CPU reset on my target does not clear the error.
September 15th, 2009 at 8:06 pmsir pls send me the circuit diagram and block diagram of project secured wireless data communication(AT89S52)and alsowhole programing used in it with algorithm.
September 17th, 2009 at 7:06 pmCan write flash to 8515 once. If I then try to program the fuses it says’wrong device. Defintely a bug here..
September 18th, 2009 at 2:26 pmA very good website u have lunched for us. All AVR uc lovers are being thankful to u…
October 3rd, 2009 at 10:13 amGood job! your tutorials are great for me, i’m starting with embedded systems and your website is very helpful
October 4th, 2009 at 4:36 amHi avinash,
October 9th, 2009 at 6:59 pmI am using ATmega8 ISP programmer for ATTINY 2313 development board.I’m using extreme burner software for downloading into the chip.It’s writing the given Hex file into the flash memory,but while reading back the written hex code in the programming time itself it is showing an error(mismatch of location-random address of flash memory)
Hi Praveen…. check everything… this exact setup works fine for me- mega8 USB ISP programming a TINY2313.
October 10th, 2009 at 2:22 pmHow to control the speed of the ceiling fan using 80c51.and the zerocrossing detection circuit
October 24th, 2009 at 6:52 pmI want to generate a freqeuncy of around 3.3khz using timer of Atmega32 ( 16 Mhz crystal ) with a duty cycle of 60%. please suggest
October 26th, 2009 at 4:05 pmPerhaps a good start would be to read the data sheet and in particular the timers and pwm section. To achieve 60%M/space with a timer, you would need to have 2 separate timer values- one for the pos width, another for the neg width. If you do it with the PWM features, you an do it in one setup routine.
October 26th, 2009 at 7:06 pmHi Avinash,
There a problem in your page
http://shop.extremeelectronics.co.in/index.php?cPath=43
The page link of ‘Categories’—-
‘Robotics (NEW)-> (8)’
That page show error :
include(DIR_WS_MODULES . FILENAME_PRODUCTS_SLIDER);?>
Thanks
Ravi Sharma
October 27th, 2009 at 10:05 pmhai avinash!
October 30th, 2009 at 5:23 pmI want to know how to remove fuse bit RSTDISBL FROM ATmega8 by using superpro model280u?
I wish to send SMS through a GSM/CDMA modem.
November 1st, 2009 at 1:21 pmCan you help me with the code?
Since prog language is always ‘C’ it need not be built on any particular chip. Price is the only consideration.
Does any of your existng boards serve the purpose?
well i just want to ask u where can one find fecl3 supplies in india?
November 4th, 2009 at 9:18 pmHello Gaurav,
FeCl3 is available with the shops who supplies chemicals to school/college in a city. You may ask your chem lab assistance to get the address. I bought a pound of it for rs120 six years back.
November 5th, 2009 at 9:02 amthank you very much……..i hope i get it
November 5th, 2009 at 2:17 pmsorry i forgot to tell u that the ar tutorials are jus awesome
November 5th, 2009 at 2:19 pmwould be gr8 if i see a tutorial on avr-gcc
Hi avinash
November 11th, 2009 at 12:09 pmthat’s a great job. well done.
I want to use LCD with mega8 and i have only one port (port d) free. may you help me how can i use your lib for my application. Thank you.
kapil
Dear Mr Avinash Gupta
There no any good tutorial on Microchip PIC for quite new
beginers.
I like to suggest you that Microchip pic is very popular and
have a lot of flexibility. So plese introuduce free on your web side in very very easy language to understand for innocent beginers.
Thanking you
November 13th, 2009 at 11:46 pmYours Truely
J.Kumar
sir,
November 15th, 2009 at 12:24 ami am working in avr microcontroller(atmega16),i got a problem that is when i am giving 5v powr supply as input,the output coming according to the program is only 1.5v which is very low,i have checked the input and it is is 5v and output port i have used is portD,need your kind help.please help me in this.
Turn on the port pullups maybe ???
November 15th, 2009 at 5:55 pmi did udestand whatis pull up.I am giving the input supply as 5v but the out put coming is 2v only(i have checked in portC&d by a led test).
November 16th, 2009 at 6:12 pmsorry it is did not.
November 16th, 2009 at 6:15 pmi went thr’ your tutorials on the site, they are very useful. And have help a lot in developing AVR code. NOw i m stuck up with timers.
I basically want to generate a square waveform, i am using following code please go thr’ it.
void interrupt_init()
{
cli();
count = 0;
TCCR0 = 0×01;
TCNT0 = 0;
TIMSK = 0X01;
sei ();
}
ISR(TIMER0_OVF_vect)
{
if( count == 12 && count1 == 1)
{
PORTB = 1<<PB7;
count = 0;
count1 = 0;
}
else if(count == 18 && count1 == 0)
{
PORTB = 0<<PB7;
count = 0;
count1 = 1;
}
else count++;
}
Now, using the following code i getting the required signal at PB7. but when this gets executed the status of PB3 changes ( it goes low).Please suggest. i do not want change in status of PB3. it is connected to other other chip, so please reply
November 27th, 2009 at 12:38 pmI don’t understand ‘C’ but the error must be in your PORTB statement…..Can you look at the compiled code ????
November 27th, 2009 at 2:25 pmgreat job huuuuummmmmmmm
December 1st, 2009 at 3:10 pmhi
every thing is OK if the flash size SMALLER than 32k ?
WHAT IS THE SOLUTION,YOU MUST MODIFY THE SOFTWARE ?
BEST REGARD
December 2nd, 2009 at 2:49 pmwhen will u be posting third(3) part on RF COMMUNICATION..
December 10th, 2009 at 8:42 pmhi all
i m using avrdude gui v0.2.0 programmer for atmega 8 -16pu controller
my problem is this gui not read the high and low fuse bits which i burned previously.
and another is it gives verification error
( reading | ######## avrdude: error : wrong reading bytes b8
and red led ( busy indicator ) not goes off
if i remove usb cable from pc then my hardware get reseted then my program works but with very low frequency.
i reinstalled the driver i update my laptop
but problem is not solved
my laptop is compaq presario V3000 and amd processor
so can anybody solve my problem
December 12th, 2009 at 7:13 pmHi
I am looking some USB pic programmer because my laptop hasn’t got a serial port for my pic programmer. Just want to ask where can I buy these Kits and how much are they ?
email me please!! thanks…!!
- Alexis from the Philippines
December 20th, 2009 at 11:19 amI have been programming my atmega8 for some time now and I love the software. Although today when I was trying to change my clock speed from standard 1mhz to 8mhz via the fuse bit tab. I entered the correct value several times and clicked write and the extreme burner said that it was written successfully.
But when I click read all the settings go back to factory default. In other words it is saying that it is writing but really isnt. So I checked the write box in the corresponding box (low fuse) and then clicked write and now I cannot communicate with my chip anymore.
Please help.
January 2nd, 2010 at 2:38 pm@FishBeast
This is a very classic problem !!!
*What value you write to the high and low fuse bytes?
Did u intended to use the internal 8MHz R/C Oscillator or and External 8 MHz crystal ?
Probably you have done some mistake in calulating fuse values
Now you ATmega8 is configured for some unknown clock input thus not at all running!!!
So it can’t accept commands from the programmer
January 2nd, 2010 at 3:53 pmThere might be a bug…. if you close the software and open up again and read the fuses, it might be ok.
January 2nd, 2010 at 3:56 pmYou can always solder a xtal across 9/10 (???) to make it work..
Main problem with changing the xtal settings is if you run an RC osc. in your application, and you set the fuse to XTAL. The cpu obviously won’t run !
January 2nd, 2010 at 4:00 pmI have since learned that I have set it up for an external crystal. I entered F8 Low and D9 High. I can’t beleive I did that. I should have entered E4 low D9 High for int RC Osc. 8 mhz. I don’t have the necessary stuff to reset it. I read somewhere that you can place a finger over xtal1 and 2 and then re-write it. That didnt work for me.
January 2nd, 2010 at 5:15 pmAs above, you will have to solder a xtal across 9/10 OR buy a new device.If you’re in the UK, I can reprogram it for you…
January 2nd, 2010 at 6:53 pmHow come your programmer doesn’t have a XTAL on the board?
My circuit is a test circuit on a bread board. I connected pins 9 and 10 with a wire and tried erasing hex tab and fuse bits tab. Aswell as tried reprogramming hex and tab without sucess. I have another 2 Atmega8’s being shipped.
January 3rd, 2010 at 7:07 amHi
January 6th, 2010 at 6:02 pmI am trying to build a communication system using Atmega32….My idea is to first convert the conditioned analog signal into a digital signal…I using ADC0808 for that….interfaced with the MC which sends out the signal to USART chip MAX232 which then conveys the signal to the transmitter for which i am using a laser diode. Receiver will have a photodiode followed by USART chip, then MC and then DAC….Now i need help on the programming part….Please let me know if AVR studio will be suitable or not….and I am finding it hard to get a STK-500 kit….are there any alternatives for it?….please reply and reply soon…
hola
January 28th, 2010 at 5:52 amhai i had brought a xboard from u! Its really awesome! can u please post how to make gps tracking device(using a gsm module)!
February 8th, 2010 at 11:31 pmHi Avinash,
February 14th, 2010 at 10:10 pmI have built a ponyprog circuit with no crystals coneected. I could program mega8l. But I hapened to program RSTDISBL fuse bits and now when I read the device in ponyprog, it gives message “Device missing or unknown device”. How can I get my AVR back at work. Please suggest me some programmers so that I could use them here in Nepal.
We brought a USBasp Programmer from you , it is working fine and i am able to programm the chip atmega16 with a sample program for blinking led. it sucessfully burnt into the chip but led is not blinking. the connection is proper.
pls help
February 26th, 2010 at 1:24 pm@Dinesh,
February 26th, 2010 at 4:17 pmthats why we recomment one of our coplete development boards . i mean you are not able to do things without guidance,so why you just buy only the “programmee” like a expert???