Com-Port Interrupt in the Simulation

Moderator: Benj

Post Reply
User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Com-Port Interrupt in the Simulation

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Com-Port Interrupt in the Simulation

Post 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?
Martin

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times
Contact:

Re: Com-Port Interrupt in the Simulation

Post 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

Post Reply