Download Print this page

Parallax TSL1401-DB Instructions Manual page 47

Linescan camera module

Advertisement

SETEXP
CON
ACQGRAY
CON
ACQBIN
CON
ACQAND
CON
ACQOR
CON
ACQXOR
CON
ACQANDNOT
CON
ACQORNOT
CON
ACQXORNOT
CON
ACQDIFF
CON
ACQSAME
CON
XTRIG
CON
CNTNEW
CON
CNTNXT
CON
FNDNEW
CON
FNDNXT
CON
'Modifiers, ORed to CNTNEW, CNTNXT, FNDNEW, and FNDNXT.
NXT
CON
BKWD
CON
FWD
CON
DRKPIX
CON
BRTPIX
CON
DRKEDG
CON
BRTEDG
CON
DUMPADR
CON
'Address constants for single byte arg following DUMPADR.
PIXELS
CON
RESULTS
CON
MINPIX
CON
MINLOC
CON
MAXPIX
CON
MAXLOC
CON
AVGPIX
CON
DUMPID
CON
DUMPFLAGS
CON
'Bit positions in returned byte.
BADCMD
CON
CANTBUF
CON
CMDOVF
CON
DATOVF
CON
' -----[ Variables ]-------------------------------------------------------
flags
VAR
busy
VAR
' -----[ Initialization ]--------------------------------------------------
PAUSE 10
© Bueno Systems, Inc. • TSL1401-DB (2009.10.01)
$EE
'Set exposure to byte (1 - 255) following: 0.27 - 68mS.
$A0
'Acquire and dump a grayscale image.
$A4
'Acquire a binary image.
$A1
'Acquire binary image ANDed w/ previous.
$A2
'Acquire binary image ORed w/ previous.
$A3
'Acquire binary image XORed w/ previous.
$A5
'Acquire binary image ANDed w/ NOT prev.
$A6
'Acquire binary image ORed w/ NOT prev.
$A7
'Acquire binary image XORed w/ NOT prev.
$A3
'Idiom for ACQXOR.
$A7
'Idiom for ACQXORNOT.
$08
'External trigger flag, ORed to ACQ commands.
$C8
'Count pixels/edges between new bounds.
$C0
'Count pixels/edges between current bounds.
$F8
'Find first pixel/edge between new bounds.
$F0
'Find first pixel/edge between current bounds.
$00
'Continue from where last CNT or FND left off.
$04
'Search backward.
$00
'Search forward.
$00
'Target is a dark pixel.
$02
'Target is a bright pixel.
$03
'Target is a bright-to-dark edge.
$01
'Target is a dark-to-bright edge.
$DA
'Dump data, beginning at addr, and until reset.
$00
'Beginning of binary pixel buffer (32 bytes).
$20
'Beginning of results buffer.
$20
'Value of darkest pixel (0 - 255).
$21
'Location of darkest pixel (0 - 127).
$22
'Value of brightest pixel (0 - 255).
$23
'Location of brightest pixel (0 - 127).
$24
'Average pixel value (0 - 255).
$DD
'Dump the firmware ID (returns 3 bytes).
$DF
'Dump error flags (returns 1 byte).
$80
'Unrecognized command.
$40
'Attempt to buffer unbufferable command.
$20
'Command buffer overflow.
$10
'Result data buffer overflow.
Byte
Bit
'Wait for AVR to finish reset.
Page 47 of 52

Advertisement

loading