DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

S9S08QD4CSC 查看數據表(PDF) - Freescale Semiconductor

零件编号
产品描述 (功能)
生产厂家
S9S08QD4CSC
Freescale
Freescale Semiconductor 
S9S08QD4CSC Datasheet PDF : 198 Pages
First Prev 141 142 143 144 145 146 147 148 149 150 Next Last
Timer/Pulse-Width Modulator (S08TPMV2)
7
6
5
4
3
2
1
0
R Bit 7
6
5
4
3
2
1
Bit 0
W
Any write to TPMxCNTL clears the 16-bit counter.
Reset
0
0
0
0
0
0
0
0
Figure 11-5. Timer Counter Register Low (TPMxCNTL)
When background mode is active, the timer counter and the coherency mechanism are frozen such that the
buffer latches remain in the state they were in when the background mode became active even if one or
both bytes of the counter are read while background mode is active.
11.3.3 Timer Counter Modulo Registers (TPMxMODH:TPMxMODL)
The read/write TPM modulo registers contain the modulo value for the TPM counter. After the TPM
counter reaches the modulo value, the TPM counter resumes counting from 0x0000 at the next clock
(CPWMS = 0) or starts counting down (CPWMS = 1), and the overflow flag (TOF) becomes set. Writing
to TPMxMODH or TPMxMODL inhibits TOF and overflow interrupts until the other byte is written.
Reset sets the TPM counter modulo registers to 0x0000, which results in a free-running timer counter
(modulo disabled).
7
6
5
4
3
2
R
Bit 15
14
13
12
11
10
W
1
0
9
Bit 8
Reset
0
0
0
0
0
0
0
0
Figure 11-6. Timer Counter Modulo Register High (TPMxMODH)
7
6
5
4
3
2
1
0
R
Bit 7
6
5
4
3
2
1
Bit 0
W
Reset
0
0
0
0
0
0
0
0
Figure 11-7. Timer Counter Modulo Register Low (TPMxMODL)
It is good practice to wait for an overflow interrupt so both bytes of the modulo register can be written well
before a new overflow. An alternative approach is to reset the TPM counter before writing to the TPM
modulo registers to avoid confusion about when the first counter overflow will occur.
MC9S08QD4 Series MCU Data Sheet, Rev. 6
150
Freescale Semiconductor

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]