![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 25](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604025.webp)
Figure 27 : Masked Parallel GPIO Pad Data Out Registers (Reference Manual Rev7 – Table 8-18)
Here’s the equivalent code for turning all LEDs off for the previous code written with these new
registers:
4.
External interrupts
Figure 28 : External Interrupt Pad Diagram (Reference Manual Rev7 – Fig. 8-17)
16 pads among 123 have External Interrupt functionality, a rising or falling edge can be set to
trigger an interrupt. There are two system interrupt vectors spared for EIRQ pins, IRQ0 for
EIRQ[0:7] and IRQ2 for EIRQ[8:15]. Looking at the diagram above we can identify following
registers:
Interrupt Request Enable Register (IRER) with a 16-bit field to specify pads that can
request interrupts,
Interrupt Status Flag Register (ISR): has a 16-bit flag field called EIF, flags can be
cleared by writing 1,
Interrupt Rising-Edge Event Enable Register (IREER): a rising edge triggers the
interrupt,
Interrupt Falling-Edge Event Enable Register (IFEER): a falling edge triggers the
interrupt, (note that a pad can trigger interrupts on both rising and falling edge
events).
SIU
.MPGPDO[4].R = 0x0F000F00;
// All LEDs are off.
Summary of Contents for MPC5604B
Page 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Page 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Page 87: ......
Page 132: ......
Page 133: ...127 Appendix 2 Pad Configurations...
Page 134: ......
Page 135: ......
Page 136: ......
Page 137: ......
Page 138: ......
Page 139: ......
Page 140: ......
Page 141: ...Appendix 3 Peripheral input pin selection...
Page 142: ......
Page 143: ...137 Appendix 4 Interrupt Vector Table...
Page 144: ......
Page 145: ......
Page 146: ......
Page 147: ......
Page 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Page 149: ......
Page 150: ......