Go Down

Topic: Attiny 45/85 on arduino, will intterrupt work? (Read 5 times) previous topic - next topic

acmiilangr

i was reading on this site http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585

on how to work attiny 45/85 with arduino board,

so my question is, will interrupt work as atmel328 do?

RIDDICK

seems like...

seen the datasheet: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=ATTINY45-20PI-ND ?

-arne
-Arne

acmiilangr


RIDDICK

oh - hum...

since millis() works, interrupts will work, 2...

maybe some register addresses r different...
my arduino IDE doesnt know the attiny45...
does urs?

-arne
-Arne

acmiilangr

Here it shows how can arduino read it
http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585

RIDDICK

oh - i c - the IDE can be upgraded... cool!  8-)
-Arne

acmiilangr

so can anyone help me on how can i make interupt work?

RIDDICK

could u specify what doesnt work?

according to ur URL millis() will work...
so interrupts work...

or not?

-arne
-Arne

acmiilangr


RIDDICK

-Arne

acmiilangr

#10
Oct 09, 2010, 03:50 pm Last Edit: Oct 09, 2010, 04:19 pm by acmilangr Reason: 1
 attachInterrupt(1, blink, CHANGE); and  attachInterrupt(0, blink, CHANGE);

but it seems it can't understand witch one is 1 or 0 interrupt

acmiilangr


RIDDICK

-Arne

acmiilangr


RIDDICK

#14
Oct 09, 2010, 09:01 pm Last Edit: Oct 09, 2010, 09:02 pm by RIDDICK Reason: 1
why dont u do that first:
Code: [Select]

void setup() { pinMode(2,OUTPUT); }
void loop() {
 digitalWrite(2,HIGH);
 delay(100);
 digitalWrite(2,LOW);
 delay(2000);
}

(with a led in series with 10kR at digital pin 2)?

my idea is: if delay+millis dont work, then ur URL is wrong...
if they do work, then ur sketch is wrong...

-arne
-Arne

Go Up