Init_MSCAN
 
Component Init_MSCAN for COLDFIREV1
Motorola Scalable Controller Area Network (MSCAN)
Component Level: Peripheral Initialization
This component implements the peripheral initialization of an internal Motorola Scalable Controller Area Network (MSCAN) module of the Freescale HCS08 MCU derivatives.

The module is a communication controller implementing the CAN 2.0 A/B protocol as defined in the BOSCH specification dated September 1991. For users to fully understand the MSCAN specification, it is recommended that the Bosch specification be read first to familiarize the reader with the terms and concepts contained within this document. The CAN protocol was primarily, but not only, designed to be used as a vehicle serial data bus, meeting the specific requirements of this field: real-time processing, reliable operation in the EMI environment of a vehicle, cost-effectiveness and required bandwidth.The basic features of the MSCAN are as follows:

  • Implementation of the CAN protocol - Version 2.0A/B
    1. – Standard and extended data frames
      – 0 - 8 bytes data length
      – Programmable bit rate up to 1 Mbps1
      – Support for remote frames
      – 5 receive buffers with FIFO storage scheme
  • 3 transmit buffers with internal prioritization using a “local priority” concept
  • Flexible maskable identifier filter supports two full size extended identifier filters (two 32-bit) or four 16-bit filters or eight 8-bit filters
  • Programmable wake-up functionality with integrated low-pass filter
  • Programmable loop back mode supports self-test operation
  • Programmable listen-only mode for monitoring of CAN bus
  • Separate signalling and interrupt capabilities for all CAN receiver and transmitter error states (Warning, Error Passive, Bus-Off)
  • Programmable MSCAN clock source either Bus Clock or Oscillator Clock
  • Internal timer for time-stamping of received and transmitted messages
  • Three low power modes: Sleep, Power Down and MSCAN Enable
  • Global initialization of configuration registers

Peripheral Initialization Components provide a low-level hardware approach to initialize registers of the peripheral module. They are intended for experienced users.