23
This command takes no arguments. The camera responds with “H” followed by eight hex digits and a
carriage-return. The eight hex digits indicate the value of a free-running 32-bit frame counter. This counter
indicates all frames read from the sensor since power on, not necessarily the number of frames sent to the
framegrabber. The number of grabbed frames depends on the memory functions such as frame binning,
FIFO and circular buffering. Successive pings can be used for a rough estimate of the sensor frame rate.
I - Restore Camera State From Flash
This command takes one argument. The argument can be 01 to 08 and indicates which of the 8 flash
storage areas to retrieve the camera settings from. If the flash storage area is uninitialized the camera will
send a negative acknowledge. Otherwise the camera responds with “I” followed by the flash storage area
number and a carriage-return. The Restore Camera State From Flash command only restores user
settable parameters other than the Data FPGA loads.
J - Initialize FPGA From Flash
This command takes no arguments. The Data FPGA is reloaded from the flash causing a complete re-
initialization of the readout logic. If the FPGA fails to load for any reason, the camera will send a negative
acknowledge and response code. Otherwise the camera responds with “J” followed by a carriage-return.
Failure results when the DONE signal does not go high after download, or if the INIT# signal is reasserted
after the bitstream has started to load. Either of these conditions indicates a bitstream error. The Control
FPGA does not check the bitstream for correct format or CRC, this is done by the FPGA. To reduce the
timeout length if the J command is issued when the flash is uninitialized, the bitstream bit counter only
loads the low 24 bits of the bitstream length from the flash header. This still allows up to 128 megabits of
bitstream, larger than the flash size. On error a response code is returned. The first byte is the reason
which may be 00 01 or 02. 00 indicates bad header flash part type. 01 indicates illegal starting page
address. 02 indicates load was attempted but did not complete. If the code is 02, six additional bytes are
sent indicating the number of bytes remaining when the operation aborted. This is usually zero, unless the
FPGA re-asserted the INIT line.
K - Save Current Camera State to Flash
This command takes one argument. The argument can be 01 to 08 and indicates which of the 8 flash
storage areas to store the camera settings in. The camera responds with “K” followed by the flash storage
area number and a carriage-return. This command only saves user settable parameters other than the
Data FPGA loads (512 bytes total).
L - Write Flash
This command takes arguments that form the precise command to send to the flash memory. Data length
is limited by the flash page buffer size. There is no equivalent write command to “Continuous Array Read”.
The intent of the command is to allow uploading the FPGA code and to write to flash areas that need to be
initialized at the factory. The data is not interpreted by the serial control logic. It is possible to use this
command to directly upload camera settings to the flash pages without changing the current camera state.
This is the only Control FPGA command that uses binary encoded arguments (with escape codes for <cr>
and \). The exact syntax of the Write Flash command is:
‘L’ <opcode> <addr> <data> <cr>
where opcode is one byte, addr is 3 bytes, and data can be from zero to 528 bytes depending on the
command. The following opcodes are acceptable to use with this command (there is no error checking so
make sure these are the only codes used).
0x84
Buffer
1
write
0x87
Buffer
2
write
0x83
Buffer 1 to main memory program with built-in erase
0x86
Buffer 2 to main memory program with built-in erase
0x88
Buffer 1 to main memory program without built-in erase
0x89
Buffer 2 to main memory program without built-in erase
0x81
Page
Erase
0x50
Block
Erase
0x82
Main memory page program through buffer 1
Содержание FastCamera13
Страница 1: ...FASTCAMERA SERIES FASTCAMERA13 USER S MANUAL FVM 50013...
Страница 32: ...32...