MIKROE-2913

Interface UART,USB
Input Voltage 3.3V
Click board
size
L (57.15 x 25.4 mm)
Pinout diagram
ThistableshowshowthepinoutonBarcodeclickcorrespondstothepinoutonthe
mikroBUS™socket(thelattershowninthetwomiddlecolumns).
Notes Pin
Pin Notes
NC
1 AN PWM 16
TRG
Scanning trigger
Reset for LV3296
RST
2 RST INT 15 NC
NC
3 CS RX 14
RX
UART data receive
NC
4 SCK TX 13
TX
UART data transmit
NC
5 MISO SCL 12 NC
NC
6 MOSI SDA 11 NC
Power supply
3V3
7 3.3V 5V 10 NC
Ground
GND
8 GND GND 9
GND
Ground
Onboard settings and indicators
Label Name Default Description
PWR PWR - Power LED indicator
GR GR - LED indicating a good read
Software support
WeprovidealibraryforBarcodeclickonourLibStockpage,aswellasademoapplication
(example),developedusingMikroElektronikacompilersandmikroSDK.Theprovidedclick
libraryismikroSDKstandardcompliant.Thedemoapplicationcanrunonallthemain
MikroElektronikadevelopmentboards.
Librarydescription
InitializesanddefinesUARTandGPIOdrivers.ItalsodefinesdriverfunctionsforUARTbus
communicationwhichenable
barcodescanningandbarcodescannerrestart.Checkthedocumentationformoredetails.Key
functions:
uint8_tbarcode_readyData()‐ThefunctioncheckswhethertheRXbufferreceivednew
data.
uint8_tbarcode_readData()‐Thefunctionreadsandreturnsonebytewhichisreceived
intheRXbuffer.
voidbarcode_enableScaning(constuint8_tstate)‐Thefunctionenablesordisables
barcodescanning,dependingontheparametervalue.
voidbarcode_enableReset(constuint8_tstate)‐Thefunctionenablesordisables
barcodescannerreset,dependingontheparametervalue.
Examplesdescription
System Initialization - Initializes peripherals, UART interrupt and pins.
Application Initialization - Initializes click driver.
Application Task - The click enables barcode scanning in 2 seconds intervals and then disables
scanning also in 2 seconds interval. When the barcode is scanned, UART interrupt will be
enabled and the barcode will be stored in the temp buffer.
voidapplicationTask()
{
barcode_enableScaning(_BARCODE_LOGIC_ON);
Delay_ms(2000);
barcode_enableScaning(_BARCODE_LOGIC_OFF);
Delay_ms(2000);
}
//UARTInterruptadditionfunctionisusedforenablingreceivingeverytransivedbyte.
voidRX_ISR()ivIVT_INT_USART3icsICS_AUTO
{
if(RXNE_USART3_SR_bit)
{
temp[i++]=USART3_DR;
}
}
Thefullapplicationcode,andreadytouseprojectscanbefoundonourLibStockpage.
Additionalnotesandinformation
Dependingonthedevelopmentboardyouareusing,youmayneedUSBUARTclick,USB
UART2clickorRS232clicktoconnecttoyourPC,fordevelopmentsystemswithnoUART
toUSBinterfaceavailableontheboard.Theterminalavailableinall
MikroElektronikacompilers,oranyotherterminalapplicationofyourchoice,canbeused
toreadthemessage.
mikroSDK
ThisclickboardissupportedwithmikroSDK‐MikroElektronikaSoftwareDevelopment
Kit.ToensureproperoperationofmikroSDKcompliantclickboarddemoapplications,
mikroSDKshouldbedownloadedfromtheLibStockandinstalledforthecompileryouare
using.
FormoreinformationaboutmikroSDK,visittheofficialpage.
https://www.mikroe.com/barcodeclick4418

MIKROE-2913

Mfr. #:
Manufacturer:
Mikroe
Description:
Optical Sensor Development Tools Barcode click
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet