CyberCircuits / arduino-tiny

Automatically exported from code.google.com/p/arduino-tiny
Other
0 stars 0 forks source link

ATTiny85 with internal clock 8MHz #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running Arduino 1.0
I'm using ATTiny85 with internal clock 8MHz powered with 3.3V
When I compile my sketch the delay fonction :
delay(1); donne a delay around  delayMicroseconds(115);
Any help is appreciated
THX
Maurin

Original issue reported on code.google.com by maurin....@gmail.com on 12 Oct 2012 at 7:24

GoogleCodeExporter commented 9 years ago
donne = gives?

Do you have an 8 MHz "board" selected?

Did you change the fuse settings by executing Burn Bootloader?

Original comment by arduino....@gmail.com on 12 Oct 2012 at 7:29

GoogleCodeExporter commented 9 years ago
delay(1); gives a delay around  delayMicroseconds(115);
I'm d'ont use bootloader, just the usbtiny
I added attiny85at8.upload.using=usbtiny to boards.txt
############################################################
attiny85at8.name=ATtiny85 @ 8 MHz  (internal oscillator; BOD disabled)
attiny85at8.upload.using=usbtiny
attiny85at8.upload.maximum_size=8192

# Default clock (slowly rising power; long delay to clock; 8 MHz internal)
# Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 64 ms; 
[CKSEL=0010 SUT=10]; default value
# Brown-out detection disabled; [BODLEVEL=111]
# Preserve EEPROM memory through the Chip Erase cycle; [EESAVE=0]

attiny85at8.bootloader.low_fuses=0xE2
attiny85at8.bootloader.high_fuses=0xD7
attiny85at8.bootloader.extended_fuses=0xFF
attiny85at8.bootloader.path=empty
attiny85at8.bootloader.file=empty85at8.hex

attiny85at8.build.mcu=attiny85
attiny85at8.build.f_cpu=8000000L
attiny85at8.build.core=tiny
############################################################

Then I select : Tools > Board > ATTiny85 @ 8 MHz

Original comment by maurin....@gmail.com on 12 Oct 2012 at 7:53

GoogleCodeExporter commented 9 years ago

Did you change the fuse settings by executing Burn Bootloader?

The expected responses are "yes", "no", "I don't understand", or "I used a 
different method to change the fuse settings".  If you fail to reply with one 
of those four responses I will assume you no longer want assistance and I will 
close this issue.

Original comment by arduino....@gmail.com on 16 Oct 2012 at 7:19

GoogleCodeExporter commented 9 years ago
donne = gives? YES

Do you have an 8 MHz "board" selected? YES

Did you change the fuse settings by executing Burn Bootloader? I used a 
differentmethod to change the fuse settings : I'm using ISP port

Original comment by maurin....@gmail.com on 16 Oct 2012 at 8:37

GoogleCodeExporter commented 9 years ago
"I used a differentmethod to change the fuse settings : I'm using ISP port"

This still does not tell did you actually set the fuses (and to which values), 
the "burn bootloader" option in Tools menu will set the fuses you need, the 
normal program upload *will not* set fuses.

If fuses are wrong then you will have weird "bugs" that are nobodys fault but 
yours.

So if you did not use "burn bootloader" to set fuses then exactly what did you 
do (use Atmel Studio ? used avrdude from commandline [what command exactly] ?) 
to set which fuse bits exactly ?

Original comment by eero.afh...@gmail.com on 15 Dec 2012 at 9:25

GoogleCodeExporter commented 9 years ago
hi,
I need to provide a delay of 45 seconds using for loop , what should i have to 
do

Original comment by ajinnadh...@gmail.com on 29 Jun 2015 at 10:14