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
and ensuring the proper operation of shafts
in industrial, robotic and a number of other
domains. The chip has multiple operating
modes.
Turn the board upside down so that
the bottom side is facing you upwards.
Place shorter pins of the header into the
appropriate soldering pads.
Turn the board upward again. Make sure
to align the headers so that they are
perpendicular to the board, then solder the
pins carefully.
1. Introduction
Counter click
carries an
LS7366R
quadra-
ture counter. The top of the board has a
pinout for interfacing with incremental en-
coders. The interface has ENCA and ENCB
pins, along with ENCI, which is a program-
mable index. On the other side, Counter
click communicates with the target board
microcontroller through the mikroBUS™
SPI interface (CSK, MISO, MOSI), plus enable
(CNT EN) and interrupt (LFLAG or DFLAG)
pins. The board can use either a 3.3V or a
5V power supply.
3. Plugging the board in
Once you have soldered the headers your
board is ready to be placed into the desired
mikroBUS
™
socket. Make sure to align the cut
in the lower-right part of the board with the
markings on the silkscreen at the mikroBUS
™
socket. If all the pins are aligned
correctly, push the board all the
way into the socket.
click
www.mikroe.com
Counter click Manual v101
Counter click Manual v101
BOARDS
™
0100000089408
5. Schematic
8. Code examples
Once you have done all the necessary
preparations, it’s time to get your click board
™
VCC
C3
100n
GND
GND
VCC
C4
100n
GND
VCC
INT
CNT_EN
CS
SCK
MISO
MOSI
AN
RST
CS
SCK
MISO
MOSI
+3.3V
GND
PWM
INT
TX
RX
SCL
SDA
+5V
GND
FCKO
X1
20MHz
C1
18pF
GND
GND
R4
1M
FCKO
FCKI
FCKI
CS
SCK
MISO
MOSI
ENC_A
VCC
C5
100n
VCC
VCC
VCC
up and running. We have provided examples
for mikroC
™
, mikroBasic
™
and mikroPascal
™
compilers on our
Libstock
website. Just
download them and you are ready to start.
R1
10k
R2
10k
R3
10k
VCC
R6
470R
1
2
3
4
5
6
7
U1
FCKO
FCKI
LS7366R
VSS
SS
SCK
MISO
MOSI
VDD
CNT_EN
A
B
INDEX
DFLAG
LFLAG
VCC
14
13
12
11
10
9
8
DF
LF
INT SEL
R5
10k
CNT_EN
ENC_A
ENC_B
ENC_I
ENC_B
ENC_I
C6
15pF
C7
15pF
C8
15pF
.com
9. Support
MikroElektronika offers
free tech support
(www.mikroe.com/support)
until the end of
the product’s lifetime, so if something goes
wrong, we’re ready and willing to help!
PWR
GND
MIKROBUS DEVICE CONN.1
C2
18pF
GND
INT
VCC
ENC_A
ENC_B
ENC_I
GND
GND
GND
3V3
VCC
5V
GND
POWER SELECTOR
GND
1
3
5
7
9
CN1
2
4
6
8
10
GND
6. Dimensions
25.4 mm / 1000 mils
7. SMD jumpers
mm
LENGTH
WIDTH
HEIGHT*
* without headers
10. Disclaimer
MikroElektronika assumes no responsibility
or liability for any errors or inaccuracies
that may appear in the present document.
Specification and information contained in
the present schematic are subject to change
at any time without notice.
Copyright © 2015 MikroElektronika.
All rights reserved.
mils
1690
1000
154
Counter click has two SMD jumpers (zero ohm
resistor). One lets you switch between a 3.3V
or a 5V power supply. The other is for setting
the interrupt as LFLAG (open drain latched
output) or DFLAG (push-pull output).
42.9
25.4
3.9
42.9 mm / 1690 mils