MPC5xxx Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5xxx Knowledge Base

Labels

Discussions

Sort by:
MPC55xx MPC5554 MPC5566                     MPC56xx MPC5602D MPC5604B MPC5604E MPC5606S MPC5604P MPC5607B MPC5646C MPC5634M MPC5642A MPC5644A MPC5643L MPC5668G MPC5674F MPC5675K MPC5676R                   MPC57xx MPC5744P MPC5777C MPC5777M MPC5746R MPC5748G MPC5746C MPC5775K S32R274             MPC5554   Codewarrior Classic Example MPC5554EVB PinToggleStationery CW210  Example MPC5554 eQADC+INTC Single Scan CW210 Go to the top of the page        MPC5566   Codewarrior Classic Example MPC5566EVB PinToggleStationery CW210  Example MPC5566 Hardware vector mode CW210  Go to the top of the page        MPC5602D   GreenHills MULTI Example MPC5602D FMPLL GHS614  Go to the top of the page        MPC5604B   Codewarrior Classic Example MPC5604B PinToggleStationery CW210  Example MPC5604B LINFlex LIN Master-Slave communication demo CW210  Example MPC5604B Shadow Flash Reprogramming CW210  Example MPC5604B Flash Array Integrity Check CW210 - using SSD flash drivers  Example MPC5604B Censorship CW210 Example MPC5604B ADC-Pot-ADCWatchDog-INTC-printf CW210  Example MPC5604B SWT Windowed mode CW210 Go to the top of the page        MPC5604E   Codewarrior Classic Example MPC5604E PinToggleStationery CW210  Go to the top of the page        MPC5606S   Codewarrior Classic Example MPC5606S-DEMO LM75B+TFT CW210  Example MPC5606S-DEMO HIH-5030+TFT CW210  Example MPC5606S-DEMO PCA8565+TFT CW210  Demo application MPC5606S-DEMO + LM75B + HIH-5030 + PCA8565 + GUI CW210  Example MPC5606S-STOP_mode_implementation CW210 Go to the top of the page        MPC5604P    Codewarrior Classic Example MPC5604P PinToggleStationery CW210 Example TRK-MPC5604P Initialization of SBC chip MC33905 and FlexCAN CW210  Example MPC5604P ADC setting for scan mode on TRK board CW210  Example MPC5604P FlexPWM Initialization on TRK board CW210 Go to the top of the page        MPC5607B    Codewarrior Classic Example MPC5607B PinToggleStationery CW210  Example MPC5606B SIUL External interrupt CW210  Example MPC5607B CAN sampler and STOP mode  Example MPC5607B-DMA+LinFlex CW210  Go to the top of the page        MPC5646C    Codewarrior Classic Example MPC5646C PinToggleStationery CW210  Example MPC5646C Standby Wakeup To SRAM CW210  Example MPC5646C eMIOS frequency measurement CW210   GreenHills MULTI Example MPC5646C PIT ISR GHS614  Go to the top of the page        MPC5634M    Codewarrior Classic Example XPC563MKIT PinToggleStationery CW210  Example TRK-MPC5634M Initialization of SBC chip MC33905 and FlexCAN CW29  Example MPC5634M_2b_RAM_ECC_error_injection CW210  Go to the top of the page        MPC5642A    Codewarrior Eclipse Example XPC5642AKIT PinToggleStationery CW10.6  Go to the top of the page        MPC5644A    S32 Design Studio Example MPC5644A BookE PinToggle - S32DS Power 2017.R1    Codewarrior Eclipse Example MPC5644A External SRAM - CodeWarrior for MCUs v10.5    Codewarrior Classic Example XPC564AKIT PinToggleStationery CW210  Example XPC564AKIT324S External SRAM test CW210  Example MPC5644A eQADC channel 146 conversion+calibration CW210  Example MPC5644A TSENS Temperature calculation CW210 Example MPC5644A Censorship CW210   GreenHills MULTI Example MPC5644A EMIOS shifted PWM GHS614  Go to the top of the page        MPC5643L    Codewarrior Classic Example XPC5643LKIT PinToggleStationery LSM CW210  Example XPC5643LKIT PinToggleStationery DPM CW210  Example MPC5643L Flash_program_simple CW210  Example MPC5643L TSENS Temperature_calculation CW210  Example MPC5643L-LVD_HVD_self_test+FCCU_F CW210  Example MPC5643L 1b_RAM_ECC_error_injection CW210  Example MPC5643L 2b RAM and 2b FLASH ECC error injection CW210    GreenHills MULTI Example MPC5643L eTimer DMA GHS614  Go to the top of the page        MPC5668G    Codewarrior Classic Example MPC5668G PinToggleStationery CW210  Go to the top of the page        MPC5674F    Codewarrior Classic Example XPC567XFKIT PinToggleStationery CW210  Example MPC5674F eQADC+eDMA Single_Scan CW210  Example MPC5674F eQADC+eDMA-Single+Differential+GAIN CW210  Example MPC5674F eQADC+eDMA Continuous_Scan CW210  Example MPC5674F eQADC-Streaming Mode CW210  Example MPC5674F eQADC_PMC_chnl_conv+calib CW210  Example MPC5674F_1b+2b_RAM_ECC_error_injection CW210  Example MPC5674F MPU Initialization CW210  Example MPC5674F TSENS-Temperature_calc CW210  Go to the top of the page        MPC5675K    Codewarrior Classic Example MPC5675K PinToggleStationery LSM CW210 Example MPC5675K PinToggleStationery DPM CW210  Example MPC5675K Data_flash_program_simple CW210  Example MPC5675K-2b_RAM+2b_FLASH_ECC_error_injection CW210  Example MPC5675K TSENS Temperature calculation CW210  Go to the top of the page      MPC5676R    Codewarrior Classic Example XPC567XRKIT PinToggleStationery CW210  Example MPC5676R DSPI MasterSlave DMA CW210  Example MPC5676R DSPI-ext_SPI_memory-S25FL129P CW210  Example MPC5676R-eQADC_PMC_chnl_conv+calib CW210  Example MPC5676R-eQADCA_STAC_timestamp_eTPUC CW210 Example MPC5676R-eQADC_DECFILTER_integrator_eTPU CW210   S32 Design Studio Example MPC5676R HardwareVectorMode Multicore S32DS_2017.R1   GreenHills MULTI Example MPC5676R BIST core1 GHS716  Example MPC5676R BIST Core0&1 GHS716 (multicore) Go to the top of the page        MPC5744P    S32 Design Studio Example MPC5744P PinToggleStationery S32DS_1.0  Example MPC5744P LINFlex UART with DMA S32DS_1.0  Example MPC5744P ETimerCountMode S32DS_1.0  Example MPC5744P HardwareVectoreMode S32DS_1.0  Example MPC5744P STM timer S32DS Power 2017.R1  Example MPC5744P eTimer ADC injected conversion S32DS_2.1   Example MPC5744P FlexPWM Init Capture test S32DS21  Example MPC5744P Flash_Overlay_SRAM S32DS Power.2.1   GreenHills MULTI Example MPC5744P FlexCAN simpleTXRX GHS614  Example MPC5744P eTimer frequency measurement GHS614  Example MPC5744P FlexPWM CTU ADC synchronization GHS614  Example MPC5744P FlexPWM SGEN synchronization GHS614  Example MPC5744P TSENS temperature calculation GHS614  Example MPC5744P LINFlex UART echo SW polling GHS614  Example MPC5744P FlexPWM init with DMA reload GHS614  Example MPC5744P FlexPWM CTU SGEN triggering GHS614  Example MPC5744P DMA multiple minor transfers GHS614  Example MPC5744P DMA GHS614  Example MPC5744P XBIC0 Error injection on XBAR_0 (Core access to SRAM) GHS614  Example MPC5744P XBIC_1 fault injection on DMA transfer GHS614  Example MPC5744P eTimer CTU ADC synchronization GHS614  Example MPC5744P PIT triggering interrupts GHS614  Example MPC5744P FCCU fault injection GHS614  Example MPC5744P ADC GHS614  Example MPC5744P CTU triggered by eTimer0 GSH614  Example MPC5744P LIN Master Slave test GHS614  Example MPC5744P 1b+2b_FLASH_ECC_error_by_UTEST_area_read GHS614  Example MPC5744P 1b+2b_RAM_ECC_error_injection GHS714  Example MPC5744P 1b+2b_PERRAM_ECC_error_injection GHS614  Example MPC5744P EDC_after_ECC_error_by_UTEST_area_read GHS714  Example MPC5744P_2b_DMEM_ECC_error_injection GHS714  Example MPC5744P 1b+2b_FlexCAN_ECC_error_injection GHS714 Example MPC5744P CGM GHS614  Example MPC5744P eTimer DMA frequency measurement GHS614  Example MPC5744P FlashArrayIntegrityCheck test SSD GHS614 Example MPC5744P SWT Short reset GHS614  Example MPC5744P SWT Long reset GHS614  Example MPC5744P FCCU alarm state GHS614  Example MPC5744P FCCU clear faults GHS614  Example MPC5744P ADC DMA GHS614  Example MPC5744P FlexPWM shifted PWM GHS616  Example MPC5744P PMC SW triggered self-test GHS614  Example MPC5744P PMC Single VD self-test GHS614  Example MPC5744P BIST On-line GHS614 Example MPC5744P EIM RAM ECC error injection GHS614 Example MPC5744P FlexCAN TX RXFIFO ISR GHS614  Example MPC5744P CMPU Initialization GHS614  Example MPC5744P FlexPWM_0&1 synchronization GHS716  Example MPC5744P ADC Self Test GHS716 Go to the top of the page        MPC5777C    S32 Design Studio Example MPC5777C Single ELF multi-core Pin Toggling - S32DS Power 2017.R1  Example MPC5777C DSPI master TX/RX DMA S32DS Power 2.1  Example_MPC5777C-External_SRAM-test-S32DS.Power.2017.R1    GreenHills MULTI Example MPC5777C-PinToggleStationery GHS714  Example MPC5777C-SIUL_External_IRQ GHS714  Example MPC5777C-1b+2b_RAM_ECC_error_injection GHS614  Example MPC5777C FCCU-FOSU-error-injection GHS714 Example MPC5777C TSENS Temperature calculation GHS614  Example MPC5777C eMIOS-eQADC Continuous external trigger mode GHS614  Example MPC5777C-SDADC_simple GHS614  Example MPC5777C-SDADC_eTPU_triggered GHS714  Example MPC5777C-eQADC_Simple GHS714  Example MPC5777C-eQADC_Simple+Calibration GHS714  Example MPC5777C eQADC_Simple+Calibration+Timestamp GHS714 Example MPC5777C-eQADC_A+B-Calibration GHS714  Example MPC5777C FlexCAN simpleTXRX SW poll GHS616  Example MPC5777C MCAN simpleTXRX GHS616  Example MPC5777C MCAN-FD simpleTX RX-ISR GHS616  Example MPC5777C FlexCAN simple TXRX ECC enabled GHS616  Example MPC5777C External SRAM_test GHS714  Example MPC5777C-eTPU_GPIO_test GHS714  Example MPC5777C eTPU_FPM_test GHS714  Example MPC5777C Progresive clock switching GHS716 Example MPC5777C eMIOS IGF test GHS614    Go to the top of the page        MPC5777M    S32 Design Studio Example MPC5777M PinToggleStationery S32DS_1.0  Processor Expert RAppID Suite for MPC5777M and S32DS_1.1 Integration Multicore Example   GreenHills MULTI Example-MPC5777M-CGM (clock configuration) GHS614  Example MPC5777M-DPM-PLL-200MHz GHS614  Example MPC5777M PIT ISR GHS614  Example MPC5777M LINFlex UART Echo SW polling GHS614  Example MPC5777M DSPI_SimpleTXRX S32DS_1.1  Example MPC5777M FCCU Fake fault injection GHS614  Example MPC5777M MCAN simple TX/RX GHS614  Example MPC5777M TSENS Temperature Calculation GHS616  Example MPC5777M FCCU alarm state GHS614 Go to the top of the page        MPC5775K    S32 Design Studio Example MPC5775K PinToggleStationery S32DS_1.0  Example MPC5775K-DMA_Transfer S32DS_1.0  Example MPC5775K UART_with_DMA S32DS_1.0  Example MPC5775K-UART_with_Interrupts S32DS_1.0  Example MPC5775K FlexCAN_with_interrupts_v1.1 S32DS_1.1  Example MPC5775K Semaphores S32DS_1.0  Example MPC5775K eTimer_PWM S32DS_1.0  Example MPC5775K ADC_example S32DS_1.0  Example MPC5775K IIC Communication with RTC PCA8565TS/1 S32DS_1.0  Example MPC5775K DSPI_with_interrupts S32DS_1.0    GreenHills MULTI Example MPC5775K CGM (clock configuration) GHS614  Example MPC5775K PIT ISR GHS614  Example MPC5775K Multicore GHS614 Go to the top of the page        MPC5748G    S32 Design Studio Example MPC5748G-FlexCAN_with_interrupts S32DS_1.0  Example MPC5748G Overlay SRAM Overlay Flash config S32DS  Example MPC5748G FlexCAN RXFIFO SDK PA RTM200 S32DS.Power.2017.R1 Example MPC5748G PretendedNetworkingCAN S32DS_1.0  Example MPC5748G SIUL External Interrupt SDK PA BETA290 S32DS.Power.2017.R1  Example MPC5748G Low power modes S32DS_2017.R1  Example MPC5748G eMIOS BCTU ADC trigger S32DS2.1  Example MPC5748G FlexCAN TX/RX FreeRTOS S32DS2.1  Example MPC5748G FlexCAN FD TX/RX S32DS2.1    GreenHills MULTI Example MPC5748G PinToggleStationery GHS614  Example MPC5748G FlexCAN DMA ISR  Example MPC5748G SMPU initialization GHS614  Example MPC5748G SMPU initialization + Process ID test GHS614  Example MPC5748G Flash RW SSD GHS614  Example MPC5748G Flash RW GHS614  Example MPC5748G PIT ISR GHS614  Example MPC5748G ADC driver GHS614  Example MPC5748G BCTU GHS614 Example MPC5748G + PCF8885 Touch sensing demo GHS614 Example MPC5748G CRC32 GHS614  Example MPC5748G Standby mode GHS614 Example MPC5748G Register Protection GHS614  Example MPC5748G FlexCAN FD simple TX/RX GHS614  Example MPC5748G DSPI extended mode GHS614  Example MPC5748G FMPLL Frequency Modulation GHS614  Example MPC5748G DPM Multicore GHS614  Example MPC5748G LINFlex LIN Master Slave test GHS616  Go to the top of the page        MPC5746C    GreenHills MULTI Example MPC5746C PIT ISR GHS614 Example MPC5746C eMIOS Shifted PWM GHS716 Example MPC5746C FMPLL modulation GHS716 Example MPC5746C FCCU EOUT GHS716   Go to the top of the page        MPC5746R    S32 Design Studio Example MPC5746R PinToggleStationery - S32DS Power 2017.R1  Example MPC5746R FlexCAN_with_interrupts S32DS_1.1  Example MPC5746R eTPU_original_set1_integration PWM_test S32DS.Power.2017.R1 Example MPC5746R DSPI simple TX RX S32DS Power 2017.R1  Example MPC5746R DSPI_serialization S32DS.Power.2.1     GreenHills MULTI Example MPC5746R CGM (clock configuration) GHS614  Example MPC5746R DPM (multicore) GHS614 Example MPC5746R Online BIST GHS614 Example MPC5746R PIT ISR GHS614 Example MPC5746R FCCU Alarm State GHS716 Example MPC5746R ADC Self-test GHS716   Standalone Debugger Script Example MPC5746R Off-line BIST Lauterbach script  Go to the top of the page        S32R274    S32 Design Studio Example S32R274 Multi-core shared memory S32DS_1.2  Example S32R274 FlexCAN_with_Interrupts S32DS_1.1  Example S32R274 Watchdog_example S32DS_1.1    GreenHills MULTI Example S32R274 CGM GHS716 Example S32R274 SWT_2 reset trigger GHS716  Example S32R274 PIT ISR Example S32R274 FCCU read faults GHS716 Go to the top of the page     
View full article
MPC5xxx   Documents eQADC - avoiding unintended result swap  External Bus Interface FAQs  FlexCAN bit timing calculation   Excel configurators MPC5xxx/S32Kxx: CAN / CAN FD bit timing calculation    SW Drivers MPC5xxx I2C communication driver   MPC55xx/56xx   Documents e200 Core Training relevant to MPC55xx and MPC56xx device family  Error Correcting Codes Implemented on MPC55xx and MPC56xx   Excel configurators Excel MPC55xx/MPC56xx PLL Calculator  MMU Assist Register CONFIGURATOR   Debugger Scripts Example JTAG access – Addendum to application notes AN3283 and AN4365    MPC57xx   Excel configurators Core MPU configurator  MPC57xx - DCF records   Debugger Scripts MPC57xx FCCU Utility scripts for Lauterbach debugger   MPC5643L   Documents MPC5643L PWM_ADC measurement concept GSH614    MPC5744P   Documents MPC5744P_System_IO_Definition Using the Built-in Self-Test (BIST) on the MPC5744P  Error Correcting Codes Implemented on MPC5744P  MPC574xP - FCCU configuration guide   Excel configurators Excel MPC5744P Clock Configurator MPC5744P DCF Configurator    MPC5746R   Documents MPC5746R STCU2 BIST configuration guide   Excel configurators MPC5746R DCF Configurator     MPC574xG/C   Documents MPC5646C to MPC574xG Migration - Rev. 0, 09/2013 Draft only   Excel configurators MPC5746C DCF Configurator  MPC5748G DCF Configurator    MPC5775K   Excel configurators MPC5775K DCF Configurator    MPC5777C   Documents MPC5777C - Online BISTs   Excel configurators Excel MPC5777C clock configurator MPC5777C DCF Configurator    MPC5777M   Excel configurators MP5777M DCF Configurator    S32R274   Excel configurators S32R274 DCF Configurator    IDEs (CodeWarrior, S32 Design Studio)   Documents How to program QSPI flash using CodeWarrior 10.x  How to use CRCgen in CodeWarrior for MCU  How to download separate elf/srec/hex file to microcontroller using S32 Design Studio  How to use printf function in S32DS for Power Architecture using EWL library  How to debug code using CodeWarrior 10.5  How to flash two .elf files using CodeWarrior 10.6  How to create FreeRTOS project in S32 Design Studio  How to create new configuration in CodeWarrior for MCU   For more HOWTOs related to S32 Design Studio, visit S32DS for Power - list of HOWTOs 
View full article
This document gives a basic insight into bit timings relationship and provide easy step-by-step guide to calculate CAN bit timing parameters for desired baudrate.
View full article
Revision 1 of the document is now officially published: http://cache.freescale.com/files/microcontrollers/doc/app_note/AN5200.pdf http://cache.freescale.com/files/microcontrollers/doc/app_note/AN5200SW.zip   Related code examples can be found also here (equal to AN5200SW): Example 1 - MPC5634M_2b_RAM_ECC_error_injection CW210 Example 2 - MPC5674F_1b+2b_RAM_ECC_error_injection CW210 Example 3 - MPC5643L 1b_RAM_ECC_error_injection CW210 Example 4 - MPC5643L 2b RAM and 2b FLASH ECC error injection CW210 Example 5 - MPC5675K-2b_RAM+2b_FLASH_ECC_error_injection CW210
View full article
This tool simplifies CAN bit timing calculation for CAN modules (FlexCAN, MCAN) available on MPC5xxx and S32K1xx families.   Enter input parameters into light green cells.   Device and Transceiver are selected from pull-down menus.        By selecting Transceiver, propagation delay parameter is also loaded, but can be simply overwritten by user value. Rest of parameters can be modified directly upon user needs. The tool lists possible setting together with register view. A recommended setting is highlighted. Three criteria are used for recommended values selection - desired sample point - highest fcpi accuracy - same prescalers for nominal and data phases, if CAN FD is calculated   For sure other setting can be selected, if needed, by clicking on respective line in list.   Note: Macros have to be enabled! BR, Petr
View full article
******************************************************************************** * Detailed Description: * * Unlock, erase and program of flash mid block 0x00FB_8000 - 0x00FB_FFFF. * ------------------------------------------------------------------------------ * Test HW:        X - PC5748G - MB (rev C) * MCU:             PPC5748GMMN6A * Maskset:       1N81M * Fsys:             160 MHz * Debugger:     Lauterbach Trace32 *             * Target:     Internal_FLASH * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * * * Initializes the MCU including the FlexCAN peripherals. * Configures the FlexCAN to transmit and receive a CAN message. * * In this config, CAN_0 transmits a message. CAN_1 receives the message. * CAN_0 MB8 is configured to send data. CAN_0 sends message each 1sec. * This interval is generated by PIT. * CAN_1 MB9 is configured to receive a message, SW polling is used. * * to connect FlexCAN0 module (MCU's PB0/PB1 pins) to the motherboard's transceiver * with J5 CAN DB9 connector you have to: * - connect J17 2-6 on daughter board * - connect J17 5-3 on daughter board * This should be done as default   * To connect FlexCAN1 module (MCU's PA14/PA15 pins) to the motherboard's transceiver * with J6 CAN DB9 connector you have to: * - connect J37 2-3 on motherboard * - connect J38 2-3 on motherboard * * Connect CAN0-CANH on P15-1 to CAN1-CANH on P14-1 * Connect CAN0-CANL on P15-2 to CAN1-CANL on P14-2 * Terminate the CAN bus by connecting a 60 ohm resistor between CANH and CANL * ------------------------------------------------------------------------------ * Test HW:  MPC57xx * Maskset:  1N65H * Target :  internal_FLASH * Fsys:     200 MHz PLL with 40 MHz crystal reference * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * * LINFlex UART TXFIFO transmit using DMA * LINFlex UART mode with FIFO receive using DMA * * * EVB connection: * *   Route LINFlexD_0 TXD/RXD (PB2/PB3) signals to the main board RS-232 transceiver *   Daughtercard: *   J17.11–12 ON  .. Connect LINFlexD_0 TXD (PB2) to main board. *   J17.8–9 ON .. Connect LINFlexD_0 RXD (PB3) to main board. * *   Motherboard *   J14 - SCI_RX ON *   J13 - SCI_TX ON *   J25 - SCI_PWR ON * * See results on PC terminal (baudrate 19200, Data bits 8, Stop bits 1, Parity none). * * ------------------------------------------------------------------------------ * Test HW:  MPC57xx * Maskset:  1N65H * Target :  internal_FLASH (debug mode, release mode without debugging information) * Fsys:     200 MHz PLL with 40 MHz crystal reference * Terminal: 19200, 8N1, None ********************************************************************************
View full article
******************************************************************************** * Version:          1.0 * Date:             Oct-22-2014 * Classification:   General Business Information * Brief:         This example demonstrate SWT functionality *                   On SWT timeout it sent signal to FCCU where is short *                   functional reset reaction on SWT timeout configured *                   FCCU then sent signal to RGM module which triggers short *                   functional reset. ******************************************************************************** * Test HW:  MPC57xx * Maskset:  1N65H * Target :  internal_FLASH * Fsys:     200 MHz PLL with 40 MHz crystal reference ******************************************************************************** Revision History: 1.0     Oct-22-2014     b21190(Vlna Peter)  Initial Version 1.1        Mar-24-2015       b21190(Vlna Peter)  Added SWT short reset *******************************************************************************/
View full article
******************************************************************************** * Detailed Description: * * * This example shows synchronization between FlexPWM, CTU and ADC modules. * The FlexPWM Submodule 0 is initialized to generate PWM signal, and rising edge * of PWM B0 signal is used to generate trigger signal for CTU module. The CTU module * sends two commands to ADCs. Single conversion mode is used, so ADC0 ch0 and ch1 * are sampled. The conversion result is used to modify PWM B0 rising egde position * and change delay between external trigger and ADC sequence triggering. * * ------------------------------------------------------------------------------ * Test HW:  MPC57xx * Maskset:  1N65H * Target :  internal_FLASH * Fsys:     200 MHz PLL with 40 MHz crystal reference * * EVB connection: * * P8.1  - A[0]  .. GPIO output, used to see CTU-ADC ISR period * P9.1     - B[7]  .. ADC0 AN[0] input * P9.2     - B[8]  .. ADC0 AN[1] input * P16.4 - I[3] .. CTU0 EXT TRG output   * P8.12    - A[11] .. FlexPWM A[0] output * P8.11    - A[10] .. FlexPWM B[0] output * * connect Trimmer J53.1 to P9.1 to change position of PWM B0 rising edge * connect Trimmer J53.1 to P9.2 to change CTU trigger delay from PWM B0 rising edge * * see CTU0 EXT TRG output signal (toggle on each trigger) on P16.4 with respect of PWM signals * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * This example shows, how to initialize FlexCAN modules for simple transmission * and reception using RX interrupt. Both modules are configured for 100kbit/s * bit rate. CAN_0 module transmits message using MB0. CAN_1 module receives * message using interrupt via MB0. * * * ------------------------------------------------------------------------------ * Test HW:         MPC5748G-324DS, MPC574XG - Motherboard * MCU:             PPC5748GMMN6A 1N81M * Fsys:            PLL0 160MHz * Debugger:        Lauterbach Trace32 *                  PeMicro USB-ML-PPCNEXUS * Target:          internal_FLASH (debug mode, release mode) * EVB connection:  Connect jumpers J15 and J16 on motherboard *                    Connect P14 H to P15 H *                    Connect P14 L to P15 L * ********************************************************************************
View full article
This document describes the configuration, restrictions, principles and correct usage of FCCU module implemented on MPC5744P device. This document is preliminary release.
View full article
******************************************************************************** * Detailed Description: * * Configures the FlexCANs to transmit and receive a CAN FD message with or without * bit rate switching for data phase. * Baudrate during arbitration phase is set to 500kbps, during data phase 2Mpbs. * * In this config, CAN_0 transmits a message. CAN_1 receives the message. * * EVB connection: * * CAN0-CANH on P15-1 to CAN1-CANH on P14-1 * CAN0-CANL on P15-2 to CAN1-CANL on P14-2 * * NOTE! Termination resistor (120Ohm) have to be placed on transceivers output * * ------------------------------------------------------------------------------ * Test HW:  X-MPC574xG-324DS + X-MPC574XG-MB * Maskset:  1N81M * Target :  FLASH * Fsys:     160 MHz PLL * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * This example content a driver for ADC module. * Basic ADC functionality is demonstrated via ADC_0 normal conversion for ADC_0 AN0 channel. * * For closer details on how ADC works I suggest you to check reference manual. * This example sets system clock for 200MHz running from PLL0 module. * Example contains basic ADC functionality demonstration. Software is starting normal ADC conversion * on ADC_0 channel AN0. * To demonstrate the measurement functionality on Freescale MPC57xx motherboard connect jumper to J53. * By doing this the potentiometer is connected to AN0 ADC input. For further details see MPC57xx EVB schematics. * * ------------------------------------------------------------------------------ * Test HW:  MPC57xx Motherboard + MPC5744PE257DC minimodule, MPC5744P, * silicon mask set 1N65H * Target :  internal_FLASH* ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * * Example gives possible implementation of input signal period/freq measurement. * eTimer channel capture 1 and 2 features are used. CAPT1/CAPT2 capture counter * value on rising/falling edge of input signal. The FIFO is set to 2 entries * and ICF2 is monitored. Free-running mode is used here. * * eTimer channel 0-1 are cascaded to achieve 1sec/1Hz measuring with 32bit counter.   * EVB connection: *   P8.2  - A[1]  .. eTimer0 channel1 input signal *   P8.1  - A[0]  .. GPIO output, used to show measurement period * *   Route LINFlexD_0 TXD/RXD (PB2/PB3) signals to the main board RS-232 transceiver *   Daughtercard: *   J17.11–12 ON  .. Connect LINFlexD_0 TXD (PB2) to main board. *   J17.8–9 ON .. Connect LINFlexD_0 RXD (PB3) to main board. * *   Motherboard *   J14 - SCI_RX ON *   J13 - SCI_TX ON *   J25 - SCI_PWR ON * * connect pulse signal to the P8.2. * See results on PC terminal (19200, 8N1, None). * Change freq/duty of input signal. * * ------------------------------------------------------------------------------ * Test HW:  MPC57xx * Maskset:  1N65H * Target :  internal_FLASH * Fsys:     200 MHz PLL with 40 MHz crystal reference * Terminal: 19200, 8N1, None ********************************************************************************
View full article
This demo performs a communication on LIN bus between two MPC5604B EVBs.   LinFlex0 LIN Master ******************************************************************************** * Detailed Description: * - send header from a LIN Master * - either receive data from a LIN Slave or transmit a data * - no interrupt is used, just SW pooling * * ------------------------------------------------------------------------------ * Test HW:  XPC560B 144 LQFP MINIMODULE, XPC56XX EVB MOTHERBOARD, SPC5604B 2M27V * Target :  internal_RAM, Flash * LinFlex0: Lin Master, 19200 baudrate * Fsys:     64 MHz PLL with 8 MHz crystal reference * * ------------------------------------------------------------------------------ * EVB connections and jumper configuration * * XPC56XX EVB MOTHERBOARD * for LinFlex0 connection to the MC33661 LIN transceiver: * - RXDA_SEL (near SCI !!!!) jumper over pins 1-2 * - TXDA_SEL (near SCI) jumper over 1-2 * * for LIN Master functionality * - VSUP (J6) jumper fitted *   lin xceiver will get +12V from the EVB * - V_BUS (J14) jumper not fitted * - MASTER_EN jumper fitted * - LIN_EN jumper fitted * ********************************************************************************     LinFlex0 LIN Slave ******************************************************************************** * Detailed Description: * - receive header from a LIN Master * - either receive data from a LIN Master or transmit a data * - Filter can be enabled with the FILT_EN = 1 * - If filter is enabled TX interrupt is used to prepare data to send and *    RX interrupt to read received data * - If filter is disabled SW polling is used * * ------------------------------------------------------------------------------ * Test HW:  XPC560B 144 LQFP MINIMODULE, XPC56XX EVB MOTHERBOARD, SPC5604B 2M27V * Target :  internal_RAM * LinFlex0: Lin Slave, 19200 baudrate * Fsys:     64 MHz PLL with 8 MHz crystal reference * * ------------------------------------------------------------------------------ * EVB connections and jumper configuration * * XPC56XX EVB MOTHERBOARD * for LinFlex0 connection to the MC33661 LIN transceiver: * - RXDA_SEL (near SCI !!!!) jumper over pins 1-2 * - TXDA_SEL (near SCI) jumper over pins 1-2 * * for LIN Slave functionality * - VSUP (J6) jumper not fitted ...LIN transceiver will get +12V from the Master * - V_BUS jumper not fitted * - MASTER_EN jumper not fitted * - LIN_EN jumper fitted * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * Application performs basic initialization, setup PLL to maximum allowed * frequency * * * Mode transition to LPU_STOP is executed. CAN_0 is configured to wake up from *  LPU_STOP to LPU_RUN using message with standard IDE = 0 as a wake up *  preselected matching criteria. After wake up from LPU_STOP, user *  LED1 is blinking.   * * Modified files: mem.ld, sections.ld, startup.s, added file z2_restart.s * * * ------------------------------------------------------------------------------ * Test HW:         MPC5748G-324DS, MPC574xG Motherboard * MCU:             PPC5748GMMN6A 1N81M * Fsys:            PLL0 160MHz * Debugger:        Lauterbach Trace32 *                  PeMicro USB-ML-PPCNEXUS * Target:          internal_FLASH (debug mode, release mode) * EVB connection:  Default * * * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * * ------------------------------------------------------------------------------ * Test HW:  TRK-MPC5604P, SPC5604P * Maskset:  0M36W * Target :  RAM * Terminal: no * Fsys:     64 MHz PLL with 8 MHz crystal reference in RUN0. IRC in DRUN * * 1. you have to use an external power supply to the board (SBC power)   2. The SBC chip must be initialized (via SPI interface) to turn on the CAN transceiver.   3. For ease of use, install the VSUP shunt on (jumper J5). This it to put 9 V on the SBC's DBG pin - refer to the SBC Data Sheet for more details about the DBG pin of the SBC chip.   4. This code initializes the MCU, then sends commands to the SBC chip over the SPI bus to turn on the CAN transceiver, then the FlexCAN_0 module transmits a message out of the board.   I/O configuration for the TRK-MPC5604P CAN example:   MCU_PB0 -> SBC_TXD  (MPC5604P CAN0TX PCR[16] ALT1 function) MCU_PB1 <- SBC_RXD  (MPC5604P CAN0RX PCR[17] input function)   SPI bus between the MCU and SBC:   MCU_PC4 -> SBC_!CS    (MPC5604P DSPI_0 CS0  ALT1 function PCR[36]) MCU_PC5 -> SBC_CLK    (MPC5604P DSPI_0 SCK  ALT1 function PCR[37]) MCU_PC6 -> SBC_MOSI   (MPC5604P DSPI_0 SOUT ALT1 function PCR[38]) MCU_PC7 <- SBC_MISO   (MPC5604P DSPI_0 SIN  input function PCR[39])  * ********************************************************************************
View full article
With author's permission I am publishing presentation comparing e200 cores to each other and describing them in detail.   Document was created in year 2010, thus it does not deal with cores subsequently used with MPC57xx devices.   Thanks to Robert Moran for his great job.
View full article
******************************************************************************** * Detailed Description: * Application performs basic initialization, setup PLL to maximum allowed freq., * initializes interrupts, blinking one LED by interrupt, * initializes and display notice via UART terminal and then terminals ECHO. * * * Test HW:        X-MPC5744PE257DC, MPC57xx motherboard * MCU:              PPC5744PFMMM8 1N65H * Terminal:        19200-8-no parity-1 stop bit-no flow control on LINFlexD_0 * Fsys:             200 MHz * Debugger:      Lauterbach Trace32 *                       PeMicro USB-ML-PPCNEXUS * Target:          internal_FLASH (debug mode, release mode) * EVB connection:  User LED 1 connected to A0 (P8.0), * ********************************************************************************
View full article