S
ERIAL
I
NTERFACE
D
EVELOPERS
G
UIDE
for each pixel in the entire array. The NUC data will also need to be formatted for use in the hardware
(see
X
Appendix F
X
). It will also be necessary to save NUC mode data to serial data flash that
corresponds to the uploaded NUC data (see paragraph
X
5.3.2
X
for further details).
(A) Disable the automatic NUC refresh operation by setting BIT-15 of the camera configuration
bitFieldIndex member.
(B) Set up for the first pass (gain terms only).
(C) Using the ‘McbWriteDataMem’ command - write a portion of the gain coefficients to the scratch
pad buffer. Remember it is sized at 160 words.
(D) Send the CMD_WRITE_UTILITY_MEMORY command with the proper address offset (base is
MAR_IMAGE_GRAB_B) and data size (see paragraph
X
5.3.43
X
) to move the data from the DSP
scratch pad to the Xilinx utility memory.
(E) Repeat steps (C) and (D) until the entire set of gain coefficients is loaded contiguously to utility
memory.
(F) Send CMD_UPLOAD_NUC command with the arguments set for ‘gain terms’ and desired NUC
base.
(G) Embedded application will set the status code to BEGIN_PROCESS, and then begin execution of
the routine.
(H) The entire NUC Flash block is erased on the upload of gain terms only, which is why they are
uploaded first.
(I) Host will monitor (periodically read) the status code data member until it is set by the embedded
application to NUC_FLASH_PROGRAMMED or HOST_READY.
(J) Set up for the second pass (offset terms only).
(K) Using the ‘McbWriteDataMem’ command - write a portion of the offset coefficients to the scratch
pad buffer. Remember it is sized at 160 words.
(L) Send the CMD_WRITE_UTILITY_MEMORY command with the proper address offset (base is
MAR_IMAGE_GRAB_B) and data size (see paragraph
X
5.3.43
X
) to move the data from the DSP
scratch pad to the Xilinx utility memory.
(M) Repeat steps (K) and (L) until the entire set of offset coefficients is loaded to utility memory.
(N) Send CMD_UPLOAD_NUC command with the arguments for ‘offset terms’ and desired NUC
base.
(O) Embedded application will set the status code to BEGIN_PROCESS, and then begin execution of
the routine.
(P) Host will monitor (periodically read) the status code data member until it is set by the embedded
application to NUC_FLASH_PROGRAMMED or HOST_READY.
(Q) Re-enable automatic NUC refresh bit.
(R) The host supplied NUC coefficient set now exists in the desired NUC flash table and is ready for
use.
7.10 Download NUC Table to Host
This process can be followed to retrieve a set of NUC coefficients from the camera at the desired table
index. It assumes the host already has created a buffer for the storage of the coefficients. The NUC
data will be read in a form that is formatted for use in the camera hardware (see
X
Appendix F
X
), so the
host may need to perform casting/conversion before using it locally.
(A) Set up for the first pass (gain terms only).
42