timing and capture function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

timing and capture function

516 Views
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 

Labels (1)
0 Kudos
Reply
1 Reply

381 Views
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 Kudos
Reply