Cantafford
Member
Hello,
I have a question regarding the QEI module. I'm just learning to use it. I'm using PIC18f2431 and I've just finished reading it's datasheet section about this module.
I got lost here:
Here is what I understood from that section I snapshoted. Please correct me if I'm wrong. I guess I'm.
Fpos = position count rate. This can be proportional to 2 or 4 depending if I configure the QEI to work in "2x Update mode" or "4x Update mode". But what exactly is it. My goal is to get the RPM from this formula and display it on an LCD. What do I need to put in my formula for Fpos? Is it the time difference it takes for the QEI to make an increment/decrement in the POSCNT register?
D = datasheet says number of incremental lines in incremental encoder. I'm not sure what this means. Does it mean that if I have an incremental encoder with 10 divisions my D in that formula will be 2 to the power of 10 = 1024?
Also. Doesn't the frequency at which my ucontroller is working affect that formula at all?
I have a question regarding the QEI module. I'm just learning to use it. I'm using PIC18f2431 and I've just finished reading it's datasheet section about this module.
I got lost here:

Here is what I understood from that section I snapshoted. Please correct me if I'm wrong. I guess I'm.
Fpos = position count rate. This can be proportional to 2 or 4 depending if I configure the QEI to work in "2x Update mode" or "4x Update mode". But what exactly is it. My goal is to get the RPM from this formula and display it on an LCD. What do I need to put in my formula for Fpos? Is it the time difference it takes for the QEI to make an increment/decrement in the POSCNT register?
D = datasheet says number of incremental lines in incremental encoder. I'm not sure what this means. Does it mean that if I have an incremental encoder with 10 divisions my D in that formula will be 2 to the power of 10 = 1024?
Also. Doesn't the frequency at which my ucontroller is working affect that formula at all?