Example MPC5777C 3N45H MCAN-FD simpleTX-RX ISR GHS616

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example MPC5777C 3N45H MCAN-FD simpleTX-RX ISR GHS616

Example MPC5777C 3N45H MCAN-FD simpleTX-RX ISR GHS616

********************************************************************************
* Detailed Description:
*
* Configures the MCANs to transmit and receive a CAN FD message with or without
* bit rate switching for data phase. This is defined by BRS macro.
* Baudrate during arbitration phase is set to 500kbps, during data phase 1Mpbs
* because of PHY used on the EVB.
*
* 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, ISR is used to read new message.
* 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.D + MPC57xx MOTHER BOARD Rev.C
* MCU: SPC5777CCMM03 3N45H
* 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)
*
********************************************************************************

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1107779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5777C%203N45H%20MCAN-FD%20simpleTX-RX%20ISR%20GHS616%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1107779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Configures%20the%20MCANs%20to%20transmit%20and%20receive%20a%20CAN%20FD%20message%20with%20or%20without%3CBR%20%2F%3E*%20bit%20rate%20switching%20for%20data%20phase.%20This%20is%20defined%20by%20BRS%20macro.%3CBR%20%2F%3E*%20Baudrate%20during%20arbitration%20phase%20is%20set%20to%20500kbps%2C%20during%20data%20phase%201Mpbs%3CBR%20%2F%3E*%20because%20of%20PHY%20used%20on%20the%20EVB.%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20In%20this%20config%2C%20MCAN_0%20transmits%20a%20message.%20MCAN_1%20receives%20the%20message.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20MCAN_0%20sends%20message%20each%201sec.%20This%20interval%20is%20generated%20by%20PIT.%3CBR%20%2F%3E*%20Single%20TX%20buffer%20is%20used%20to%20send%20n%20bytes.%20The%20message%20ID%20is%20changed%20for%20each%3CBR%20%2F%3E*%20transmission.%20Two%20standard%20and%202%20extended%20IDs%20are%20sent.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20MCAN_1%20is%20configured%20to%20receive%20a%20message%2C%20ISR%20is%20used%20to%20read%20new%20message.%3CBR%20%2F%3E*%20There%20are%202%20standard%20and%202%20extended%20ID%20filter%20tables%20defined.%20Classic%20filter%3CBR%20%2F%3E*%20configuration%20is%20set%2C%20means%20filter%20ID%20%26amp%3B%20mask.%3CBR%20%2F%3E*%20Messages%20with%20matched%20standard%20ID%20are%20received%20into%20RXFIFO_0%2C%20messages%20with%20matched%3CBR%20%2F%3E*%20extended%20ID%20then%20stored%20in%20RXFIFO_1.%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20EVB%20connection%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20J37%20and%20J38%20to%20position%202-3%20to%20connect%20MCAN1%20TX%2FRX%20to%20transceiver%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20CAN0-CANH%20on%20P15-1%20to%20CAN1-CANH%20on%20P14-1%3CBR%20%2F%3E*%20CAN0-CANL%20on%20P15-2%20to%20CAN1-CANL%20on%20P14-2%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%20MPC5777C-512DS%20Rev.D%20%2B%20MPC57xx%20MOTHER%20BOARD%20Rev.C%3CBR%20%2F%3E*%20MCU%3A%20SPC5777CCMM03%203N45H%20%3CBR%20%2F%3E*%20Fsys%3A%20PLL1%20%3D%20core_clk%20%3D%20264MHz%2C%20PLL0%20%3D%20192MHz%3CBR%20%2F%3E*%20Debugger%3A%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%20internal_FLASH%3CBR%20%2F%3E*%20Terminal%3A%2019200-8-no%20parity-1%20stop%20bit-no%20flow%20control%20on%20eSCI_A%3CBR%20%2F%3E*%20use%20USB%20connector%20(J21)%20on%20minimodule%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20EVB%20connection%3A%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3CBR%20%2F%3E*%20ETPUA31%20(PortP%20P23-14)%20--%26gt%3B%20USER_LED_2%20(P7-2)%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1107779%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎11-07-2018 12:59 AM
Updated by: