Example MPC5777C-SIUL_External_IRQ GHS714

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

Example MPC5777C-SIUL_External_IRQ GHS714

Example MPC5777C-SIUL_External_IRQ GHS714

********************************************************************************
* Detailed Description:
* Application performs basic initialization, initializes interrupts and external
* interrupt for IRQ0 pin (alternative function of ETPUC9 pin).
* User needs to connect ETPUC9 pin to user switch and general purpose output
* ETPUA30 to user LED 1:
* ETPUA30 (PortP P23-15) --> USER_LED_1 (P7-1)
* ETPUC9  (PortV P30-8) --> USER_SWITCHES (P6-4)
*
* If rising edge is detected (i.e. button is pressed), interrupt is triggered
* and LED1 on is toggled.
*
* ------------------------------------------------------------------------------
* 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)
*                  ETPUC9  (PortV P30-8) --> USER_SWITCHES (P6-4)
********************************************************************************

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1116848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5777C-SIUL_External_IRQ%20GHS714%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1116848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20initializes%20interrupts%20and%20external%3CBR%20%2F%3E*%20interrupt%20for%20IRQ0%20pin%20(alternative%20function%20of%20ETPUC9%20pin).%3CBR%20%2F%3E*%20User%20needs%20to%20connect%20ETPUC9%20pin%20to%20user%20switch%20and%20general%20purpose%20output%3CBR%20%2F%3E*%20ETPUA30%20to%20user%20LED%201%3A%3CBR%20%2F%3E*%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3CBR%20%2F%3E*%20ETPUC9%26nbsp%3B%20(PortV%20P30-8)%20--%26gt%3B%20USER_SWITCHES%20(P6-4)%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20If%20rising%20edge%20is%20detected%20(i.e.%20button%20is%20pressed)%2C%20interrupt%20is%20triggered%3CBR%20%2F%3E*%20and%20LED1%20on%20is%20toggled.%3CBR%20%2F%3E*%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*%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%20%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3CBR%20%2F%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%20ETPUC9%26nbsp%3B%20(PortV%20P30-8)%20--%26gt%3B%20USER_SWITCHES%20(P6-4)%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1116848%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20initializes%20interrupts%20and%20external%3CBR%20%2F%3E*%20interrupt%20for%20IRQ0%20pin%20(alternative%20function%20of%20ETPUC9%20pin).%3CBR%20%2F%3E*%20User%20needs%20to%20connect%20ETPUC9%20pin%20to%20user%20switch%20and%20general%20purpose%20output%3CBR%20%2F%3E*%20ETPUA30%20to%20user%20LED%201%3A%3CBR%20%2F%3E*%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3CBR%20%2F%3E*%20ETPUC9%26nbsp%3B%20(PortV%20P30-8)%20--%26gt%3B%20USER_SWITCHES%20(P6-4)%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20If%20rising%20edge%20is%20detected%20(i.e.%20button%20is%20pressed)%2C%20interrupt%20is%20triggered%3CBR%20%2F%3E*%20and%20LED1%20on%20is%20toggled.%3CBR%20%2F%3E*%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*%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%20%3CBR%20%2F%3E*%20EVB%20connection%3A%26nbsp%3B%20ETPUA30%20(PortP%20P23-15)%20--%26gt%3B%20USER_LED_1%20(P7-1)%3CBR%20%2F%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%20ETPUC9%26nbsp%3B%20(PortV%20P30-8)%20--%26gt%3B%20USER_SWITCHES%20(P6-4)%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E
No ratings
Version history
Last update:
‎06-29-2017 01:57 AM
Updated by: