Electronic Components Datasheet Search
  English  ▼

X  

MPC8540 Datasheet(PDF) 428 Page - Freescale Semiconductor, Inc

Part # MPC8540
Description  MPC8540 PowerQUICC III??Integrated Host Processor Reference Manual
PDF  1302 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MPC8540 Datasheet(HTML) 428 Page - Freescale Semiconductor, Inc

Back Button MPC8540 Datasheet HTML 424Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 425Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 426Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 427Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 428Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 429Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 430Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 431Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 432Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 428 / 1302 page
background image
MPC8540 PowerQUICC III Integrated Host Processor Reference Manual, Rev. 1
10-24
Freescale Semiconductor
Programmable Interrupt Controller
10.3.2.6 Timer Control Register (TCR)
The timer control register (TCR) shown in Figure 10-15 provides various configuration options
such as count frequency and roll-over behavior.
There are two choices for the clock source for the timers: a selectable frequency ratio from the
CCB clock, or the RTC signal. The TCR also provides the ability to create timers larger than the
default 31-bit global timers. Timer cascade fields allow configuration of up to two 63-bit timers,
one 95-bit timer or one 127-bit timer.
With one exception mentioned below, the value reloaded into a timer is determined by its roll-over
control field TCR[ROVR]. Setting a timer’s roll-over field causes its current count register to roll
over to all ones when the count reaches zero. This is equivalent to reloading the count register with
0xFFFF_FFFF instead of its base count value. Clearing a timer’s associated ROVR bit ensures the
timer always reloads with its base count value.
When timers are cascaded the last (most significant) counter in the cascade also affects their
roll-over behavior. Cascaded timers always reload their base count when the most significant
counter has decremented to zero, regardless of the settings in TCR[ROVR].
For example, timers 0, 1, and 2 can be cascaded to generate one interrupt every hour. As shown in
Table 10-19, given a CCB clock of 333 MHz, letting the timer clock frequency default to 1/8 the
system clock, (TCR[CLKR] = 0 sets a clock ratio of 8), provides a basic input of 41.625 MHz to
timer 0. Setting timer 0 to count 41,625,000 (0x27B_25A8) timer clock cycles will generate one
output per second. Setting both timers 1 and 2 to 59, and cascading all three timers, generates one
interrupt every hour from timer 2.
Figure 10-14. Example Calculation for Cascaded Timers
Figure 10-15. Timer Control Register (TCR)
Table 10-19. Parameters for Hourly Interrupt Timer Cascade Example
System Clock
Clock Ratio
Timer Clock
Timer 0 Count
Timer 1 Count
Timer 2 Count
333 MHz
1 / 8
41.625 MHz
41.625 x 106
(0x027B_25A8)
591
(0x0000_0036)
1 Counting down from 59 through 0 requires 60 ticks.
59
(0x0000_0036)
0
4
5
7
8
141516
21 22 23 24
28 29
31
R 000
00
ROVR
00
00000
RTM
00
0000
CLKR
0000
0
CASC
W
Reset
0000_0000_0000_0000_0000_0000_0000_0000
Offset
0x4_1300
(41.625 x 106 ticks/sec) * (60 sec/min) * (60 min/hr) = total ticks/hr generating 1 interrupt/hr



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com