FlexCAN
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor
713
For any configuration change/initialization, the FlexCAN must be put into Freeze mode (see
). 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, and 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 three 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.
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...