# When using quadrature encoders on a BL4S200 board, is there a way to preset the counter values on boot up?

**URL:** <https://forums.digi.com/t/when-using-quadrature-encoders-on-a-bl4s200-board-is-there-a-way-to-preset-the-counter-values-on-boot-up/13936>\
**Category:** Rabbit\
**Tags:** bl4s200\
**Created:** [November 17, 2014, 1:25am UTC](https://forums.digi.com/t/when-using-quadrature-encoders-on-a-bl4s200-board-is-there-a-way-to-preset-the-counter-values-on-boot-up/13936 "2014-11-17T01:25:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![instantdad](https://avatars.discourse-cdn.com/v4/letter/i/cc9497/32.png) [@instantdad](https://forums.digi.com/u/instantdad)\
**Post date:** [November 17, 2014, 1:25am UTC](https://forums.digi.com/t/when-using-quadrature-encoders-on-a-bl4s200-board-is-there-a-way-to-preset-the-counter-values-on-boot-up/13936/1 "2014-11-17T01:25:01Z")

</div>



---

<div class="post-metadata">

**Author:** ![trooper2](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@trooper2](https://forums.digi.com/u/trooper2)\
**Post date:** [November 17, 2014, 9:17am UTC](https://forums.digi.com/t/when-using-quadrature-encoders-on-a-bl4s200-board-is-there-a-way-to-preset-the-counter-values-on-boot-up/13936/2 "2014-11-17T09:17:32Z")

</div>

Please read Chapter 22 of the processor manual for details on how to set up a quadrature decoder channel. Operation is as follows:

22.3 Operation  
The following steps explain how to set up a Quadrature Decoder channel.

1. Configure Timer A10 via TAT10R to provide the desired Quadrature Decoder clock  
speed.
2. Configure QDCR to select the input pins for the two channels.
3. Reset the counters by writing to QDCSR.
