Home/Support/Support Forum/Range of input capture max_u_secs?

Range of input capture max_u_secs?

0 votes
Is there data available on the range (maximum) of max_u_sec when setting up an input capture, and the corresponding accuracy? Can I set it, for example, to 60 seconds? If I do, what accuracy would I get? If there any way to handle overflows?
asked Jul 26, 2014 in XBee Programmable Development by wz2b New to the Community (48 points)

Please log in or register to answer this question.

2 Answers

0 votes
Data rate will depend upto operational baud rate of modules. Best way is to try out and observe.

Overflows can be handled by enabling Hardware Flow Control lines i.e. CTS and RTS.
answered Aug 26, 2014 by asgm Veteran of the Digi Community (1,497 points)
0 votes
WZ, I believe the answer is as follows:

The fourth parameter (max_u_secs) is a 32-bit integer which indicates the maximum expected time capture in microseconds. This is an important parameter because the timer's clock source and prescaler are set according to this maximum. These settings are the read by function incapture_captcount_to_usec() to get actual time in microseconds.

Note, that I got this answer from the XBee SDK Help file.
answered Aug 26, 2014 by mvut Veteran of the Digi Community (14,297 points)