TPM channel mode changes

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

TPM channel mode changes

跳至解决方案
2,117 次查看
luisgallegos
Contributor III

Hello.

Does anyone know what the phrase "acknowledged in the LPTPM counter clock domain" mean?

I am using a KL25 microcontroller (in the FRDM-KL25Z board) and that phrase is used in the datasheet when talking about changing the MSB:MSA and ELSB:ELSA bits in the TPMx_CnSC register for changing TPM channel modes.

From the tests I've made, I am assuming that it means that the change in the bits will not take effect until the TPM counter passes through 0, either going from MOD or CnV to 0, or going from 1-0-1 when using up-down counting (this is my case in particular).

Does anyone know for sure?

Thanks.

标签 (1)
0 项奖励
回复
1 解答
1,412 次查看
adriansc
Contributor IV

Hi,

You are right, most of  the changes that are made in the Timer/PWM Module are controlled by the TPM counter clock domain, this is because TPM has its own clock.

TPM module has two clock domains:

  • Bus clock domain: is used by the register interface and for synchronizing interrupts and DMA requests.
  • TPM counter clock domain: is used to clock and prescaler along with the output compare and input capture logic. It is considered asynchronous to the bus clock. Can remain operational in Stop mode.

You can find this information in KL25 Reference Manual (Document Name: KL25P80M48SF0RM.pdf) In section 31.4.1

Regards.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,413 次查看
adriansc
Contributor IV

Hi,

You are right, most of  the changes that are made in the Timer/PWM Module are controlled by the TPM counter clock domain, this is because TPM has its own clock.

TPM module has two clock domains:

  • Bus clock domain: is used by the register interface and for synchronizing interrupts and DMA requests.
  • TPM counter clock domain: is used to clock and prescaler along with the output compare and input capture logic. It is considered asynchronous to the bus clock. Can remain operational in Stop mode.

You can find this information in KL25 Reference Manual (Document Name: KL25P80M48SF0RM.pdf) In section 31.4.1

Regards.

0 项奖励
回复