Shop OBEX P1 Docs P2 Docs Learn Events
RCTime question — Parallax Forums

RCTime question

Capt. QuirkCapt. Quirk Posts: 872
edited 2007-02-12 15:58 in General Discussion
Rctime returns·an 8 bit value·and uses multipliers expand it's capabilities (I think) , But when my servo control program went to "zero" (bad code). RCTime would quickly return a value of 65,000 + as if was really a 16 bit variable?

Why does it do that?.

Comments

  • JonnyMacJonnyMac Posts: 8,941
    edited 2007-02-12 15:58
    RCTIME can return a word; the multiplier parameter affects the units of [noparse][[/noparse]internal] timing. By default, it's 2 microseconds (like the BS2), but you may want a longer timer if you're using a big RC circuit (e.g., photcell that has huge off resistance).
Sign In or Register to comment.