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.

[SOLVED] changing the mode operation of atmega128

Status
Not open for further replies.

fateme91

Member level 2
Joined
Nov 18, 2014
Messages
48
Helped
2
Reputation
4
Reaction score
2
Trophy points
18
Location
Iran,Mashad
Activity points
349
Hi
I need to change the mode of micro. As a micro turns on a LED then go to sleep, power down.

What shoud i do by hardware and software in codevision?

- - - Updated - - -

what is the lowest energy usage?
 

what have you done till now for the application?Provide some information about it.
Do some basic stuffs read the atmega128 datasheet thoroughly first.
You get many help about sleep mode and energy usage.
Do refer the power management and sleep mode section at page number 44 of datasheet.
 
I read this at codevsion

while (1)
{
{

PORTD.0 = 1;
delay_ms(500);
PORTD.0 =0;
delay_ms(500);



PORTD.0 =0;
delay_ms(2000);

MCUCR=0b00111000;
#asm("sleep");

}
}


It is power save mode and it works. Now I need a TIMER2 with crystall 32768Hz. I need an interrupt each 1 second.
what else should i do in software and hardware???
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top