INTERRUPT ERRORS


hi

is possible interrupt appears when c statement needs several low level opcodes
cause losing data registers involved in multi opcodes?

thanks
elico

no, not when using normal arduino code.

i remember there special way have short interrupt doesn't save registers on stack. have not used such low level programming myself. possible, bad programming.

did use 'volatile' keyword global variables can changed in interrupt ? microcontroller has many registers store variables, without 'volatile' keyword go wrong.


Arduino Forum > Using Arduino > Programming Questions > INTERRUPT ERRORS


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support