Position: Index > Unclassified >

Atman AVR kick start

2017-12-22 03:51  
Declaration:We aim to transmit more information by carrying articles . We will delete it soon, if we are involved in the problems of article content ,copyright or other problems.

Atman AVR is integrated c/C compiler IDE for Atmel AVR microcontrollers.AtmanAvrC development environment includes ProjectWizard, CodeWizard, Workspace, Output, Text editor, Binary editor, Debugger. The compiler itself is GCC compiler for AVR. The only thing that makes it commercial is the integrated environment:

ProjectWizard– lets you customize project through series dialogs and then it generates initial code automatically;

CodeWizard– helps in programming routine tasks like creating new modules, adding functions navigating;

Advanced workspace where you can find File View, Class View and I/O View and many more.

If you would like to try this IDE you may download AtmanAvr C IDE from manufacturers site http://www.atmanecl.com.

Bellow is a Atman AVR kick start guide with some screenshots:

Create new projectFile->New?:image002.jpg

In theProject Nameenter the name of your project. Also select where your project will be located. From tabProjects?select one type of projects:

AVR C Wizard(boot) – Bootloader project using C;
AVR C Wizard(exe) – standard C program – usually this is the choice for your projects;
AVR C Wizard(lib) – wizard for library creation using C;
AVR C Wizard(boot) – Bootloader project using C ;

AVR C Wizard(exe) – standard C program;
Blank – Empty projects without wizard;

Select AVR C Wizard(exe) and press OK.

Next window opens. There you must select Chip type, clock speed and Watchdog timer with prescaller if needed.image004.jpgLet’s say we selected Atmega8 chip and press Next. Ports settings window opens. There you may set ports pins as inputs or outputs and initial values of port registers. There is also ability to select PullUp or leave High-Z for the pins:image006.jpgNext window is timer settings. Depending on microcontroller model there can be different number of timers. There you can select all available properties for AVR timers like clock source, prescallers, interrupts and so on!image008.jpg

Next setting is for external interrupts. There you can enable external interrupts and select the interrupt mode (falling edge, rising edge or high or low value):

image010.jpg

5thstep of wizard is ADC settings. There you can enable ADC on your AVR microcontroller, select features like Noise canceling interrupt or free running modes! set ADC clock and voltage reference:

image012.jpg

Next goes analog comparator settings. You may enable analog comparator and interrupt on match and other features:

image014.jpg

7thstep ofAtman AVRinitial wizard is SPI settings. You may set interrupt, clock rate, working mode: slave or master, double speed, clock phase and data order: first LSB or MSB:

image016.jpg

Next goes UART settings. There you may set settings for transmitter and receiver. You can select interrupt modes, synchronous or asynchronous operation, parity check, stops bits, Baud rate and character size:

image018.jpg

Next setting is I2C or TWI interface settings. Enable it if you are going to use it. There is also interrupt mode select, ACK generation select, Bit rate prescaller, bit rate register value, SCL frequency select:

image020.jpg

And the last step in wizard is LCD. If your project is going to use LCD, then you can choose connection settings for it. When you select LCD port, you can see how to connect LCD to AVR in order properly to use built in library.

image034.jpg

You may come back to any step and correct any settings before you press Finish.

After you press Finish the initial code is generated and files needed are added to project:

image022.jpg

Depending on settings in wizard there might be files included for ADC support, TWI, SPI, interrupt. In main file there is also included some initial code just insert your needed code and compile by pressing Build->Build?. If compilation is successful then in project directory hex file will appear which is ready to burn into microcontroller.

Original article from: avr.h15.ru


Reprinted Url Of This Article:
http://www.scienceprog.com/atman-avr-kick-start/