AVR Studio & sleep mode

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

Am using AVR Studio Version 3.2 to program an ATTiny15L.
During simulation the sleep instruction is processed but the simulator continues from the next instruction instead of waiting for an interrupt. Is this normal or is a setup required to make the sleep take place in the simulator? SREG,I and MCUCR,SE both set and MCUCR,SM1&SM0 reset before sleep instruction to enable idle mode.

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

Hi Tony,

The AVR Studio simulator currently doesn't support the SLEEP instruction. The issue will either be better documented or changed in later issues of Studio. I think it's a design consideration. Anyway, the answer to your question is: Yes, this is normal :)

Best regards,

Morten, AVR tech. support, Atmel FAE

admin's test signature
 

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

No, as you say, the AVR studio does not support the SLEEP instruction. And that makes it a nightmare to simulate a program that uses it. Specially if it is timing that you men to test. But why haven't you implemented it yet? A sleep should be very simple as it just stoppes everything until a wake up. This is a very important feature for some of us.

Best regards,

Bengt Ragnemalm, Linköpings Universitet, Sweden

My favorites:
1. My oscilloscope, Yokogawa DLM2024.
2. My soldering iron, Weller WD2M, WMRP+WMRT.
3. JTAGICE3 debugger.