Shop OBEX P1 Docs P2 Docs Learn Events
pulsin readings....do they round up/down? — Parallax Forums

pulsin readings....do they round up/down?

steve_bsteve_b Posts: 1,563
edited 2007-02-27 19:49 in BASIC Stamp
Hi guys,

I have to write up a report on the accelerometer I put in at work. I'm trying to remember what the heck I did!! haha

Anyhow, I'm looking at the calculations and am wondering if I'm missing data.
In the Pulsin command, wrt BS2, it's in 2uS steps.

So lets say I have a pulse that is 19.5uS long. What will Pulsin give me back? 9 or 10?
I assume 10 as it's already gone passed the 18uS start point...but just want to be sure!

thanks

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·

Steve

"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
Sign In or Register to comment.