|
|
|
Bean
PWMMC
|
Pulse width modulation for motor control
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)
-
OnReload
- This event is called before PWM cycle according to reload frequency. (Only when the bean is enabled - Enable and the events are enabled - EnableEvent) (Event is available only if interrupt service/event is enabled).
ANSIC prototype: void OnReload(void)
- Priority - Priority of the Reload routine. Default value is based on the interrupt priority defined in property Reload interrupt priority. For details see description below of the page.
-
OnFault0
- This event is called when fault 0 occurs. (Only when the bean is enabled - Enable and the events are enabled - EnableEvent). (Event is available only if interrupt service/event is enabled). The event clears Fault flag only when the Fault is set to manual clearing mode. When the Fault is set to the automatic clearing mode, the Fault flag must be cleared by the user using ClearFaultFlag() method.
ANSIC prototype: void OnFault0(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Fault 0 interrupt priority. For details see description below of the page.
- Events for HC08MR8/16/32 derivatives and 56800 family
-
OnFault1
- This event is called when fault 1 occurs. (Only when the bean is enabled - Enable and the events are enabled - EnableEvent). (Event is available only if interrupt service/event is enabled). The event clears Fault flag only when the Fault is set to manual clearing mode. When the Fault is set to the automatic clearing mode, the Fault flag must be cleared by the user using ClearFaultFlag() method.
ANSIC prototype: void OnFault1(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Fault 1 interrupt priority. For details see description below of the page.
-
OnFault2
- This event is called when fault 2 occurs. (Only when the bean is enabled - Enable and the events are enabled - EnableEvent). (Event is available only if interrupt service/event is enabled). The event clears Fault flag only when the Fault is set to manual clearing mode. When the Fault is set to the automatic clearing mode, the Fault flag must be cleared by the user using ClearFaultFlag() method.
ANSIC prototype: void OnFault2(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Fault 2 interrupt priority. For details see description below of the page.
- Events for HC08MR16/32 derivatives and 56800 family
-
OnFault3
- This event is called when fault 3 occurs. (Only when the bean is enabled - Enable and the events are enabled - EnableEvent). (Event is available only if interrupt service/event is enabled). The event clears Fault flag only when the Fault is set to manual clearing mode. When the Fault is set to the automatic clearing mode, the Fault flag must be cleared by the user using ClearFaultFlag() method.
ANSIC prototype: void OnFault3(void)
- Priority - Priority of the event routine. Default value is based on the interrupt priority defined in property Fault 3 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.
|
|
|