Content originally posted in LPCWare by daniel.widyanto on Sun Oct 14 20:38:29 MST 2012
Hi,
[I]Quote: What is the basic difference between RIT and timer in LPC1769 ?[/I]
A lot. Of the of the thing is that the normal Timer has few Match registers. You can generate several delay or interrupt with different time interval just by using single Timer (eg. Timer0 has 4 Match registers, and can be used to create 4-different interrupt with different intervals). For RIT, you can only have single interrupt interval.
To use RIT, configure the clock source for RIT (PCLKSEL1), set RICOMPVAL to the time interval, set RITEN in RICTRL. Then wait for RITINT (in RICTRL) to active.
[I]Quote:.How to use the index pin provided with QEI?[/I]
Connect your encoder to analog circuit (usually op-amp) that can generate 3.3V and 0V, then connect that analog circuit to the QEI pins (PhA, PhB, and Index)
The index pin is used to indicate 1 full rotation of the encoder. I don't know how your encoder mechanical form looks like, but make sure that the index pin signal is only triggered when 1 full rotation of the encoder has reached.
[I]Quote: If i use one encoder with one capture and I want to record it's velocity how many timers will be needed??[/I]
1-Timer