
User Manual
Acuros
®
CQD
®
Camera
113 |
P a g e
10.5.2
Appendix_B: Uploading FPGA Code
FPGA configuration data is sent to the camera via a sequence of software commands. The data is
received by the camera and programmed into FPGA configuration Flash memory. After the
upload is finished, power must be cycled on the camera to invoke the new FPGA code.
Configuration data is generated by the Quartus software in the form of a .rpd (raw programming
data) file. The file size is 2,633,728 bytes and consists of just over 40, 65536 bytes sectors. Each
sector contains 256 pages. Each page contains 256 bytes. Individual sectors must be erased
before they can be programmed. Programming is done page by page.
FPGA configuration data transfer takes place as follows;
1)
The host sends an
EraseFpgaSectors
command to the camera, starting with sector 0,
indicating which sector to erase. An echo is returned when the sector has been
erased. The time to erase a sector may be as long as 3 seconds, so make sure any
communication timeouts are set longer than this period.
2)
The host sends a
SendFpgaPage
command to the camera accompanied by the 3-byte
starting address of the page being sent, and the first 256 bytes of configuration data.
The camera receives the data and programs it into flash. An echo is returned when
the programming is done.
3)
Step 2 is repeated for 256 pages. The page start address is incremented by 256 as
each page is sent. 256 pages constitute one sector.
4)
Steps 1,2 and 3 are repeated for 41 sectors. The page start address does not get
“reset” with each sector, but rather accumulates over the entire 41 sectors. The last
sector will only be partially filled with configuration data. The host software should
pad the unused data locations with zeroes.
10.5.3
Appendix_C: Uploading MicroController Firmware
Uploading microcontroller firmware (code) is facilitated by the use of a bootloader application
which resides in the base memory of the PIC microcontroller. The object file
(bootloader_application.hex) must be programmed into the PIC via the USB dongle before any
code uploading can take place. There are therefore three pieces of code in play, the bootloader
app, the host app which communicates with the bootloader app and the main app, which is the
camera application code.
The bootloader application functions as follows;
Summary of Contents for Acuros CQD Series
Page 13: ...User Manual Acuros CQD Camera 13 P a g e Figure 3 Acuros CQD 1920 GigE with F mount...
Page 14: ...User Manual Acuros CQD Camera 14 P a g e Figure 4 Acuros CQD 1280 USB with C mount...
Page 15: ...User Manual Acuros CQD Camera 15 P a g e Figure 5 Acuros CQD 1280 GigE with C Mount...
Page 16: ...User Manual Acuros CQD Camera 16 P a g e Figure 6 Acuros CQD 640 USB with C Mount...
Page 92: ...User Manual Acuros CQD Camera 92 P a g e...
Page 101: ...User Manual Acuros CQD Camera 101 P a g e 5 0x00 Unused 6 0x00 Unused...
Page 108: ...User Manual Acuros CQD Camera 108 P a g e 8 0x00 Unused...
Page 110: ...User Manual Acuros CQD Camera 110 P a g e 6 0x00 Unused...