mc9s08ac16 Freescale Semiconductor, Inc, mc9s08ac16 Datasheet - Page 180

no-image

mc9s08ac16

Manufacturer Part Number
mc9s08ac16
Description
Hcs08 Microcontrollers 8-bit Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s08ac16CFGE
Manufacturer:
FREESCAL
Quantity:
4 000
Part Number:
mc9s08ac16CFGE
Manufacturer:
FREESCALE
Quantity:
5 800
Part Number:
mc9s08ac16CFGE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08ac16CFGE
Manufacturer:
FREESCALE
Quantity:
5 800
Part Number:
mc9s08ac16CFGE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08ac16CFGE
0
Part Number:
mc9s08ac16CFGER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s08ac16CFJE
Manufacturer:
FREESCALE
Quantity:
5 375
Part Number:
mc9s08ac16MFGE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
mc9s08ac16MFJE
Manufacturer:
FREESCALE
Quantity:
20 000
Chapter 10 Timer/PWM Module (S08TPMV3)
Reset clears the TPM counter registers. Writing any value to TPMxCNTH or TPMxCNTL also clears the
TPM counter (TPMxCNTH:TPMxCNTL) and resets the coherency mechanism, regardless of the data
involved in the write.
When BDM is active, the timer counter is frozen (this is the value that will be read by user); the coherency
mechanism is frozen such that the buffer latches remain in the state they were in when the BDM became
active, even if one or both counter halves are read while BDM is active. This assures that if the user was
in the middle of reading a 16-bit register when BDM became active, it will read the appropriate value from
the other half of the 16-bit value after returning to normal execution.
In BDM mode, writing any value to TPMxSC, TPMxCNTH or TPMxCNTL registers resets the read
coherency mechanism of the TPMxCNTH:L registers, regardless of the data involved in the write.
10.5.3
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, and
the overflow flag (TOF) becomes set. Writing to TPMxMODH or TPMxMODL inhibits the TOF bit 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).
Writing to either byte (TPMxMODH or TPMxMODL) latches the value into a buffer and the registers are
updated with the value of their write buffer according to the value of CLKSB:CLKSA bits, so:
The latching mechanism may be manually reset by writing to the TPMxSC address (whether BDM is
active or not).
180
Reset
Reset
W
W
R
R
If (CLKSB:CLKSA = 0:0), then the registers are updated when the second byte is written
If (CLKSB:CLKSA not = 0:0), then the registers are updated after both bytes were written, and the
TPM counter changes from (TPMxMODH:TPMxMODL - 1) to (TPMxMODH:TPMxMODL). If
the TPM counter is a free-running counter, the update is made when the TPM counter changes from
0xFFFE to 0xFFFF
Bit 15
Bit 7
TPM Counter Modulo Registers (TPMxMODH:TPMxMODL)
0
0
7
7
14
0
6
0
6
6
Figure 10-8. TPM Counter Register High (TPMxCNTH)
Figure 10-9. TPM Counter Register Low (TPMxCNTL)
Any write to TPMxCNTH clears the 16-bit counter
Any write to TPMxCNTL clears the 16-bit counter
MC9S08AC16 Series Data Sheet, Rev. 0
13
5
0
5
5
0
PRELIMINARY
12
0
4
0
4
4
11
0
3
0
3
3
10
0
2
0
2
2
Freescale Semiconductor
1
9
0
1
1
0
Bit 8
Bit 0
0
0
0
0

Related parts for mc9s08ac16