1.1 Overview For users of maskset 2N45H, this addendum supplements—and must be used in conjunction with—the latest version of the MPC5777C Reference Manual. The primary objective of this document is to define the major differences in functionality of maskset 2N45H from maskset 3N45H for software and hardware developers.
1.3 Audience This addendum is intended for system software and hardware developers and applications programmers who want to develop products with maskset 2N45H of the MPC5777C. It is assumed that the reader understands operating systems, microprocessor system design, basic principles of software and hardware, and basic details of the Power Architecture®...
• Consider undefined locations in memory to be reserved. Write 1 to clear: Refers to a register bitfield that must be written as 1 to be "cleared." MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
References 1.6 References This addendum must be used in conjunction with the latest version of the MPC5777C Reference Manual (document number MPC5777CRM). In addition, the following documents provide information about the operation of the MPC5777C: • MPC5777C Data Sheet (document number MPC5777C) •...
RBEN Read bursting from all XBAR slave ports is disabled. Read bursting is enabled from any XBAR slave port whose FXSBEn bit is 1. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Reset Reset PCM_IAHB_BE1 field descriptions Field Description 0–4 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 14
Pending reads are disabled Pending reads are enabled. Burst Read Enable Core0 Data BRE_CORE0_D This bit controls the bus gasket’s handling of burst read transactions. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 15
Burst writes are optimized for best system performance. Note this setting treats writes as “imprecise” such that an error response on any beat of the burst is reported on the last beat. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
This read-only field is reserved and always has the value 0. Pending Read Enable Master Port 6 Concentrator PRE_M6 This bit controls the bus gasket’s handling of pending read transactions. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 17
Burst reads are converted into a series of single transactions on the slave side of the gasket. Burst reads are optimized for best system performance. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 18
Burst writes are optimized for best system performance. Note this setting treats writes as “imprecise” such that an error response on any beat of the burst is reported on the last beat. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
9.5 KB. 3.1.2 Introduction The M_CAN subsystem includes: • Two M_CAN modules • A Message RAM controller The M_CAN subsystem block diagram is shown in the following figure. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
The Message RAM Arbiter is a dynamic round robin arbiter that selects which request is sent to the external Message RAM. These requests are made by the CPU, M_CAN_0, or M_CAN_1. This arbiter ensures: MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 21
The read or write accesses to the external Message RAM use two clock cycles. In the first clock cycle, the address is available, and in the second, the data is available. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
CPU can do 8/16/32-bit read accesses to the external Message RAM. 3.1.3.3 Transfer Error The M_CAN subsystem does not report any transfer error. 3.1.4 External Signals The M_CAN subsystem external signals are shown in the following table. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
The following are the features of M_CAN. • Conforms with CAN protocol version 2.0 part A, B and ISO 11898-1 • CAN FD with up to 64 data bytes supported • CAN Error Logging MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 24
• Maskable module interrupts • 8/16/32-bit Generic Slave Interface for connection customer-specific Host CPUs • Two clock domains (CAN clock and Host clock) • Power-down support • Debug on CAN support MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Tx Buffers, as Tx FIFO, part of a Tx Queue, or as a combination of them. A Tx Event FIFO stores Tx timestamps together with the corresponding Message ID. Transmit cancellation is also supported. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
0 or to M_CAN interrupt 1. By default all interrupts are routed to interrupt line M_CAN interrupt 0. By programming ILE[EINT0] and ILE[EINT1], the interrupt lines can be enabled or disabled separately. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Tx Event FIFO Acknowledge Register (M_CAN_TXEFA) 0000_0000h 3.3.45/78 3.3.1 Core Release Register (M_CAN_CREL) The following table shows example field values for this register and explains how they encode a particular M_CAN core release. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
One digit, BCD-coded. 16–23 Time Stamp Month Two digits, BCD-coded. 24–31 Time Stamp Day Two digits, BCD-coded. 3.3.2 Endian Register (M_CAN_ENDN) Address: 0h base + 4h offset = 4h Reset MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
FSJW Reset M_CAN_FBTP field descriptions Field Description 0–2 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 31
(0x0–0x3)— Valid values are 0 to 3. The actual interpretation by the hardware of this value is such that one more than the value programmed here is used. NOTE: This field has Protected Write status. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
M_CAN Tx to M_CAN Rx and FBTP[TDCO]. Valid value are 0 to 63 M_CAN clock periods. Receive Pin Monitors the actual value of M_CAN Rx Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Address: 0h base + 14h offset = 14h Reset M_CAN_RWD field descriptions Field Description 0–15 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
This node transmits no frames with bit rate switching This node transmits all frames (excluding remote frames) with bit rate switching CAN FD Operation Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 35
Bit MON can only be set by the CPU when both CCE and INIT are set to 1. The bit can be reset by the CPU at any time. Bus Monitoring Mode is disabled Bus Monitoring Mode is enabled Clock Stop Request Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
(functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] tq. The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the first clock edge after the sample point. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 37
(0x0-0xF)— Valid values are 0 to 15. The actual interpretation by the hardware of this value is such that one more than the value programmed here is used. NOTE: This field has Protected Write status. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Timestamp counter value always 0x0000 Timestamp counter value incremented according to TCP Reserved Same as 00 3.3.9 Timestamp Counter Value Register (M_CAN_TSCV) Address: 0h base + 24h offset = 24h Reset MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
NOTE: This field has Protected Write status. 16–28 This field is reserved. Reserved This read-only field is reserved and always has the value 0. 29–30 Timeout Select Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
The Timeout Counter is decremented in multiples of CAN bit times [1…16] depending on the configuration of TSCC[TCP]. When decremented to zero, interrupt flag IR[TOO] is set and the Timeout Counter is stopped. Start and reset/restart conditions are configured via TOCC[TOS]. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Receive Error Counter Actual state of the Receive Error Counter, values between 0 and 127. 24–31 Transmit Error Counter Actual state of the Transmit Error Counter, values between 0 and 255. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
FLEC Reset M_CAN_PSR field descriptions Field Description 0–17 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 43
Synchronizing - node is synchronizing on CAN communication Idle - node is neither receiver nor transmitter Receiver - node is operating as receiver Transmitter - node is operating as transmitter Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 44
NoChange: Any read access to the Protocol Status Register re-initializes the LEC to 7. When the LEC shows the value 7, no CAN bus event was detected since the last CPU read access to the Protocol Status Register MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
A fixed format part of a received frame has the wrong format Acknowledge Error ACKE No Acknowledge Error detected A transmitted message was not acknowledged by another node Bit Error Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 46
The flag is set whenever a received message has been stored into a dedicated Rx Buffer. No Rx Buffer updated At least one received message stored into a Rx Buffer Timeout Occurred No timeout Timeout reached Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 47
Tx FIFO Empty Tx FIFO non-empty Tx FIFO empty Transmission Cancellation Finished No transmission cancellation finished Transmission cancellation finished Transmission Completed No transmission completed Transmission completed Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 48
Rx FIFO 0 fill level below watermark Rx FIFO 0 fill level reached watermark Rx FIFO 0 New Message RF0N No new message written to Rx FIFO 0 New message written to Rx FIFO 0 MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Format Error Interrupt Line FOEL Interrupt assigned to M_CAN interrupt line 0 Interrupt assigned to M_CAN interrupt line 1 Acknowledge Error Interrupt Line ACKEL Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 53
Timeout Occurred Interrupt Line TOOL Interrupt assigned to M_CAN interrupt line 0 Interrupt assigned to M_CAN interrupt line 1 Message RAM Access Failure Interrupt Line MRAFL Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 54
Rx FIFO 1 Full Interrupt Line RF1FL Interrupt assigned to M_CAN interrupt line 0 Interrupt assigned to M_CAN interrupt line 1 Rx FIFO 1 Watermark Reached Interrupt Line RF1WL Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Each of the two interrupt lines to the CPU can be enabled / disabled separately by programming bits EINT0 and EINT1. Address: 0h base + 5Ch offset = 5Ch Reset Reset MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Defines how received messages with 11-bit IDs that do not match any element of the filter list are treated. NOTE: This field has Protected Write status. Accept in Rx FIFO 0 Accept in Rx FIFO 1 Reject Reject Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
M_CAN_SIDFC field descriptions Field Description 0–7 This field is reserved. Reserved This read-only field is reserved and always has the value 0. 8–15 List Size Standard Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Start address of extended Message ID filter list (32-bit word address, see Message RAM). NOTE: This field has Protected Write status. 30–31 This field is reserved. Reserved This read-only field is reserved and always has the value 0. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
BIDX Reset M_CAN_HPMS field descriptions Field Description 0–15 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
1 to the corresponding bit position. Writing a 0 has no effect. A hard reset will clear the register. Rx Buffer not updated Rx Buffer updated from new message MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
FIFO 0 Operation Mode F0OM FIFO 0 can be operated in blocking or in overwrite mode (see FIFOs). NOTE: This field has Protected Write status. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
This read-only field is reserved and always has the value 0. 3.3.26 Rx FIFO 0 Status Register (M_CAN_RXF0S) Address: 0h base + A4h offset = A4h RF0L F0PI Reset F0GI F0FL Reset MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Rx FIFO 0 to F0AI. This will set the Rx FIFO 0 Get Index RXF0S[F0GI] to F0AI + 1 and update the FIFO 0 Fill Level RXF0S[F0FL]. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
FIFO 1 Operation Mode F1OM FIFO 1 can be operated in blocking or in overwrite mode (see FIFOs). NOTE: This field has Protected Write status. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Address: 0h base + B4h offset = B4h RF1L F1PI Reset Reserved F1GI F1FL Reset M_CAN_RXF1S field descriptions Field Description 0–1 Debug Message Status Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
F1AI Reset M_CAN_RXF1A field descriptions Field Description 0–25 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
NOTE: This field has Protected Write status. 8 byte data field 12 byte data field 16 byte data field 20 byte data field 24 byte data field Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 68
8 byte data field 12 byte data field 16 byte data field 20 byte data field 24 byte data field 32 byte data field 48 byte data field 64 byte data field MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Values greater than 32 are interpreted as 32 8–9 This field is reserved. Reserved This read-only field is reserved and always has the value 0. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Tx FIFO of 20 Buffers a Put Index of 15 points to the fourth buffer of the Tx FIFO. Address: 0h base + C4h offset = C4h TFQF TFQPI Reset TFGI TFFL Reset MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Tx Buffer data field size TXESC[TBDS], the bytes not defined by the Tx Buffer are transmitted as 0xCC (padding bytes). NOTE: This field has Protected Write status. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
• when the transmission has not yet been started at the point of cancellation • when the transmission has been aborted due to lost arbitration • when an error occurred during frame transmission MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Start address of Tx Event FIFO in Message RAM (32-bit word address, Message RAM). NOTE: This field has Protected Write status. 30–31 This field is reserved. Reserved This read-only field is reserved and always has the value 0. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Reserved This read-only field is reserved and always has the value 0. 26–31 Event FIFO Fill Level EFFL Number of elements stored in Tx Event FIFO, range 0 to 32. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
M_CAN information. It is not necessary to configure each of the sections listed in the following figure, and there is no restriction with respect to the sequence of the sections. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
CAN FD messages with up to 64 bytes data field via register RXESC. Table 3-48. Rx Buffer and FIFO Element 24 23 16 15 ID[28:0] Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 80
1 CAN FD frame format (new DLC-coding and CRC) R1 Bit 20 BRS: Bit Rate Switch 0 Frame received without bit rate switching 1 Frame received with bit rate switching Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Tx Buffer configuration TXBC.TFQS and TXBC.NDTB. The element size can be configured for storage of CAN FD messages with up to 64 bytes data field via register TXESC. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 82
DB7[7:0]: Data Byte 7 T3 Bits 23:16 DB6[7:0]: Data Byte 6 T3 Bits 15:8 DB5[7:0]: Data Byte 5 T3 Bits 7:0 DB4[7:0]: Data Byte 4 Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
1 Remote frame transmitted E0 Bits 28:0 ID[28:0]: Identifier Standard or extended identifier depending on bit XTD. A standard identifier is stored into ID[28:18]. Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Standard Message ID Filter element, its address is the Filter List Standard Start Address SIDFC[FLSSA] plus the index of the filter element (0…127). Table 3-54. Standard Message ID Filter Element 24 23 16 15 SFEC[2:0 SFID1[10:0] SFID2[10:0] MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Host clock period in case the filter matches. SFID2[5:0]: Defines the offset to the Rx Buffer Start Address RXBC.RBSA for storage of a matching message. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 86
01 Dual ID filter for EFID1 or EFID2 10 Classic filter: EFID1 = filter, EFID2 = mask 11 Range filter from EFID1 to EFID2 (EFID2 >= EFID1), XIDAM mask not applied Table continues on the next page... MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
(= Bus_Idle) before it can take part in bus activities and start the message transfer. Access to the M_CAN configuration registers is only enabled when both bits CCCR[INIT] and CCCR[CCE] are set (protected write). MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 88
CAN bus and is ready for communication. After passing the acceptance filtering, received messages including Message ID and DLC are stored into a dedicated Rx Buffer or into Rx FIFO 0 or Rx FIFO 1. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 89
When CCCR[CME] is not 00, received CAN FD frames are interpreted according to the CAN FD Protocol Specification. The reserved bit in CAN frames with 11-bit identifiers and the first reserved bit in CAN frames with 29-bit identifiers will be decoded as EDL MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 90
(Error Status Indicator) is determined by the transmitter’s error state at the start of the transmission. If the transmitter is error passive, ESI is transmitted recessive, else it is transmitted dominant. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 91
FBTP[TDCO] to the measured transceiver delay. The transceiver delay compensation value TEST[TDCV] is the sum of the measured transceiver delay and the transceiver delay compensation offset. The transceiver delay MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 92
CCCR[ASM]. The bit can only be set by the Host when both CCCR[CCE] and CCCR[INIT] are set to 1. The bit can be reset by the Host at any time. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 93
The following figure shows the connection of signals M_CAN Tx and Rx to the M_CAN in Bus Monitoring Mode. MCAN MCAN transmit output receive input MCAN Figure 3-50. Pin Control in Bus Monitoring Mode MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 94
When all pending transmission requests have completed, the M_CAN waits until bus idle state is detected. Then the M_CAN sets then CCCR[INIT] to one to prevent any further CAN transfers. Now the M_CAN acknowledges that it is ready for power down by MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 95
This mode is provided for hardware self-test. To be independent from external stimulation, the M_CAN ignores acknowledge errors (recessive bit sampled in the acknowledge slot of a data/remote frame) in Loopback Mode. In this mode the M_CAN MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 96
M_CAN_Tx is held recessive. The following figure shows the connection of M_CAN_Tx and M_CAN_Rx to the M_CAN in case of Internal Loopback Mode. MCAN MCAN transmit output receive input MCAN Figure 3-52. Pin Control in Internal Loopback Mode MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
/ re-synchronization mechanism of the CAN Core. If the baud rate switch feature in CAN FD is used, the timeout counter is clocked differently in arbitration and data field. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
• Store received frame in FIFO 0 or FIFO 1 • Store received frame in Rx Buffer • Store received frame in Rx Buffer and generate pulse at filter event pin MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 99
• EFT = "00": The Message ID of received frames is ANDed with the Extended ID AND Mask (XIDAM) before the range filter is applied • EFT = "11": The Extended ID AND Mask (XIDAM) is not used for range filtering MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 100
Controlled by the Global Filter Configuration GFC and the Standard ID Filter Configuration SIDFC Message ID, Remote Transmission Request bit (RTR), and the Identifier Extension bit (IDE) of received frames are compared against the list of configured filter elements. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 101
3.5.4.1.5 Extended Message ID Filtering The figure below shows the flow for extended Message ID (29-bit Identifier) filtering. The Extended Message ID Filter element is described in Extended Message ID Filter Element. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 102
GFC[ANFE ] = ‘0’ target FIFO full(blocking) or Rx Buffer ND =‘1’ append to target FIFO or store to Rx Buffer Figure 3-54. Extended Message ID Filter Path MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 103
Figure 3-55. Rx FIFO Status When reading from an Rx FIFO, Rx FIFO Get Index RXFnS[FnGI] x FIFO Element Size has to be added to the corresponding Rx FIFO start address RXFnC[FnSA]. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc. ...
Page 104
CPU accesses the Rx FIFO. The following figure shows an offset of two with respect to the get index when reading the Rx FIFO. In this case the two messages stored in element 1 and 2 are lost. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 105
Table 3-60. Example Filter Configuration for Rx buffers Filter Element SFID1[10:0] EFID1[28:0] SFID2[10:9] EFID2[10:9] SFID2[5:0] EFID2[5:0] ID message 1 00 0000 ID message 2 00 0001 ID message 3 00 0010 MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 106
Now the M_CAN is prepared to receive the next set of debug messages. NOTE To use full ‘Debug on CAN Support’ feature on a M_CAN instance, a DMA channel is required. Refer to device DMA MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 107
The DMA request is activated only when all three debug messages A, B, C have been received in correct order. The status of the debug message handling state machine is signaled via RXF1S[DMS]. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Get Indices, and the Tx Event FIFO. Up to 32 Tx Buffers can be set up for message transmission. The Tx Buffer element is described in Tx Buffer Element. Note AUTOSAR requires at least three Tx Queue Buffers and support of transmit cancellation. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 109
Host CPU. Each Dedicated Tx Buffer is configured with a specific Message ID. In case that multiple Tx Buffers are configured with the same Message ID, the Tx Buffer with the lowest buffer number is transmitted first. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 110
When a single message is added to the Tx FIFO, the transmission is requested by writing a 1 to the TXBAR bit related to the Tx Buffer referenced by the Tx FIFO's Put Index. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 111
(free) Tx Queue Buffer is calculated by adding Tx FIFO/Queue Put Index TXFQS[TFQPI] (0…31) x Element Size to the Tx Buffer Start Address TXBC[TBSA]. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 112
Dedicated Tx Buffers Tx Queue Buffer Index ID3 ID15 ID8 ID24 Tx Sequence Put Index Figure 3-59. Example of mixed Configuration Dedicated Tx Buffers / Tx Queue Tx prioritization: MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 113
Message Marker from the transmitted Tx Buffer is copied into the Tx Event FIFO element. The Tx Event FIFO can be configured to a maximum of 32 elements. The Tx Event FIFO element is described in Tx Event FIFO Element. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
FIFO elements would be lost. Note The application has to ensure that a valid value is written to the FIFO Acknowledge Index. The M_CAN does not check for erroneous values. MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
A, B, C are unlocked and may be overwritten by received debug messages. M_CAN host clk M_CAN DMA request M_CAN DMA acknowledge Figure 3-60. Timing of DMA Interface Signals MPC5777C Reference Manual Addendum, Rev. 1, 12/2015 Freescale Semiconductor, Inc.
Page 117
How to Reach Us: Information in this document is provided solely to enable system and software implementers to use Freescale products. There are no express Home Page: or implied copyright licenses granted hereunder to design or fabricate freescale.com any integrated circuits based on the information in this document. Freescale reserves the right to make changes without further notice to Web Support: any products herein.
Need help?
Do you have a question about the MPC5777C and is the answer not in the manual?
Questions and answers