This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
I don't need to have an interrupt routine for the Input Capture Module to run? I mean, I
just want the clock feature of this in free running mode. I need to sample it every 6us
or so, so an interrupt is out; I also want it running at around 500kHz (increment every
2us). But when I set it up, I seem to have a clock stuck at zero (not running).
ICT1R to 0x80 (timer 1 to continously running)
ICT2R to 0x00 (not using timer 2)
ICCR to 0x00 (not using interrupts, so no priority)
TAT8R to 0x15 (somewheres around 500kHz or 2us clock ticks)
ICCSR to 0x04 (sets clock to zero, no interrupts)
If I do a wait, then read on ICL1R then ICM1R, I get zeros; if I wait say 1ms and do the
same read, I still get zeros. Oh: RCM3750, so 22.1MHz, and with Dynamic C v9.52.
What is odd is that my routine for measuring PWM is working, and that uses the Input
Capture Module too. As far as I can tell, I'm setting the same registers, just to
different values.
Shawn
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )