I would use the one HCTL2000 quadrature decoder/counter interface.I need to count the pulses, determinate if it is going CW or CCW
See details on datasheet @ http://www.datasheetcatalog.org/data.../HCTL-2000.pdf
Al.
I would use the one HCTL2000 quadrature decoder/counter interface.I need to count the pulses, determinate if it is going CW or CCW
See details on datasheet @ http://www.datasheetcatalog.org/data.../HCTL-2000.pdf
Al.
All progress began with an idea
What type of frequency are we talking about here? If it's rather low frequency, like a knob used to navigate a user interface etc then perhaps using the 'Change-on-PortB' interrupt and decode and keep count in software. If we're talking higher frequencies, like for motorcontrol etc then you might want to look at the 18F24x1 series PICs as they have a QEI-module on board. In any case - use the USART for comms.
Last edited by Archangel; - 14th July 2009 at 06:56.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks