|
|
|
Bean
PWM
|
Pulse width modulation
Events are functions called when some important event occurred and its processing starts.
|
Events:
-
EventModule
- Name of the user module (without extension), where the events from this bean are placed.
-
BeforeNewSpeed
- This event is called when the CPU speed mode is being changed (using CPU methods) - before the change. The event is enabled only if speed modes are supported in the target CPU bean (more than one speed mode).
ANSIC prototype: void BeforeNewSpeed(void)
-
AfterNewSpeed
- This event is called when the CPU speed mode is being changed (using CPU methods) - after the change. The event is enabled only if speed modes are supported in the target CPU bean (more than one speed mode).
ANSIC prototype: void AfterNewSpeed(void)
-
OnEnd
- This event is called when the specified number of cycles has been generated. (Only when the bean is enabled - Enable and the events are enabled - EnableEvent).
ANSIC prototype: void OnEnd(void)
- Priority - OnEnd priority Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
- Events for some Freescale HCS12/HCS12X derivatives.
-
OnShutdown
- This event is called when the PWM emergency shutdown is asserted and de-asserted.
The method GetShutdownStatus can be used to get current status of the input pin.
The method RestartPWM can be used to restart PWM generation after emergency shutdown is de-asserted.
Event is available only when the Emergency interrupt service/event is enabled.
Note: Event is not available on PMF module in PWM mode.
ANSIC prototype: void OnShutdown(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Interrupt priority. For details see description below of the page.
For each generated event it is possible to set:
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|