---
+ Post New Thread
Results 1 to 7 of 7
  1. #1
    Advanced Member level 2
    Points: 4,002, Level: 14
    Mithun_K_Das's Avatar
    Join Date
    Apr 2010
    Location
    Dhaka, Bangladesh, Bangladesh
    Posts
    607
    Helped
    13 / 13
    Points
    4,002
    Level
    14

    Need help to write program for ADC in avr studio.

    Need help to write program for ADC in avr studio.
    using atmega8.

    •   Alt4th January 2011, 17:12

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 12,850, Level: 27
    nandhu015's Avatar
    Join Date
    Feb 2006
    Location
    India
    Posts
    1,925
    Helped
    285 / 285
    Points
    12,850
    Level
    27
    Blog Entries
    18

    Re: Need help to write program for ADC in avr studio.



    1 members found this post helpful.

    •   Alt5th January 2011, 01:54

      advertising

        
       

  3. #3
    Member level 1
    Points: 605, Level: 5

    Join Date
    Aug 2010
    Location
    Chennai, INDIA
    Posts
    37
    Helped
    3 / 3
    Points
    605
    Level
    5

    Re: Need help to write program for ADC in avr studio.

    here is the ADC code for ATmega* in AVR studio.....



    hope this helpful for u................



    •   Alt5th January 2011, 13:14

      advertising

        
       

  4. #4
    Advanced Member level 2
    Points: 4,002, Level: 14
    Mithun_K_Das's Avatar
    Join Date
    Apr 2010
    Location
    Dhaka, Bangladesh, Bangladesh
    Posts
    607
    Helped
    13 / 13
    Points
    4,002
    Level
    14

    Re: Need help to write program for ADC in avr studio.

    nagarajanj21, what the programming language it is?



  5. #5
    Advanced Member level 2
    Points: 4,002, Level: 14
    Mithun_K_Das's Avatar
    Join Date
    Apr 2010
    Location
    Dhaka, Bangladesh, Bangladesh
    Posts
    607
    Helped
    13 / 13
    Points
    4,002
    Level
    14

    Re: Need help to write program for ADC in avr studio.

    nagarajanj21, have you any code in C/C++ for ADC?



  6. #6
    Member level 1
    Points: 605, Level: 5

    Join Date
    Aug 2010
    Location
    Chennai, INDIA
    Posts
    37
    Helped
    3 / 3
    Points
    605
    Level
    5

    Re: Need help to write program for ADC in avr studio.

    just take a look at it...


    1 members found this post helpful.

  7. #7
    Advanced Member level 2
    Points: 4,002, Level: 14
    Mithun_K_Das's Avatar
    Join Date
    Apr 2010
    Location
    Dhaka, Bangladesh, Bangladesh
    Posts
    607
    Helped
    13 / 13
    Points
    4,002
    Level
    14

    Re: Need help to write program for ADC in avr studio.

    I've done ADC successfully, only using this simple code.

    // program_ADC

    unsigned int adc_rd;

    void main()
    {

    DDRD = 0xFF; // Set PORTD as output
    DDRB = 0x03; // Set PORTB 0&1 as output

    while (1) {
    adc_rd = ADC_Read(2); // get ADC value from 2nd channel
    PORTD = adc_rd; // display adc_rd[7..0]
    PORTB = Hi(adc_rd); // display adc_rd[9..8]
    }
    }


    its on 'mikroC pro' .



+ Post New Thread
Please login