Embedded Systems
barcode.txt
Associated article: Tight Code
Tags: Tools Open Source Mobile Embedded Systems Design
Published source code accompanying the article by Ed Nisley in which he presents the software and schematics to build a bar code readers. Also see BARCODE.TXT.
Embedded Space
by Ed Nisley
Listing One
Wait1ms:
PUSH ACC ; 2 cycles
MOV A,#200 ; 1 cycle
NOP ; 1 cycle
W1_1: DJNZ ACC,W1_1 ; 400 cycles
W1_2: DJNZ ACC,W1_2 ; 512 cycles
POP ACC ; 2 cycles
RET ; 2 + 2 for CALL
Listing Two
WaitBar:
CLR BusyOut ; show we're ...


