Hello,
I am using a Tiny11L and I am trying to use a rising edge on INT0 to perform a set value addition to a variable. I would like to use the variable to increase a delay to "loop1" via ldi. I've tried .def a pair of registers and adding them, but that register name cannot be used as a value in my ldi statement. I realize that I am doing something wrong but haven't been able to figure it out.
ldi loop1,variablehere
and in the interrupt i want to do the equivalent of
EXT_INT0: inc variablehere reti
or
EXT_INT0: variablehere = variablehere + x reti
Any help appreciated, thanks.