MC9S08GT16 MOTOROLA [Motorola, Inc], MC9S08GT16 Datasheet - Page 163
MC9S08GT16
Manufacturer Part Number
MC9S08GT16
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
1.MC9S08GT16.pdf
(290 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
MC9S08GT16ACBE
Manufacturer:
SHARP
Quantity:
1 200
Company:
Part Number:
MC9S08GT16ACFBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Company:
Part Number:
MC9S08GT16ACFBER
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC9S08GT16ACFBER
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Company:
Part Number:
MC9S08GT16AMFBE
Manufacturer:
XILINX
Quantity:
1 300
Company:
Part Number:
MC9S08GT16AMFBE
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Company:
Part Number:
MC9S08GT16CFBE
Manufacturer:
FREESCALE
Quantity:
1 831
Part Number:
MC9S08GT16CFBE
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC9S08GT16CFD
Manufacturer:
FREESCALE
Quantity:
20 000
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.
10.7.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 $0000 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 the TOF bit and overflow interrupts until the other byte is
written. Reset sets the TPM counter modulo registers to $0000, which results in a free-running timer
counter (modulo disabled).
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.
10.7.4
TPMxCnSC contains the channel interrupt status flag and control bits that are used to configure the
interrupt enable, channel configuration, and pin function.
Freescale Semiconductor
Timer x Counter Modulo Registers (TPMxMODH:TPMxMODL)
Timer x Channel n Status and Control Register (TPMxCnSC)
Figure 10-10. Timer x Channel n Status and Control Register (TPMxCnSC)
Figure 10-8. Timer x Counter Modulo Register High (TPMxMODH)
Figure 10-9. Timer x Counter Modulo Register Low (TPMxMODL)
Reset:
Reset:
Reset:
Read:
Write:
Read:
Write:
Read:
Write:
Bit 15
CHnF
Bit 7
Bit 7
Bit 7
Bit 7
0
0
0
= Unimplemented or Reserved
MC9S08GB/GT Data Sheet, Rev. 2.3
CHnIE
14
6
0
6
6
0
6
0
MSnB
13
5
0
5
5
0
5
0
MSnA
12
4
0
4
4
0
4
0
ELSnB
11
3
0
3
3
0
3
0
ELSnA
10
3
0
2
2
0
2
0
TPM Registers and Control Bits
0
2
9
0
1
1
0
1
0
Bit 0
Bit 8
Bit 0
Bit 0
Bit 0
0
0
0
0
163