Example MPC5777C-PinToggleStationery GHS714

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

Example MPC5777C-PinToggleStationery GHS714

Example MPC5777C-PinToggleStationery GHS714

********************************************************************************

* Detailed Description:

* Application performs basic initialization, initializes interrupts, blinking

* one LED by Core0, second by Core1 (by interrupt), initializes and display

* notice via UART terminal and then terminal ECHO.

*

* ------------------------------------------------------------------------------

* 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

* EVB connection:  ETPUA30 (PortP P23-15) --> USER_LED_1 (P7-1)

*                  ETPUA31 (PortP P23-14) --> USER_LED_2 (P7-2)

*

********************************************************************************

Labels (1)
Attachments
Comments

Hi,

Thanks for this example,could you help me about the clock source to the PIT Timer .

what is the out put clock friquency of phi and phi1.

please help on .

Thanks!

It is configured at the very beginning in the file init.s, comments say


# configure PLL0 to 192MHz (40MHz XOSC reference)
# configure PLL1 to 264MHz (48MHz PLL0 PHI1 output reference)

%3CLINGO-SUB%20id%3D%22lingo-sub-1102948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5777C-PinToggleStationery%20GHS714%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%20Application%20performs%20basic%20initialization%2C%20initializes%20interrupts%2C%20blinking%3C%2FP%3E%3CP%3E*%20one%20LED%20by%20Core0%2C%20second%20by%20Core1%20(by%20interrupt)%2C%20initializes%20and%20display%3C%2FP%3E%3CP%3E*%20notice%20via%20UART%20terminal%20and%20then%20terminal%20ECHO.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%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%3C%2FP%3E%3CP%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%3C%2FP%3E%3CP%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%3C%2FP%3E%3CP%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3C%2FP%3E%3CP%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%3C%2FP%3E%3CP%3E*%20Terminal%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2019200-8-no%20parity-1%20stop%20bit-no%20flow%20control%20on%20eSCI_A%3C%2FP%3E%3CP%3E*%20EVB%20connection%3A%26nbsp%3B%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3C%2FP%3E%3CP%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ETPUA31%20(PortP%20P23-14)%20--%26gt%3B%20USER_LED_2%20(P7-2)%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1102948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%20Application%20performs%20basic%20initialization%2C%20initializes%20interrupts%2C%20blinking%3C%2FP%3E%3CP%3E*%20one%20LED%20by%20Core0%2C%20second%20by%20Core1%20(by%20interrupt)%2C%20initializes%20and%20display%3C%2FP%3E%3CP%3E*%20notice%20via%20UART%20terminal%20and%20then%20terminal%20ECHO.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%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%3C%2FP%3E%3CP%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%3C%2FP%3E%3CP%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%3C%2FP%3E%3CP%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3C%2FP%3E%3CP%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%3C%2FP%3E%3CP%3E*%20Terminal%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2019200-8-no%20parity-1%20stop%20bit-no%20flow%20control%20on%20eSCI_A%3C%2FP%3E%3CP%3E*%20EVB%20connection%3A%26nbsp%3B%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3C%2FP%3E%3CP%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ETPUA31%20(PortP%20P23-14)%20--%26gt%3B%20USER_LED_2%20(P7-2)%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1102948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1102950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5777C-PinToggleStationery%20GHS714%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIt%20is%20configured%20at%20the%20very%20beginning%20in%20the%20file%20init.s%2C%20comments%20say%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%23%20configure%20PLL0%20to%20192MHz%20(40MHz%20XOSC%20reference)%3CBR%20%2F%3E%23%20configure%20PLL1%20to%20264MHz%20(48MHz%20PLL0%20PHI1%20output%20reference)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1102949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Example%20MPC5777C-PinToggleStationery%20GHS714%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThanks%20for%20this%20example%2Ccould%20you%20help%20me%20about%20the%20clock%20source%20to%20the%20PIT%20Timer%20.%3C%2FP%3E%3CP%3Ewhat%20is%20the%20out%20put%20clock%20friquency%20of%26nbsp%3B%3CSTRONG%3Ephi%20%3C%2FSTRONG%3Eand%26nbsp%3B%3CSTRONG%3Ephi1.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eplease%20help%20on%20.%3C%2FP%3E%3CP%3E%3CSTRONG%3EThanks!%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎10-01-2015 07:18 AM
Updated by: