![]() |
||
[ CANopenIA-XA | Direct I/O | Coprocessor ] This mode allows using the CANopenIA as a CANopen peripheral coprocessor to a main host processor. If an existing microcontroller based hardware needs to be CANopen enabled, this mode allows for an easy integration: the CANopenIA chip is added to the hardware and communicates with the host processor via the UART port or via a shared RAM area.
In case shared memory is used (for example using dual ported RAM), both the host processor and the CANopenIA chip have direct access to the process image - the entire set of input and output data exchanged between the two processors. The host only needs a very minimal knowledge about CANopen, it only reads and writes the process data. All transmissions are handled individually by the Coprocessor depedning on its configuration. The functions (commands when using the UART) and callback functions (indications when using the UART channel) provided to the host processor are those defined by the "CANopen API Recommended Practice" published by Embedded Systems Academy. ConfigurationThe configuration of the CANopenIA Coprocessor is very flexible. All process data is kept in a process image consisting of an array of bytes. Object Dictionary entries can be defined to address data in the process image as well as the PDO mapping can be directly mapped to individual bytes in the process image. To activate a new configuration, an ASCII file containing the new configuration can be directly send to the CANopenIA-XA chip via an SDO download to a specific Object Dictionary entry. Functions / CommandsThe host processor only needs to deal with a minimal function interface providing direct access to the process data stored in the process image.
Callback Functions / IndicationsThe coprocessor informs the host about system events using the following callback functions:
|
© Copyright, Embedded Systems Academy, Inc. and Embedded Systems Solutions GmbH