
SpectraVideo Camera User’s Manual
Software Development
29
11. S
OFTWARE
D
EVELOPMENT
11.1. S
PECTRA
V
IDEO
S
ERIAL
P
ORT
I
NTERFACE
The SpectraVideo camera uses a serial interface to control some of the operation
modes and timing parameters involved in image acquisition. A digital signal
processor (DSP) which incorporates a serial port controls timing in the camera.
Mode control and internal counters are set through this port. Serial
communications to the SpectraVideo camera, which uses the PCI data acquisition
board without the fiber optic link, is through the PC’s RS-232 (COM) port. The
port must be set up to use 9600 baud, 1 stop bit, 8 data bits and no parity. This
section of the manual covers serial communication to those cameras that do not
use the serial interface board and fiber optic link to the PCI data acquisition
board. Additional commands are required for the serial interface board / fiber
optic link.
Comm settings:
9600 Baud
1 stop bit
8 data bits
No parity
There are two types of commands: reboot commands and data commands. Reboot
commands consist of a single character (byte). Data commands are three
characters sent without pause between them; first is the control character to tell
the DSP which function is being accessed, and the second two are combined to
form an integer. The port can be tested by sending single characters using a
simple terminal emulator program, but typically these simple programs do not
send characters quickly enough in succession to be able to address any of the data
commands. Data command interpretation in the DSP is timed to look for the
second and third bytes at a particular rate and if no data is present it will read the
hexadecimal numbers 0xFF, 0xFF and interpret them as the hexadecimal integer
0xFFFF.
Data command
syntax:
Control character
Data high byte
Data low byte
After every three-character command sequence, the DSP will respond over the
serial port by sending back the three characters it received. If the control character
is not recognized, it will also send back the ASCII character ‘?’. This feature is
useful for determining whether the DSP is responding to serial port commands.
With fiber optic links, an ACK is not returned if an invalid command sequence is
sent.
There is an eight-page PROM in the camera that contains the DSP code. The DSP
is booted from PROM page 0 on power-up. Although the same basic DSP code is
used in all eight PROM pages, the actual timing sequences in each page differs to
accommodate the different clock timing patterns required for different CCD
Содержание SPECTRAVIDEO
Страница 2: ...SPECTRAVIDEO CAMERA USER S MANUAL...