Recent Posts

Freescale/NXP MPC5606B: External Interrupt Program


TRK-MPC5606B
PROBLEM STATEMENT:3 External Interrupts at
PA[3] (IRQ0),
PA[6] (IRQ1) ,
PA[7] (IRQ2)
are enabled for both Rising and Falling Edge.


Program Outcome:
Rising Edge  @ PA[3](IRQ0) => LED1 ON
Falling Edge @ PA[3](IRQ0) => LED1 OFF
 
Rising Edge  @ PA[6](IRQ1) => LED2 ON
Falling Edge @ PA[6](IRQ1) => LED2 OFF
 
Rising Edge  @ PA[7](IRQ2) => LED3 ON
Falling Edge @ PA[7](IRQ2) => LED3 OFF



Connections:
Connect External Interrupt at PA[3],PA[6] & PA[7]
PA[3] => PCR[3] => PIN 90  => IRQ0
PA[6] => PCR[6] => PIN 119 => IRQ1
PA[7] => PCR[7] => PIN 104 => IRQ2

LED No. => Port No. => Pad No. => Pin No.(144-pin LQFP package)
LED1    => PE[4]    => PCR[68] => PIN 132
LED2    => PE[5]    => PCR[69] => PIN 133
LED3    => PE[6]    => PCR[70] => PIN 139
LED4    => PE[7]    => PCR[71] => PIN 140

SWITCH No. => Port No. => Pad No. => Pin No.(144-pin LQFP package)
SWITCH1    => PE[0]    => PCR[64] => PIN 10
SWITCH2    => PE[1]    => PCR[65] => PIN 12
SWITCH3    => PE[2]    => PCR[66] => PIN 128
SWITCH4    => PE[3]    => PCR[67] => PIN 129

NOTE:
IRQ_SET0: IRQ 0 to 7    =>  VectorNum = 41 :(IRQ 0 to 7 have same Priority) 
IRQ_SET1: IRQ 8 to 15   =>  VectorNum = 42 :(IRQ 8 to 15 have same Priority) 
IRQ_SET2: IRQ 16 to 23  =>  VectorNum = 43 :(IRQ 16 to 23 have same Priority) 

> When 1 interrupt is executing, another interrupt doesn't get triggered. 
> Program developed by Akshay P Daga

Downloads:
Ext_Interr_TRK-MPC5606B_APDaga

Click here to see more codes for Freescale/NXP MPC56xx Family.

Feel free to ask doubts in the comment section. I will try my best to solve it.
If you find this helpful by any mean like, comment and share the post.
This is the simplest way to encourage me to keep doing such work.

Thanks and Regards,
-Akshay P. Daga

No comments