Attiny44 interrupt

Hi,
i am using ATtiny44 interrupt for the first time and it is not working properly i have 3 led each connected to a seperate attiny IC controlled by NRF24lo1 module, the thing is when i coded it using arduino it worked perfectly but now that i transferred my code to attiny it isnt working anymore nothing seems to be synced. i am using falling edge interrupts

Physical pin of attiny44 = 5;
program pin = 0;

from my code down below

radio.maskIRQ(1,1,0);
attachInterrupt(0, interruptFunction, FALLING);

please let me know if that would work for my attiny44

Why do you think that? If you're using DrAzzy's ATTinyCore, chip pin5 (int 0) is Arduino Pin 2.

Exactly i coded 0 and used physical pin5 of attiny44
I am using :
https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json

I believe there is some issue with interrupt code

radio.maskIRQ(1,1,0);
radio.setDataRate(RF24_250KBPS);
radio.setChannel(0x66);
radio.setRetries (15,15);
radio.startListening(); // Stop Receiving and Start receiving
attachInterrupt(PA0, interruptFunction, FALLING);

I read online that we cannot write falling or rising of attiny code
they are suggesting to write code like this
attachInterrupt(digitalPinToInterrupt(interruptPin), blink, CHANGE);
but i am getting error:
'digitalPinToInterrupt' was not declared in this scope

I've not seen many use cases where the interrupt pin on the NRF24L01 is actually used. What are you doing and have you already got its basic radio functions to work together with the ATtiny44 ?

i want my three led to be perfectly synced turn on/off at same time because it is basically going to be used for signboard so we need each sign board leds to be synced perfectly

Another issue is when i power my NRF24lo1 module and ATtiny with arduino board it works perfectly but the moment i shift to power converter 5v to 3.3 (nrf24lo1 supports 3.3v) the whole system halts. Is there anybody else facing similar power issues??

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.