The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Submitted by francois on Tue, 09/22/2009 - 19:24
I just want to take an interrupt when a pin goes high. Can I do that? How is it done in VisSim?
Submitted by Richd on Tue, 09/22/2009 - 20:34.
First create a compound block that contains the logic for your handler. This can be something simple like incrementing a counter, or as complex as you want. Generally, you want your interrupt handler to be short and sweet to avoid impacting other operations, but often it makes sense to put your entire controller inside the compound block so it runs with high priority and low jitter. For instance, the motor control algorithm for a sensorless motor controller should run as the ADC end of conversion interrupt handler. To set up an interrupt handler for your compound block, CTRL+Right click on the compound and select Execute on Interrupt like so:
then click Select ... to choose the interrupt that will fire execution of the compound block and its contents.In the dialog below, the compound block will be invoked on the 8th End of Conversion performed by the ADC unit.
VisSim will take care of enabling interrupts and inserting the function into the interrupt vector table.An example that counts interrupts on GPIOA0 is attached below.
Unable to find an attachment - read this blog
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…