Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Atman AVR kick start

Atman AVR is integrated c/C++ compiler IDE for Atmel AVR microcontrollers. AtmanAvr C 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 https://www.atmanecl.com.

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

Create new project File->New:

In the Project Name enter the name of your project. Also select where your project will be located. From tab Projects 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.
Let’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:
Next 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!

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):


5th step 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:


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


7th step of Atman AVR initial 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:


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:


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:


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.


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:


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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.