Shop OBEX P1 Docs P2 Docs Learn Events
Boe-Bot Digital Encoder Kit — Parallax Forums

Boe-Bot Digital Encoder Kit

Kev_DKev_D Posts: 1
edited 2006-05-15 23:52 in General Discussion
Hi. I have encountered some problems reading from the digital encoders.
I tried using CPU.pulseIn without any luck (returned -1 constantly).
I tried using Uart without any luck (returned 0 constantly).
I tried using CPU.count wich worked. It counted my rising edges when I wanted it to, and falling edges when I wanted.

My problem is that I can not block other system calls by putting CPU.count in a infinite loop, which ofcourse could be resolved by using tasks. Is there any other way of reading from the encoders except for CPU.count?

Thanx in advance
Sign In or Register to comment.