Go Down

Topic: External Interrupt Core Code DUE (Read 228 times) previous topic - next topic

EJLED

Hi, guys

how to write basic interrupt setup core code for DUE.

I want to detect rising edge on say pin 4 of due , upon rising edge it should go to ISR to do some task say for instance in ISR i want to print 0 to 100 on serial window.

does any one worked on interrupt core code, plz guide me.

Thanks

ard_newbie


Follow this link :

https://www.arduino.cc/en/Reference/attachInterrupt

Keep your ISR function as short as possible, don't print anything inside, instead set a flag in ISR then print in loop() upon this flag state.

EJLED

Dear ard_newbie

I am looking for Core code. not arduino's code like attachedInterrupt.


ard_newbie


EJLED

i do not know that much , but i am looking for code. so that i will test it in DUE.

Go Up