TouCAN Interrupt Generator

Generate asynchronous function-call trigger when CAN interrupt occurs

Library

Target Support Package FM5/ MPC555 Driver Library/ CAN 2.0B Controller Module

Description

The TouCAN Interrupt Generator block generates a function-call trigger within the context of a TouCAN interrupt service routine, which can be used to asynchronously execute a function-call subsystem in the model.

This block may be used to execute a function-call subsystem on occurrence of Bus Off, Error, Wake, or buffer 0-15 interrupts.

Do not use this block unless you are aware of the dangers of using asynchronous interrupts in the model. Unpredictable data loss or model behavior may result unless extreme caution is taken. You must also place an Asynchronous Rate Transition block on each input and output of any subsystem that is triggered asynchronously by an interrupt, to ensure data integrity. See Asynchronous Rate Transition.

For faster interrupts, you can disable floating-point support via the Use floating point option. However, if you disable floating-point support, do not use blocks that require floating-point operations in the function-call subsystem. Use of such blocks will cause a floating-point exception at run-time.

Dialog Box

Module

Select TouCAN module A, B or C. Note that the MPC555 only has modules A and B. MPC56x (561-6) also have module C. An error will be thrown if you select C and your target processor does not support this.

Interrupt source

Choose the interrupt source (Bus Off, Error, Wake or Buffer 0-15) for your ISR generator.

Use floating point

Enable or disable floating-point support.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS