![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 62](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604062.webp)
The system clock runs at 8MHz so to get a PIT2 flag with a 1kHz frequency requires a TimeOut
value of 8000. Also ADC has to be configured to run with injected conversions with triggers
coming from PIT 2. Channel 1 and its end of conversion are set:
Meanwhile, from the SIUL, LEDs have to be selected as GPIO output, two buttons as GPIO inputs,
two pins as eMIOS channels and a pin for ADC input.
eMIOS is initialised with a prescaler of 8 for getting 1MHz internal clock. Its channel 23 is
configured as MCB counting from 1 to 1000, giving a roll-over at 1kHz. The channel 22 is
configured as OPWMB with a leading edge at zero and a trailing edge at 25%.And then a function
is given for setting the eMIOS channel’s duty cycle:
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: ......