Example MPC5777C MCAN simpleTXRX GHS616

File uploaded by Petr Stancik Employee on Sep 20, 2016Last modified by Diana Torres on Feb 24, 2017
Version 2Show Document
  • View in full screen mode

********************************************************************************
* Detailed Description:
*
* Configures the MCANs to transmit and receive a CAN message.
*
* In this config, MCAN_0 transmits a message. MCAN_1 receives the message.
*
* MCAN_0 sends message each 1sec. This interval is generated by PIT.
* Single TX buffer is used to send n bytes. The message ID is changed for each
* transmission. Two standard and 2 extended IDs are sent.
*
* MCAN_1 is configured to receive a message, SW polling is used.
* There are 2 standard and 2 extended ID filter tables defined. Classic filter
* configuration is set, means filter ID & mask.
* Messages with matched standard ID are received into RXFIFO_0, messages with matched
* extended ID then stored in RXFIFO_1.
*  
* EVB connection:
*
* J37 and J38 to position 2-3 to connect MCAN1 TX/RX to transceiver
*
* CAN0-CANH on P15-1 to CAN1-CANH on P14-1
* CAN0-CANL on P15-2 to CAN1-CANL on P14-2
*
*
* ------------------------------------------------------------------------------
* Test HW:         MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C
* MCU:             PPC5777CMM03 2N45H CTZZS1521A
* Fsys:            PLL1 = core_clk = 264MHz, PLL0 = 192MHz
* Debugger:        Lauterbach Trace32
* Target:          internal_FLASH
* Terminal:        19200-8-no parity-1 stop bit-no flow control on eSCI_A
*           use USB connector (J21) on minimodule
*
* EVB connection:  ETPUA30 (PortP P23-15) --> USER_LED_1 (P7-1)
*                  ETPUA31 (PortP P23-14) --> USER_LED_2 (P7-2)
*
********************************************************************************

Outcomes