Make a DEL flash with Atmega32

Discussion in 'Embedded Systems and Microcontrollers' started by Ouin85, Feb 9, 2015.

  1. Ouin85

    Thread Starter New Member

    Feb 9, 2015
    1
    0
    Hello,
    I wish to make a DEL flash with Atmega32.
    I banged the program WinAVR, I compiled him and sent on the flash memory of Atmega32 successfully.
    But, nothing works.
    I noticed that the hexadecimal file and the contents of the memory are not identical.
    What that can be.
    I tried with AvrStudio, the same result.
    Thank you.

    The program is :

    #include <avr/io.h>
    #include <util/delay.h>

    int main(void)
    {
    DDRD = 0b10000000;

    while(1)
    {
    PORTD = 0b10000000;
    _delay_ms(1000);
    PORTD = 0b00000000;
    _delay_ms(1000);
    }
    return 0;

    }
     
  2. mcgyvr

    AAC Fanatic!

    Oct 15, 2009
    4,769
    969
  3. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,791
    1,103
    Welcome to AAC!
    I see no code for initialising the AVR?
     
Loading...