English
Language : 

PXD10RM Datasheet, PDF (715/1332 Pages) Freescale Semiconductor, Inc – PXD10 Microcontroller
For any configuration change/initialization it is required that FlexCAN is put into Freeze Mode (see
Section 18.4.9.1, Freeze Mode). The following is a generic initialization sequence applicable to the
FlexCAN module:
• Initialize the Module Configuration Register
— Enable the individual filtering per MB and reception queue features by setting the BCC bit
— Enable the warning interrupts by setting the WRN_EN bit
— If required, disable frame self reception by setting the SRX_DIS bit
— Enable the FIFO by setting the FEN bit
— Enable the abort mechanism by setting the AEN bit
— Enable the local priority feature by setting the LPRIO_EN bit
• Initialize the Control Register
— Determine the bit timing parameters: PROPSEG, PSEG1, PSEG2, RJW
— Determine the bit rate by programming the PRESDIV field
— Determine the internal arbitration mode (LBUF bit)
• Initialize the Message Buffers
— The Control and Status word of all Message Buffers must be initialized
— If FIFO was enabled, the 8-entry ID table must be initialized
— Other entries in each Message Buffer should be initialized as required
• Initialize the Rx Individual Mask Registers
• Set required interrupt mask bits in the mask registers (for all MB interrupts), in CTRL Register (for
Bus Off and Error interrupts) and in MCR Register for Wake-Up interrupt
• Negate the HALT bit in MCR
Starting with the last event, FlexCAN attempts to synchronize to the CAN bus.
18.5.2 FlexCAN Addressing and RAM size configurations
There are 3 RAM configurations that can be implemented within the FlexCAN module. The possible
configurations are:
• For 16 MBs: 288 bytes for MB memory and 64 bytes for Individual Mask Registers
• For 32 MBs: 544 bytes for MB memory and 128 bytes for Individual Mask Registers
• For 64 MBs: 1056 bytes for MB memory and 256 bytes for Individual Mask Registers
In each configuration the user can program the maximum number of MBs that will take part in the
matching and arbitration processes using the MAXMB field in the MCR Register. For 16 MB
configuration, MAXMB can be any number between 0–15. For 32 MB configuration, MAXMB can be
any number between 0–31. For 64 MB configuration, MAXMB can be any number between 0–63.
Freescale Semiconductor
PXD10 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
18-45