# Doc error - XBee Programmable Output Compare

**URL:** <https://forums.digi.com/t/doc-error-xbee-programmable-output-compare/11241>\
**Category:** XBee Programamble (S2C & 900 HP)\
**Created:** [October 29, 2012, 4:01pm UTC](https://forums.digi.com/t/doc-error-xbee-programmable-output-compare/11241 "2012-10-29T16:01:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wz2b](https://avatars.discourse-cdn.com/v4/letter/w/e274bd/32.png) [@wz2b](https://forums.digi.com/u/wz2b)\
**Post date:** [October 29, 2012, 4:01pm UTC](https://forums.digi.com/t/doc-error-xbee-programmable-output-compare/11241/1 "2012-10-29T16:01:11Z")

</div>

The latest SDK downlaod docs for output compare, in the Programming Guide section, say this:

Sets the timeout (in microseconds) after which the interrupt will be triggered …  
Usage example: this piece of code will configure the next interrupt of ocompare0 to take place after 50 milliseconds:  
ocompare\_set\_timeout(occompare0, 5000);

Obviously, 5000 “microseconds” dosn’t agree, so either they meant set it to 50,000; or they meant 5 milliseconds; or the timer runs in 10 uS increments rather than 1 uS.

–Chris

---

<div class="post-metadata">

**Author:** ![spastor](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@spastor](https://forums.digi.com/u/spastor)\
**Post date:** [October 30, 2012, 11:32am UTC](https://forums.digi.com/t/doc-error-xbee-programmable-output-compare/11241/2 "2012-10-30T11:32:07Z")

</div>

Hello Chris,

Indeed, it’s a documentation mistake, the correct value is as you say, 50 milliseconds = 50,000 uS. The timer resolution is of 1 microsecond.

Thank you very much for your feedback. It will be fixed in next release of the SDK.

Best regards,

Sebastián.-
