timers

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

timers

1,041 次查看
amelendez
Contributor II

I need to supervise 6 encoders.

The LPC1778 has only four timers for capture and counter pulses.

Can two channels of the same timer be used for capture and count at the same time the pulses of two differents encoders ?.

Thanks.

标签 (1)
0 项奖励
回复
2 回复数

1,018 次查看
amelendez
Contributor II

Thanks, Felipe. Understood. Best regards.

0 项奖励
回复

1,029 次查看
FelipeGarcia
NXP Employee
NXP Employee

Hi,

Unfortunately, I am afraid this will not be possible as you need to select the input capture pin in Count Control Register (CTCR) and you cannot select both channels at the same time, you will need to be switching between channels and reconfiguring the timer.

FelipeGarcia_0-1615483357688.png

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

------------------------------------------------------------------------------ 

0 项奖励
回复