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);
}
//UARTInterruptadditionfunctionisusedforenablingreceivingeverytransivedbyte.
voidRX_ISR()ivIVT_INT_USART3icsICS_AUTO
{
if(RXNE_USART3_SR_bit)
{
temp[i++]=USART3_DR;
}
}
Thefullapplicationcode,andreadytouseprojectscanbefoundonourLibStockpage.
Additionalnotesandinformation
Dependingonthedevelopmentboardyouareusing,youmayneedUSBUARTclick,USB
UART2clickorRS232clicktoconnecttoyourPC,fordevelopmentsystemswithnoUART
toUSBinterfaceavailableontheboard.Theterminalavailableinall
MikroElektronikacompilers,oranyotherterminalapplicationofyourchoice,canbeused
toreadthemessage.
mikroSDK
ThisclickboardissupportedwithmikroSDK‐MikroElektronikaSoftwareDevelopment
Kit.ToensureproperoperationofmikroSDKcompliantclickboarddemoapplications,
mikroSDKshouldbedownloadedfromtheLibStockandinstalledforthecompileryouare
using.
FormoreinformationaboutmikroSDK,visittheofficialpage.
https://www.mikroe.com/barcode‐click4‐4‐18