Sleep mode problem in ATmega128A

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello guys this is Korean guys. I am thankful in advance.

 

My question is related Sleep mode. Although I implemented sleep mode(I assume it works well)

 

I wonder to know signal' level

 

I mean I just have Osc scope which can measure Voltage source and I don't have any current check devices.

 

So I want to get a good solution to know How does definitely SLEEP MODE on real board at signal level without Current checking devices. 

 

Or is there Have a good idea to check real board??...

 

 

Additionaly, seconds is that ATMEGA128A' power save mode support INT7:6's level interrupts. But Level trigger makes Segement(Output device) very quickly & unstable.

 

For exmaple, I just push 'One time' but Segment was changed 4~5 times not 1 times. Using delay be a good soultion my problem? Can you advice me at this problem?

 

Ah, complier is CodevisionV2.04.8 & Atmega128A

 

Thanks your advice.

WonCheol

Korean

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

* I solved secodns problem (Using Delay_ms) but.. 1 problem not yet. is it the best solution to solve this problem?.. I doubt. 

 

& someone can tell me proper delay of KEY PUSH DELAY of human's finger? I mean, If I would push a button 2times "Tik ~ Tik"

 

Then, what delay of "~" time? .. Somone know that?

 

 

Korean

Last Edited: Tue. Sep 11, 2018 - 03:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I find out the way of problem 1. Chekc crystal. Then waveform was changed notably when you wake up your MCU.

 

And I guess SLEEP MODE just turn off CLOCK pulse (I see GPIO LED matain their Voltages while MCU sleep)

 

WhoOne Can tell me? SLEEP MODE just turn off "Clock" ?.. 

Korean

Last Edited: Tue. Sep 11, 2018 - 05:47 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If voltage passes through a resistor then Ohms law applies, V=IR. If you know V and R you can work out I.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, Although that's basic, I don't consider that, I will look for sheets

Korean

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

woncheol wrote:
I just push 'One time' but Segment was changed 4~5 times not 1 times. 

Contact bounce?

 

http://www.ganssle.com/debouncing.htm

 

woncheol wrote:
WhoOne Can tell me? SLEEP MODE just turn off "Clock" ?

The datasheet should tell you exactly what is disabled, and what remains enabled, in each of the low-power modes ?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Tue. Sep 11, 2018 - 11:15 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

All right, contact bounce. I got problems name and solved.

 

Sleep mode is hard to me. I turn on LED before entering Sleep MODE and a few time later, it enter.

 

But LED didn't turn off Even though CPU is in SLEEP. Based on my concept, it would be turn off. 

 

So I doubt is it just stop CLOCK Signal?..

 

But seem like finding the way at ATMEL regular site and you.

 

Thanks. 

 

Korean

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think you are going to have to show some code.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

woncheol wrote:

Sleep mode is hard to me. I turn on LED before entering Sleep MODE and a few time later, it enter.

But LED didn't turn off Even though CPU is in SLEEP. Based on my concept, it would be turn off. 

So I doubt is it just stop CLOCK Signal?..

 

 Yes, it is pretty much so. Think about entering sleep mode as turning off particular peripherals, or even CPU. Sleep mode controls what happens inside the chip. Your LED is outside. You don't need CPU to keep its state. Its state is controlled by the state of an output pin. CPU is only needed to chanhge the state. Sleep mode won't and shouldn't change the state of output pins.

 


Qoitech AB, The Home of Otii Arc, an SMU for every developer

Check out Otii solution at www.qoitech.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks to Everyone.

 

My curious question approximately is satisfied. I feel I can understand SLEEP mode's mean and why LED isn't turn off because of yours.

 

make sense now. Why ATMEL support how to reduce power consumption in sleep mode and find out a picture which is related in SLEEP MODE's detail at AVR.

 

Thanks all of yours. 

Korean