Questions tagged [attiny]

ATtiny is a range of programmable 8-bit AVR microcontrollers by Atmel.

160 questions
0
votes
0 answers

attiny uart transmit fails

I am trying to transmit a byte on the uart of an attiny2313 but the transmit hangs in the loop that waits until UDR is available. I am using the internal 8MHz clock. Uart configured for 9600baud 8bit 1stopbit My init code is as following: #define…
0
votes
1 answer

How do I do this AVR assembly more elegantly

I've currently got this code: // takes a table reference as an argument .macro load_table_into_r0_to_r8 ldi ZL, low(2*@0) ldi ZH, high(2*@0) lpm r25, Z+ mov r0, r25 lpm r25, Z+ mov r1, r25 lpm r25, Z+ mov r2, r25 …
Thom Wiggers
  • 6,938
  • 1
  • 39
  • 65
-1
votes
0 answers

connection problems with digispark attiny 85

I was trying to work with the attiny85 and I performed all the installation steps exactly 1/copied this http://digistump.com/package_digistump_index.json to the arduino Ide additional boards managers 2/ installed the digispark AVR Boards 3/…
-1
votes
1 answer

What does this error mean, This is using the IR Remote library and the ATTINY85

I am attempting to upload my code to the ATTiny85, but whenever I do, I get this error. Here is the error: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive] void sendPronto(const __FlashStringHelper *str, unsigned int…
-1
votes
2 answers

Would it be okay if I use an uint64_t type number in the millis function?

I am using attiny microcontroller and atmel studio. And I am using the millis function in my project. Code related to the millis function: And I am using this classic code: starttimex = millis(); endtimex = starttimex; while ((endtimex -…
-1
votes
1 answer

Supported Arduino functions on ATTinyCore by SpenceKonde

I've just discovered the ATtiny84/85 chips and have ordered a few to use in some projects. I've looked high and low for all the support it has for programming through the Arduino IDE and Uno and have come across high-low tech's website and the…
Tine
  • 55
  • 6
-1
votes
2 answers

_delay_ms seems not to work when using pwm

I'm relatively new to programming microcontrollers, so I started experimenting on an ATtiny85. First program was simply turning on an LED and off with a little delay (classic blinky program). Now I wanted to slowly increase the brightness of the…
Stefan
  • 652
  • 5
  • 10
-1
votes
1 answer

digispark not printing simbol \,

i am having trouble with writing a \ symbol in digikeyboard.printIn, the line stops highlighting and outputs a error D:\documents\Arduino\powershell_write.ino: In function 'void loop()': powershell_write:67:24: error: incomplete universal character…
-2
votes
1 answer

i have solved my issues....yet still there some doubts..clarify me

uint16_t adc_value=0; void ADC0_init(void) { /* Disable digital input buffer */ PORTA.PIN6CTRL &= ~PORT_ISC_gm; PORTA.PIN6CTRL |= PORT_ISC_INPUT_DISABLE_gc; /* Disable pull-up resistor */ PORTA.PIN6CTRL &=…
user21170594
-2
votes
1 answer

Do I need a bootloader for ATtiny1617

First of all I am new in this domain, so excuse me if I ask dumb questions. I have worked in the past with AVR microcontrollers and used arduino's bootloaders. Here I need to work with ATtiny16/17, and I don't know if I have to develop a bootloader…
FF504
  • 1
  • 1
1 2 3
10
11