Did you try to read it?
I have opened the document and still looking/eading for the fuse bit values that are set into ATtiny44 during Burn Bootloader Process.
This file is in my PC in the following path (supplied by the debated ChatGPT):
boards.txt (127.3 KB)
C:\Users\GolamMostafa\AppData\Local\Arduino15\packages\ATTinyCore\hardware\avr\1.5.2\boards.txt.
Why did you write this? Who cares where this file is on your disk?
Why didn't you open the file on GitHub, I gave you the exact link, which is available to everyone and for this you don't need to look for where it is on your disk.
@GolamMostafa , you seem to have been on the forum for several years, but you act like a newbie who saw an Arduino yesterday
the Fuse Bit values after performing "Burn Bootloader" process under ATTinyCore.
Since there are a bunch of options (bootloader, BOD voltage, clock source, EEPROM retention) handled in rather obscure ways in the boards.txt/etc files, the easiest way to figure our the fuses is probably to do a "Burn Bootloader" command (after you've set the options the way you want) with no chip attached to your programmer.
Assuming that you have "verbose logging" selected for upload, you should see a line that contains the fuses associated with those options:
...avrdude -C.../avrdude.conf -v -pattiny44 -cstk500v1 -P/dev/cu.usbserial-FTD61T6Q -b19200 -e -Uefuse:w:0xFF:m -Uhfuse:w:0b11010111:m -Ulfuse:w:0xE2:m -Uflash:w:/.../packages/ATTinyCore/hardware/avr/1.5.2/bootloaders/empty/empty_all.hex:i
I was particularly interested to see that LF = 0xE2 indicating the system frequency is 8 MHz internal (CKDIV is unprogrammed). Your post has shown it.
I can read the Fuse Bits back from the chip using AVR Programmer; but, my setup (Fig-1) and MCU's MSOP package do not provide an easy way (Fig-1). (By-the-by, I am developing a Taxi Meter using ATtiny44 and Bitbanged MAX7219 driven 16-digit display unit.)
Figure-1:
Apparently I am not getting correct timing from TC1 of ATtiny44.
The accuracy of TC1 based timing is a concern to me because I am using TC1 to generate timeDelay function. I have no access to delay() function of the Arduino as I have used TCO as Counter-0 (by clearing TOIE0, COIE0A, COIE0B bits of TIMSK0 register) to acuire external "wheel turning pulses of the Taxi Cab".
Now, I know that ATtiny44 is running under 8 MHz. I can figure out why TC1 is not offering expected timeDelay
but you act like a newbie who saw an Arduino yesterday
In Arduino Forum, everyday is a newday to me; accordingly, I am a newbie without surprise!
You have referred me to the borads.txt file which I have located in my PC; but, it has not served my purpose because of the obscure nature of its content.
I have no access to delay()
Note that avr-libc has delay_ms() and delay_us() ( avr-libc: <util/delay.h>: Convenience functions for busy-wait delay loops ), but they only work with constants as the argument.
The _delay_ms() function works well in my setup of Fig-1 of post #26.
Your referred document says that Compiler Optimization should be enabled. How will I enable (in my IDE, it is enabled by default) the Compiler Optimization in my IDE in case it reamains disabled?
Test Sketch
#define LED 9 //PB1
#include <util/delay.h>
#define F_CPU 8000000
void setup()
{
noInterrupts();
pinMode(LED, OUTPUT);
//pinMode(3, INPUT);
TCCR0A = 0x00;
TCCR0B = 0x00;
TCNT0 = 240;
bitSet(TIFR0, TOV0); //prevetnt Distance Meter to show 1 at reset
TCCR0B = 0x07; //external falling edge
}
void loop()
{
while (bitRead(TIFR0, TOV0) != HIGH)
{
;
}
bitSet(TIFR0, TOV0);
TCNT0 = 240;
digitalWrite(LED, HIGH);
_delay_ms(50); //LED makes a flash which I have wanted
digitalWrite(LED, LOW);
_delay_ms(50);
}
