EasyManua.ls Logo

Bouffalo Lab BL702 - Page 263

Default Icon
375 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BL702/704/706 Reference Manual
14.3 QDEC function description
The expected operating frequency of QDEC is 1MHz, and the faster the detection speed, the higher the operating
frequency required.
Each sampling will decode the A/B two-phase pulse output by the encoder into high and low levels. Compare the
previous sampling results to get the current encoder rotation direction and pulse count change (clockwise rotation +1,
counterclockwise rotation -1 , No change, no change, error report and count). After the sampling times set by the
report, the rotation direction and pulse count of the encoder during this period can be obtained, and the average value
of the rotational speed direction during the report period can be solved accordingly.
The period of each sampling can be configured. When the working frequency is 1MHz, the minimum is 32us for one
sampling, and the maximum is 131ms for one sampling.
The interrupt can be configured as a single sampling end trigger (sample interrupt) and multiple sampling end trigger
(report interrupt) to flexibly measure the speed.
Configurable LED blinking function, blinking frequency=LED cycle/sampling cycle, each blinking on/off is determined
by the LED polarity.
BL702/704/706 Reference Manual 263/ 375
@2021 Bouffalo Lab
guest@bouffalolab

Table of Contents