carl lin

capture counter for HCS12X

Discussion created by carl lin on May 28, 2012

currently I am using CodeWarrior to develop HCS12X MCU and I need it to capture a time between two edges. so I am using capture function to accomplish this task.

 

        right now  I have two timers, 1 ms and 1 us and the max counter(max time of event)  for capture is 32768 us.  so when I receive a value from capture, on which does the capture counter base?

 

for exampl, if I receive 100 from capture counter, does it mean 100 ms or 100 us? 

 

thanks, 

 

carl 

Outcomes