[AVR] how to simulate ATMEGA 328 in protues??

Status
Not open for further replies.

Deexith Hasan

Advanced Member level 4
Joined
Oct 24, 2014
Messages
111
Helped
4
Reputation
8
Reaction score
3
Trophy points
18
Activity points
740
Code:
#include <avr/io.h>
#include<util/delay.h>
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
 

Proteus does not simulate crystal oscillators. Clock specified in properties.
 

yup i mentioned 40Mhz in ATMEGA328 properties
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…