SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
20. Barcode
Barcode Module Features:
ADC values store to SRAM directly by DMA.
ADC converts to barcode raw data for barcode decoding.
Barcode raw data filter.
Barcode raw data slope rate setting.
Mnemonic
Description
Dir.
CAh
CBh
Bit 7
Bit 6
Bit 5
Barcode
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
RDT
01H
00H
BarCode Control
Register
Start address to
BarcodeINF[1:0 RAWBIT
BCCTRL
Bcc_en[1:0]
ADCDS[1:0]
bcdidv
]
NUM
ADDR2ML SRAM Low Byte
ADDR2M[7:0]
Register
Start address to
ADDR2MH SRAM High Byte
Register
CEh
EFh
DAh
-
-
ADDR2M[12:8]
LNGDATA[7:0]
LNGDATA[12:8]
RDATA[7:0]
FDATA[7:0]
00H
00H
00H
Length of Data
Low Byte Register
LNGDATAL
Length of Data
LNGDATAH High Byte
Register
Rising of Data
Register
RDATA
C1h
C2h
19H
18H
Falling of Data
Register
FDATA
20.1
Barcode Control Register( BCCTRL )
Mnemonic: BCCTRL
Address: CAh
7
6
5
4
3
2
1
0
Reset
RAWB
ITNUM
Bcc_en[1:0]
BarcodeINF[1:0]
ADCDS[1:0]
bcdidv
01H
Bcc_en Barcode control mode
[1:0]
If ADC to DMA reach SRAM‟s address = 6K, HW will auto stop “write action” and this bit will
be clear to 0 when barcode mode enabled.
00 = disable barcode controller
01 = Enable ADC value store to SRAM function, write ADC value into SRAM directly.
10 = Enable barcode decoder. [Decode the 8 bits of ADC data (MSB)]
Analysis/count barcode raw data then write the results into SRAM.
The results data format as following:
b7 : convert data
b[6:0]: length
ex: 1000_0111 means 7 successive “1”.
1000_1000 means 8 successive “1”.
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071 Ver A SM59A16U1 04/12/2013
- 131 -