Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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
 

yup i mentioned 40Mhz in ATMEGA328 properties
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top