+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 1
    Points: 923, Level: 6

    Join Date
    Oct 2014
    Posts
    111
    Helped
    3 / 3
    Points
    923
    Level
    6

    how to simulate ATMEGA 328 in protues??

    Code:
    #include 
    #include
    void delay()
    {
    _delay_ms(500);
    }
    
    int main(void)
    {
    DDRB=0xFF;
    while(1)
    {
    PORTB=0XFF;
    delay();
    PORTB=0X00;
    delay();
    }
    return 0;
    }
    a simple blink program compiled in WINAVR and created hex file.....
    when i simulate in protues i got 800ms delay at 40MHZ external crystal......

    how to set clock fuses for 10Mhz crystal...in WINAVR to create 500ms delay and how to simulate the same

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 9,079, Level: 22
    Achievements:
    7 years registered
    Easyrider83's Avatar
    Join Date
    Oct 2011
    Location
    Tallinn, Estonia
    Posts
    1,592
    Helped
    364 / 364
    Points
    9,079
    Level
    22

    Re: how to simulate ATMEGA 328 in protues??

    Proteus does not simulate crystal oscillators. Clock specified in properties.
    Love me or hate me. All infractions will be ignored.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 1
    Points: 923, Level: 6

    Join Date
    Oct 2014
    Posts
    111
    Helped
    3 / 3
    Points
    923
    Level
    6

    Re: how to simulate ATMEGA 328 in protues??

    yup i mentioned 40Mhz in ATMEGA328 properties



--[[ ]]--