If you click the down arrow at the extreme right of the first pull down menu on "Features" of the above online fuse calculator, you will see all possible selections for CKSEL and SUT. Lets see, one thing some people forget or really don't know:įuses on AVR are programmed reversed, if bit=1 it means it is UNPROGRAMMED.įor the FUSE to be in effect, it must be zero.Ġ : CKDIV8 - Divide Clock by 8 (IT IS PROGRAMMED - This is your problem)ġ : SUT1 - check start up time along with SUT0Ġ : CKSE元 - Selection along with the following bitsĬKSE元210 = 0010 and SUT1:SUT0 = 10 means "factory default value", Internal RC 8MHz, start up time = 14 clock cycles + 64ms.
You can always consult this online fuse calculator, where you can select AtTiny85.
#WAVES 9 KEEPS RESETTING FL STIDIO 12 CODE#
I'm still having this issue where F_CPU as absolutely no effect on my code timing. Might as well dive deep than contemplate. Thanks WagnerLip Not too sure, at this point, what fuses means but I did download, installed, WinAVR, AVRdude and AVRdudeSS following your suggestions. _delay_ms(1000) // Ask delay 1 second - Real delay is 6 secondsĬLKPR = (1 << CLKPCE) // After running CLKPCE delay is now back to normal 1 secondĬLKPR = 0 // Change clock prescaler to 0000 divider by 1 LED_ON // Toggle LED On OFF delay 1 second for Clock 1MHz When my ATTiny85 boot it will make my LED flash every 12 seconds (6secON 6secOFF), where it should be a 2 seconds period.Īfter lots of reading and playing around I tried the code line CLKPR = (1 ĭDRB |= (1 << PB1) // PB1 as Output to drive LED I am experimenting with this short bit of code trying to understand why my _delay_ms_ command is not behaving as expected. Using VS Arduino1.6/1.8 Gemma configuration. I am using this Setup: Visual Studio and Visual Micro with Sparkfun Tiny Programmer.