Page 1 of 1

Com-Port Interrupt in the Simulation

Posted: Thu Aug 08, 2019 5:02 pm
by tiny
Hello Matrix Team,
is there a way to implement a com-port interrupt in the simulation?
Would simplify many tests!

Thank's Christina

Re: Com-Port Interrupt in the Simulation

Posted: Fri Aug 09, 2019 7:51 am
by medelec35
Hi Christina,
Not ideal I know, but what I do is use the Is Sim in the Runtime menu.
Then you can set up a yes branch to call the UART interrupt macro.
It will be called during simulation only.
The hardware will not be affected.
This, of course, is only useful if adding characters via the console.
Alternatively you can use keymapping.

If you are interested, I can create a demo of both methods for you?

Re: Com-Port Interrupt in the Simulation

Posted: Fri Aug 09, 2019 8:27 am
by tiny
Thanks Medelec, I'm already testing with a workaround. But with an ESP8266, Bluetooth module and a Nextion display, the simulations would be more realistic.
Nevertheless many thanks for the answer and the offer!
Christina