name: tea. Browse all classic games published by the Avalon Hill Game company. I am currently watching to see when TCNT1 gets reset to zero as the to know when the count is done, but I have also watched the OCF1x flags, with no difference. Avalon Hill specialized in producing a variety of strategy-based board games and war simulation games. I've tried OCR1A, B and C, and the same results occur. Something is forcing it to time out early. I't obviouse that it is entering the timer function since I am able to see the LED at all, but I cannot figure out why it wont keep a consistent time. It does that perfectly the first time (and sometimes after that), but usually after the first time it will be inconsistent (.5 sec, 1 sec.) all over the map). What this should do when the button is pressed is turn on the LED for 3 seconds and shut back off. If(SwitchState) //Float switch is closed (PB1) SwitchState = ~PINB & (1 << FloatSwitch) CLKPR = 0x08 // Set system prescale to / 256 (1MHz / 256 = 3906.25Hz) Behavioural science experiment used simple ‘nudges’ to prompt a fall in energy use Over a year, savings in a small office represented enough energy to run 81 laptops for a year or boil a kettle nearly 54,000 times1 E.ON and the Cardiff office of global real estate advisers Savills have come together to run an innovative behavioural sci. Void Delay (unsigned int TotalCount) // 114 Bytes #define FloatSwitch PORTB1 // Analog Input (PORTB4)