User manual
PSMC Designer User’s Guide
DS40001671B-page 20 2012-2013 Microchip Technology Inc.
2.16.3 Interrupt
The synchronous rising event can be selected as a timed interrupt source by clicking
on the switch image leading to the line labeled as interrupt. Closing this switch connects
the synchronous rising event out to the PMSC timed interrupt summary bit in the device
PIRx register. Enabling the synchronous rising event interrupt also requires checking
the timed event interrupt enable box on the main window.
2.17 FALLING EVENT
The falling event control GUI, shown in Figure 2-7, is opened by clicking on the falling
event block in the main GUI. The falling event terminates the active PWM drive output.
The falling event source can be synchronous or asynchronous.
FIGURE 2-7: FALLING EVENT CONTROL
2.17.1 Synchronous Selection
Synchronous falling event selection is made by clicking on the X leading to the upper
input to the output OR gate. When clicked, the X is replaced by a straight line leading
from the falling event time selection box to the output OR gate. Synchronous falling
events can be deselected by clicking on the input line to the OR gate to change it back
to a line terminated with an X.
The Radio button below the text box selects time or percent as the display. When time
is selected then the time entered in the text box will determine the number of
microseconds the synchronous falling event will occur after the rising event. When a
time value is entered, then the falling event count value is calculated based on the
psmc_clk frequency and the rising event count. If the display mode is changed, then
the displayed value changes to correspond with the existing count. Likewise, if either
the psmc_clk frequency or rising event value is changed, then the falling event
displayed value will be changed to correspond with the existing count except when the
percent display mode is selected. The count remains constant and the displayed value
changes to avoid invalid time entries as a result of a change to any of the psmc_clk,
period, or rising event values.