Go Down

Topic: ATtint24 Core Library for Arduino (Read 1 time) previous topic - next topic

giorgi111-111

I know that you have ATtiny25 but I want ATtiny24 library
Here was my old signature !!!

johnwasser


I know that you have ATtiny25 but I want ATtiny24 library


ATtiny24 is a variant of the ATtiny84.  Look at the differences between ATtiny85 and ATtiny25 and apply those to the ATtiny84 entry of your choice.  Maybe something like this:

Quote

attiny24at8.name=ATtiny24 @ 8 MHz
attiny24at8.upload.using=arduino:arduinoisp
attiny25at8.upload.maximum_size=2048

# 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]

attiny24at8.bootloader.low_fuses=0xE2
attiny24at8.bootloader.high_fuses=0xD7
attiny24at8.bootloader.extended_fuses=0xFF
attiny24at8.bootloader.path=empty
attiny24at8.bootloader.file=empty24at8.hex

attiny24at8.build.mcu=attiny24
attiny24at8.build.f_cpu=8000000L
attiny24at8.build.core=tiny


Make a copy of one of the empty bootloader files and re-name it empty24at8.hex
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

giorgi111-111

thank you, I am very thankful , everything works great , but there is some error
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny24
it would be great if you tell me how to solve this problem
in addition delay (1000) , takes up to much time to blink LED on ATtiny 24
Here was my old signature !!!

johnwasser

> avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny24

This is just a side effect of many of the ATtiny cores.  Just ignore it.

> in addition delay (1000) , takes up to much time to blink LED on ATtiny 24

How much time does it take?!?  Saying "too much time" doesn't help determine the problem.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

giorgi111-111

For example , if I write delay(100) , it has exactly same effect as delay (1000) on arduino and delay (1000) I think I would be delay (10000) as in arduino .
also I am interested in how define pins such as A0 , or 1 , and how to guess which pin  is PB1 or PA1 / PA0 .
Here was my old signature !!!

Go Up