timing and capture function

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

timing and capture function

372 次查看
lin_karl
Contributor I

the MCU i am using is HCS12X which has 8 ports for capture functions. I understand that they all share the same counter. I was wondering, if two capture functions are activated at two different times and both capture the same edge. will the capture function that was activated in later time receive the same counter value as the other capture that was activated earlier? 

 

Thanks, 

 

Carl 

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

237 次查看
kef
Specialist I

I'm having trouble understanding your request, but operation of input capture is pretty simple. When selected capture edge occurs, 1) contents of free running counter TCNT is transferred to capture register TCx, and 2) specific capture interrupt flag is set.

 

0 项奖励