Main Menu
Home
AVR News
Atmel AVR
AVR Development Tools
Valuable Tools
WinAVR toolset
Makefile for WinAVR
AVR Virtual Simulators
Hardware for prototyping
GCC and AVR-GCC
Short introduction to C
AVR-GCC Tutorial
Example AVR Projects
AVR-GCC articles
WinAVR Site Map
Scienceprog FORUM
ScienceProg BLOG
Disclaimer
WinARM Tutorial
Login Form





Lost Password?
No account yet? Register
Latest comments
Programming AVR ADC module...
hi please send me example usart with...
More...

Measuring motor speed and...
main.c: In function...
More...

Running TX433 and RX433 RF...
(Hopefully this is not a re-post). I am...
More...

Running TX433 and RX433 RF...
I just bnought a pair of the RX/TX 433...
More...

Accessing AVR microcontroller...
You need to read PORTD 5th bit and...
More...

Syndicate
Friendly sites

Latest News
Using standard Qsort function in AVR-GCC
Written by Administrator   
Wednesday, 06 June 2007
Last Updated ( Tuesday, 31 July 2007 )

Qsort function is a generic sorting function which allows to choose your own sorting criterion. Not often but sometimes you may need to have some sort of array of data. Dont go to much in to it what data type you will be storing in your embedded application but lets say it is a simple notebook based on AVR. Lets analyse simple program how data can be sorted by using function pointer.

Lets start with sample data. In my example I will use simple structure of four fields:

struct persons

{
	char First_Name[31];
	char Last_name[50];
	uint8_t Age;
	uint8_t Address[50];
}

Be first to comment this article Read more...
Final WinAVR 20070525 Released
Written by Administrator   
Sunday, 27 May 2007
Last Updated ( Sunday, 27 May 2007 )

Finaly WinAVR has a new stabile buil. As mentioned in RC2 they have changed several things in new build:

  • Simplified installer no more un-installation of previous version, so you need to un-instal older version before installing new one;

  • Registry keys are tied to WinAVR version, what will allow to have multiple instances of WinAVR's on same machine;

  • Newer GCC 4.1.2 included;

  • New version of avr-libc1.4.6 with many bug-fixes;

  • New version of GDB/Insight 6.5 with expanded manual. GDB is no more tied to Cygwin – it is native WIN32 executable;

  • support foe newer devices added (AT90USB82, AT90USB162, Atmega325P, Atmega3250P, Atmega329P, Atmega3290P, AT90PWM1, Atmega16HVA, ATmega8HVA );

  • LibUSB-Win32 drivers included to work with Atmel JTAG ICE mkII and AVRISP mkII;

  • New version of Srecord 1.31;

  • New version of Programmers Notepad 2.0.7.667-devel;

  • Newer MFile with updated template.


Be first to comment this article Read more...
Analog to Digital Conversion in AVR
Written by Administrator   
Friday, 18 May 2007

Input signals in microcontrollers may be digital or analog. Digital signal may have two values “0” and “1” while analog any value in given interval. while AVR microcontroller may operate with only digital signals, analog signals have to be converted to digital. Mega series of AVR have built in ADC inside chip what makes this task much easier. Lets take Atmega8 as example. If Atmega8 DIP, then it has 6 ADC inputs, if package is TQFP-32 or MLF, then there are two additional ADC inputs. All ADC channels have 10 bit resolution. Bellow you see simplified Atmega8 ADC unit. Input signals come from pins PC0-PC5. Then enters multiplexer and according to ADMUX register signals is sent from one pin to ADC converter.

Image


Be first to comment this article Read more...
Typical circuits of AVR microcontrollers for fast start
Written by Administrator   
Friday, 18 May 2007
Last Updated ( Friday, 18 May 2007 )

All AVR microcontrollers contain same AVR core which is RISC architecture. So program or its parts written for one AVR will work in another AVR microcontroller. So it is enough to learn one AVR MCU and you can work with all other.

To make circuit work normally you need to follow several conditions: apply power supply, clock device, organise reset after power-up and connect peripherals to I/O. All this information you can find in data-sheets. By the way, Atmel datasheets are very well organised and unified. They are easy to read and there is no stress when changing AVR microcontrollers because you intuitively know where to find required information without pain. If you take like NXP ARM MCU documentation you will see how hard can it be to access required information, because datasheets are poorly organized while microcontrollers are really good. But leave this for another topic.


Be first to comment this article Read more...
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Results 16 - 20 of 69

© 2008 WinAVR AVR-GCC Tutorial
Joomla! is Free Software released under the GNU/GPL License.