Is possible set up a soft interrupt, for example when a int variable go up to a tot without a pseudo multi threading system?
I don't think so (in hardware), but you could make a class and have a getter and setter method. The setter method could alert you when a certain value is reached.
MarioMas:
Is possible set up a soft interrupt, for example when a int variable go up to a tot without a pseudo multi threading system?
When a variable reached a specific total, one could enable the watch dog timer and then go into a endless loop. After the WDT times out the chip would do a reset and you could then disable the WDT in the setup function. So while I think it could be done that way, I suspect that there is a cleaner method to accomplish what your sketch needs to do with proper programming structure/flow.
We would need a better 'big picture' idea of what your complete sketch is trying to accomplish to aid you in that direction.
Lefty