2. Soldering the headers Before using your click board , make sure to solder 1x8 male headers to both left and right side of the board. Two 1x8 male headers are included with the board in the package. 1 COUNTER click 2 3 4. Essential features Incremental encoders output A and B pulses which are out of phase to each other, ideally by 90. The LS7366R CMOS counter takes these signals as inputs. The decoded input is then used for non-quadrative, up/down, free running counting (the IC has many count- ing modes). Applications include measure- ment of the direction and RPM of DC motor shafts. This data can be used for monitoring Turn the board upside down so that Turn the board upward again. Make sure and ensuring the proper operation of shafts the bottom side is facing you upwards. to align the headers so that they are in industrial, robotic and a number of other Place shorter pins of the header into the perpendicular to the board, then solder the domains. The chip has multiple operating appropriate soldering pads. pins carefully. modes. 1. Introduction Counter click carries an LS7366R quadra- 3. Plugging the board in ture counter. The top of the board has a pinout for interfacing with incremental en- click Once you have soldered the headers your coders. The interface has ENCA and ENCB board is ready to be placed into the desired pins, along with ENCI, which is a program- BOARDS mikroBUS socket. Make sure to align the cut mable index. On the other side, Counter www.mikroe.com click communicates with the target board in the lower-right part of the board with the microcontroller through the mikroBUS markings on the silkscreen at the mikroBUS SPI interface (CSK, MISO, MOSI), plus enable socket. If all the pins are aligned CountCounter click Manual v101er click Manual v101 (CNT EN) and interrupt (LFLAG or DFLAG) correctly, push the board all the pins. The board can use either a 3.3V or a way into the socket. 5V power supply. 01000000894088. Code examples 5. Schematic Once you have done all the necessary preparations, its time to get your click board up and running. We have provided examples for mikroC , mikroBasic and mikroPascal VCC VCC VCC compilers on our Libstock website. Just C3 C4 C5 100n 100n 100n VCC VCC VCC download them and you are ready to start. GND GND GND R1 R2 R3 10k 10k 10k VCC VCC INT ENC A AN PWM U1 ENC B R6 .com CNT EN 470R RST INT FCKO FCKO 1 14 CS FCKO VDD CS TX ENC I SCK SCK RX R4 FCKI 2 13 CNT EN MISO FCKI CNT EN X1 SCL 1M C6 C7 C8 MISO MOSI FCKI PWR MOSI SDA 3 12 ENC A VSS A +3.3V +5V 15pF 15pF 15pF 20MHz GND GND CS 4 11 ENC B C1 C2 SS B GND 18pF 18pF MIKROBUS DEVICE CONN.1 SCK 5 10 ENC I SCK INDEX 9. Support GND GND GND MISO 6 9 DF GND GND MISO DFLAG INT GND VCC GND MOSI 7 8 LF MOSI LFLAG 3V3 5V VCC 1 2 INT SEL 3 4 MikroElektronika offers free tech support VCC ENC A 5 6 R5 ENC B 7 8 POWER SELECTOR 10k GND ENC I 9 10 (www.mikroe.com/support) until the end of CN1 the products lifetime, so if something goes GND wrong, were ready and willing to help 6. Dimensions 7. SMD jumpers 10. Disclaimer MikroElektronika assumes no responsibility mm mils or liability for any errors or inaccuracies that may appear in the present document. LENGTH 42.9 1690 Specification and information contained in WIDTH 25.4 1000 the present schematic are subject to change Counter click has two SMD jumpers (zero ohm HEIGHT* 3.9 154 at any time without notice. resistor). One lets you switch between a 3.3V 42.9 mm / 1690 mils or a 5V power supply. The other is for setting * without headers Copyright 2015 MikroElektronika. the interrupt as LFLAG (open drain latched All rights reserved. output) or DFLAG (push-pull output). 25.4 mm / 1000 mils LS7366R