I am trying to design an artificial learning unit. Naturally I want to simulate the model before microcontroller implementation. The main issue with simulation is trying to simulate microcontroller sensor interrupts (say with a PIC18). I’m not so much looking at actually causing an interrupt as I am trying to simulate one with code.
I guess this simply boils down to basic C/C++ info. Can and if so how do you implement/emulate/simulate interrupts in them?
You can use signals
See here:
http://en.cppreference.com/w/cpp/utility/program/signal
You can use your operational system to send the signals.