English
Language : 

MC9RS08KA2 Datasheet, PDF (91/132 Pages) Freescale Semiconductor, Inc – Microcontrollers
Modulo Timer (RS08MTIMV1)
11.3.2 MTIM Clock Configuration Register (MTIMCLK)
MTIMCLK contains the clock select bits (CLKS) and the prescaler select bits (PS).
7
6
5
4
3
2
1
0
R
0
0
CLKS
PS
W
Reset:
0
0
0
0
0
0
0
0
Figure 11-4. MTIM Clock Configuration Register (MTIMCLK)
Table 11-4. MTIMCLK Field Description
Field
5:4
CLKS
3:0
PS
Description
Clock Source Select — These two read/write bits select one of four different clock sources as the input to the
MTIM prescaler. Changing the clock source while the counter is active does not clear the counter. The count
continues with the new clock source. Reset clears CLKS to 00.
00 Encoding 0 — Bus clock (BUSCLK).
01 Encoding 1 — Fixed-frequency clock (XCLK).
10 Encoding 3 — External source (TCLK pin), falling edge.
11 Encoding 4 — External source (TCLK pin), rising edge.
Clock Source Prescaler — These four read/write bits select one of nine outputs from the 8-bit prescaler.
Changing the prescaler value while the counter is active does not clear the counter. The count continues with the
new prescaler value. Reset clears PS to 0000.
0000 Encoding 0 — MTIM clock source ÷ 1.
0001 Encoding 1 — MTIM clock source ÷ 2.
0010 Encoding 2 — MTIM clock source ÷ 4.
0011 Encoding 3 — MTIM clock source ÷ 8.
0100 Encoding 4 — MTIM clock source ÷ 16.
0101 Encoding 5 — MTIM clock source ÷ 32.
0110 Encoding 6 — MTIM clock source ÷ 64.
0111 Encoding 7 — MTIM clock source ÷ 128.
1000 Encoding 8 — MTIM clock source ÷ 256.
All other encodings default to MTIM clock source ÷ 256.
11.3.3 MTIM Counter Register (MTIMCNT)
MTIMCNT is the read-only value of the current MTIM count of the 8-bit counter.
7
R
6
5
4
3
COUNT
2
1
0
W
Reset:
0
0
0
0
0
0
0
0
Figure 11-5. MTIM Counter Register (MTIMCNT)
MC9RS08KA2 Series Data Sheet, Rev. 2
Freescale Semiconductor
91