Figure 37 : PIT Module Control Register (R.M. Rev8 – Fig. 24-57)
The module is disabled by default, to enable it; we have to write ‘0’ to MDIS (Module Disable)
field. The FRZ field allows stopping the timers in debug mode by writing ‘1’.
Each of the six timers [0...5] have the following registers:
Timer Control Register (TCTRL) with a 1-bit timer enable (TEN) field and another 1-bit
timer interrupt enable (TIE) field.
Timer Load Value Register (LDVAL) with a 32-bit TSV (Timer Start Value) field.
Current Timer Value Register (CVAL) with a 32-bit TVL (Timer Value) field.
Timer Flag Register (TFLG) with a one bit timer interrupt flag field TIF (write ’1’ to clear
the flag).
Disabling then enabling a timer will restart à new period for the timer
(LDVAL loaded in CVAL). The timer automatically loads LDVAL in CVAL
when it reaches 0 and triggers an interrupt. It is possible to change
LDVAL value while the timer is running; the timer will load the new
value on the next trigger event.
Figure 39 : Changing Timer Period (R.M. Rev8 – Fig. 24-64)
Figure 38 : Some PITs can
trigger a peripheral event
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: ......