Example MPC5777C eTPU_FPM_test GHS714

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

Example MPC5777C eTPU_FPM_test GHS714

Example MPC5777C eTPU_FPM_test GHS714

********************************************************************************
* Detailed Description:
* A simple example configures eTPU engine B channels 0/1 for QOM and FPM.
* Connect these pins by wire. Output wave is generated on chnl ETPUB0 (QOM0)
* and its frequency is measured on the chnl ETPUB1 (FPM0).
* TCR counter frequency is 64MHz, output wave configured as 1MHz ( expected
* frequency measured by FPM. Window size is 28us (0x400) thus number of
* measured pulses is 28 (27 initally).
*
* Note: It is needed to configure IGF module, otherwise inputs does not pass
* to eTPU module.
*
* ------------------------------------------------------------------------------
* 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
* EVB connection:  ETPUB0 (PortR P25-1) --> ETPUB1 (PortR P25-0) by wire
*
********************************************************************************

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1123492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5777C%20eTPU_FPM_test%20GHS714%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20A%20simple%20example%20configures%20eTPU%20engine%20B%20channels%200%2F1%20for%20QOM%20and%20FPM.%3CBR%20%2F%3E*%20Connect%20these%20pins%20by%20wire.%20Output%20wave%20is%20generated%20on%20chnl%20ETPUB0%20(QOM0)%3CBR%20%2F%3E*%20and%20its%20frequency%20is%20measured%20on%20the%20chnl%20ETPUB1%20(FPM0).%3CBR%20%2F%3E*%20TCR%20counter%20frequency%20is%2064MHz%2C%20output%20wave%20configured%20as%201MHz%20(%20expected%3CBR%20%2F%3E*%20frequency%20measured%20by%20FPM.%20Window%20size%20is%2028us%20(0x400)%20thus%20number%20of%3CBR%20%2F%3E*%20measured%20pulses%20is%2028%20(27%20initally).%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Note%3A%20It%20is%20needed%20to%20configure%20IGF%20module%2C%20otherwise%20inputs%20does%20not%20pass%3CBR%20%2F%3E*%20to%20eTPU%20module.%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MPC5777C-512DS%20Rev.A%20%2B%20MPC57xx%20MOTHER%20BOARD%20Rev.C%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PPC5777CMM03%202N45H%20CTZZS1521A%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PLL1%20%3D%20core_clk%20%3D%20264MHz%2C%20PLL0%20%3D%20192MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20ETPUB0%20(PortR%20P25-1)%20--%26gt%3B%20ETPUB1%20(PortR%20P25-0)%20by%20wire%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1123492%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20A%20simple%20example%20configures%20eTPU%20engine%20B%20channels%200%2F1%20for%20QOM%20and%20FPM.%3CBR%20%2F%3E*%20Connect%20these%20pins%20by%20wire.%20Output%20wave%20is%20generated%20on%20chnl%20ETPUB0%20(QOM0)%3CBR%20%2F%3E*%20and%20its%20frequency%20is%20measured%20on%20the%20chnl%20ETPUB1%20(FPM0).%3CBR%20%2F%3E*%20TCR%20counter%20frequency%20is%2064MHz%2C%20output%20wave%20configured%20as%201MHz%20(%20expected%3CBR%20%2F%3E*%20frequency%20measured%20by%20FPM.%20Window%20size%20is%2028us%20(0x400)%20thus%20number%20of%3CBR%20%2F%3E*%20measured%20pulses%20is%2028%20(27%20initally).%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Note%3A%20It%20is%20needed%20to%20configure%20IGF%20module%2C%20otherwise%20inputs%20does%20not%20pass%3CBR%20%2F%3E*%20to%20eTPU%20module.%3CBR%20%2F%3E*%20%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MPC5777C-512DS%20Rev.A%20%2B%20MPC57xx%20MOTHER%20BOARD%20Rev.C%3CBR%20%2F%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PPC5777CMM03%202N45H%20CTZZS1521A%3CBR%20%2F%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PLL1%20%3D%20core_clk%20%3D%20264MHz%2C%20PLL0%20%3D%20192MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20ETPUB0%20(PortR%20P25-1)%20--%26gt%3B%20ETPUB1%20(PortR%20P25-0)%20by%20wire%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E
No ratings
Version history
Last update:
‎05-30-2019 05:47 AM
Updated by: