ATtiny402 през Arduino IDE
- 4 KB In-system self-programmable Flash memory
– 128B EEPROM
– 256B SRAM
Оттук:
SpenceKonde/megaTinyCore
https://github.com/SpenceKonde/megaTinyCoreПрикачени файлове:
ATtiny402.jpg [ 120.25 KiB | Прегледано 222 пъти ]
Скетч за запис към Arduino UNO/Nano, изпълняващ ролята на програматор:
SpenceKonde/jtag2updi
https://github.com/SpenceKonde/jtag2updiИнструкция за инсталация:
Installing megaTinyCore
https://github.com/SpenceKonde/megaTiny ... llation.mdПрограммируем в Arduino IDE микроконтроллеры ATtiny417, ATtiny817, ATtiny1604, ATtiny402, ATTiny1614, ATtiny3216 и другие
http://digitrode.ru/computing-devices/m ... o-ide.htmlThis board package can be installed via the board manager. The boards manager URL is:
http://drazzy.com/package_drazzy.com_index.jsonКод за потвърждение:
File -> Preferences, enter the above URL in "Additional Boards Manager URLs"
Tools -> Boards -> Boards Manager...
Wait while the list loads (takes longer than one would expect, and refreshes several times).
Select "megaTinyCore by Spence Konde" and click "Install". For best results, choose the most recent version.
clock: 20 MHz Internal
Прикачени файлове:
attiny402_arduino_ide.jpg [ 164.2 KiB | Прегледано 222 пъти ]
При Arduino IDE v1.8.19 автоматичното инсталиране при мен през борд-мениджера работи.
Ръчното инсталиране (копиране в C:\Users\xxx\Documents\Arduino\hardware) дава грешки.
Ръчно успешно инсталиране: при Arduino IDE v1.8.13.
Прикачени файлове:
ATtiny_x02.gif [ 58.44 KiB | Прегледано 215 пъти ]
тест с blink на 0 (pin 2, PA6)
Код за потвърждение:
void setup() {
pinMode(0, OUTPUT);
}
void loop() {
digitalWrite(0, HIGH); // turn the LED on
delay(1000); // wait
digitalWrite(0, LOW); // turn the LED off
delay(1000); // wait for a second
}
Програмиране: през един пин: 6 (PA0/RESET/UPDI).