Author Topic: Where are CPU control Registers defined?  (Read 2752 times)

mron

  • Newbie
  • *
  • Posts: 22
Where are CPU control Registers defined?
« on: February 20, 2013, 12:01:11 pm »
I'm trying to find an SMCR, I think it's a Sleep Management Control Register. I want to put the spark to sleep, then wake with the watchdog timer. I'm using the "nightingale.ino" as a starting place. The tiny85 docs refer to SM bits in a control register, I'm not sure which register it is and how to set/clear it.

mron

  • Newbie
  • *
  • Posts: 22
Re: Where are CPU control Registers defined?
« Reply #1 on: February 20, 2013, 07:31:22 pm »
Got it working, There is no SMCR, There's a WDTCR. I changed a couple things and it works.