This what I said in Post #517.I think of North being 000 and if MAXCNT was preloaded with 359 would the next count reset to zero [000] ?
In *4 Mode, the POSCNT will Dec or Inc on the Rising edge and falling edge of QEA and QEB, Up or Down, depending upon the High or Low state of QEB.Perhaps I should have worded it: When QA is incremented/decremented, does the counter increment/decrement 1/3600 or 1/360?
The Head turning thru 360 degrees, the Encoder disk will output 9 QEA pulses [ *4 Hi/Lo ] = 36 counts, then the gear reduction of 100 to the Head will give 3600 counts/head rev.
Assuming MAXCNT is loaded with 3599.
As the d/s explains the POSCNT reset states are 0000 - 1 count > MAXCNT loaded in POSCNT = 3599 ie: 0001, 0000, 3599, 3598 ...
Up counting 3599 +1 count > 0000 reset. ie: 3598, 3599, 0000, 0001