AVR Simulator Clock Frequency

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

How do you change the clock frequency that is used in the AVR Simulator? I've set it in Project|Options but that did not seem to change it in the Simulator.

Thanks.

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

When in debug mode go to Debug > AVR Simulator Options. The projects option select the chips frequency (crystal or internal). I guess the 2 should match but the simulator will be many times slower that the real chip, so....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Just to note that on my "average" PC the cycle counter in Hapsim tells me that AVR Studio simulator averages about 120,000 simulated cycles per second.

Cliff