Search Results

Search found 3 results on 1 pages for 'atmega16'.

Page 1/1 | 1 

  • ADC code in with atmega32

    - by Komal
    uint read_adc(uchar adc_input) { ADMUX=adc_input | (0x00 & 0xff); delay_us(10); ADCSRA|=0x40; //START THE CONVERSION while ((ADCSRA & 0x10)==0); // wait for the conversion to complete ADCSRA|=0x10; //clear the ADC flag return ADCW; } Q: Whats the meaning of "ADMUX=adc_input | (0x00 & 0xff)" ? which input channel we have selected here ?

    Read the article

  • data breakpoints in avr studio

    - by Art Spasky
    I want to set data breakpoint for TCNT1 register of ATMega16 in AVR Studio 4.17 Build 666. I add breakpoint by specifing in the Location field of "Add data breakpoint" window the value IO@0x2C. But breakpoint seems not work. Can some one help me how to setup a data breakpoint for an IO reginster?

    Read the article

  • avr-gcc Atmel AVR microncontrollers on Linux / Windows Arduino IDE

    - by Prakash
    I recently heard all about avr-gcc and avr-lib support on Linux that can be used for developing code for Atmel AVR micro-controller (ATmega48/88/168, ATmega16/32). I also understand that Arduino also uses Atmel's AVR micro-controller (I am not sure which one). Now different vendors have designed their own product (using Atmel AVR uc) where code is to be developed using avr-gcc i.e. on Linux platform. In the same regards Arduino's Windows IDE is much simpler and easy to code with. I am confused as to which platform is more promising - what are the benefits of learning avr-gcc? Which is the better option to program using the same? What type of application can we develop using avr-gcc compiler?

    Read the article

1