background image

 

 

HAWK216 Instruction Manual

 

 

 

 

 

 

 

Document number 

Revision 

File name 

Date 

Page 

2013-12-11-01 

V1.1 

HAWK216OEM1_IM_v1_1 

19-Aug-14 

17 of 19 

 

 

APPENDIX A  

-  FPGA FIRMWARE UPLOAD 

 
CAMERA EPROM 

 

 
The camera EEPROM is divided into 15 sectors with address spaces as outlined below. Note that each 
address points to a 16bit word. 
 
/* Sector Structure... 
Sector   Kwords words    start   end         start      end 
 
1          4          4096     0          4095     000000  000FFF 
2          4          4096     4096     8191     001000  001FFF 
3          4          4096     8192     12287   002000  002FFF 
4          4          4096     12288   16383   003000  003FFF 
5          4          4096     16384   20479   004000  004FFF 
6          4          4096     20480   24575   005000  005FFF 
7          4          4096     24576   28671   006000  006FFF 
8          4          4096     28672   32767   007000  007FFF 
9          32         32768   32768   65535   008000  00FFFF 
10         32         32768   65536   98303   010000  017FFF 
11         32         32768   98304   131071  018000  01FFFF 
12         32         32768   131072  163839  020000  027FFF 
13         32         32768   163840  196607  028000  02FFFF 
14         32         32768   196608  229375  030000  037FFF 
15         32         32768   229376  262143  038000  03FFFF 
 
 
SECTOR 1 - is used for Manufacture specific data i.e. serial number etc. 
 
SECTORS 2-15 are used to hold the FPGA configuration information. 
 
To program a new FPGA configuration  
 1. Sectors 2-15 must be erased  
 2. a new bit file must be uploaded to Sectors 2-15 
 
Note that SECTOR 1 must not be ERASED as this contains detailed data about the camera. 
 
 

SECTOR ERASE

 

 
The following command is used to erase a sector. 
 
SECTOR xx ERASE - 0x53 0xAE 0x05 0x04 0xAA 0xBB 0xCC 0x00 0x50 
 
Where the Hex Number AABBCC represents an address in the sector to be erased. After the SECTOR 
erase command has been issued a small delay is required for the ERASE to take place. Successful erase 
can be determined by polling the sector with the following command. 
 
0x53 0xAF 0x01 0x50 
 
If a value of  0xFF is returned the sector erase is complete. 
 
Example Sector ERASEs 
 
SECTOR 2 ERASE - 0x53 0xAE 0x05 0x04 0x00 0x10 0x00 0x00 0x50 

Summary of Contents for HAWK216OEM1

Page 1: ...M1_IM_v1_1 19 Aug 14 1 of 19 This document is the property of Raptor Photonics and must not be copied shown or in any way be communicated to persons other than those requiring the information for the execution of their duty Project designation HAWK216OEM1 Camera Document title HAWK216OEM1 User Manual ...

Page 2: ...tle Date Prepared Paul Carson Raptor Photonics 11th December 2013 Reviewed Chris Davis Raptor Photonics 27th May 2014 Reviewed Reviewed Reviewed Reviewed Approved Authorized DOCUMENT CHANGE RECORD Issue Change order Date Pages affected Comment 0 1 11th Dec 2013 DRAFT 1 0 27th May 2014 Reviewed updated and released 1 1 19th Aug 2014 7 Corrected IRIS pinout ...

Page 3: ...lectric Cooler TEC 8 3 1 2 CCD216 Image Sensor 8 3 1 3 Communications Interface 8 3 1 4 Analogue Video output 8 3 1 5 Trigger Output 9 3 2 Functionality 9 3 2 1 Automatic Gain Control AGC 9 3 2 2 EM Gain 9 3 2 3 Exposure Period 9 3 2 4 Unit Serial number 9 4 SERIAL COMMUNICATION 10 4 1 Overview 10 4 2 ETX ERROR codes 11 4 3 Set Commands 12 4 4 Query Commands 13 4 5 Examples 15 4 5 1 Get System Sta...

Page 4: ...D Electron Multiplying Charge Coupled Device EEPROM Electrically Erasable Programmable Read Only Memory FPGA Field Programmable Gate Array FPS Frames per Second LSB Least Significant Bit MHz Megahertz MSB Most Significant Bit PCB Printed Circuit Board TEC Thermo Electric Cooler UART Universal Asynchronous Receiver Transmitter Table 1 Acronyms ...

Page 5: ... details the design for the HAWK216OEM1 P N HK216 AN OEM1 camera The HAWK216OEM1 camera utilises an e2v CCD216 EMCCD sensor to provide low light imaging Details of the camera electrical interfaces and communication protocols are also provided A photograph of the complete Camera module is shown in Figure 1 Camera Photograph Figure 1 Camera Photograph ...

Page 6: ...struction Manual Document number Revision File name Date Page 2013 12 11 01 V1 1 HAWK216OEM1_IM_v1_1 19 Aug 14 6 of 19 2 DESIGN OVERVIEW 2 1 Mechanical Profile Figure 2 Mechanical profile drawing SolidWorks model ...

Page 7: ...ut Coaxial socket Molex 73391 0070 The pin out table is shown below Pin I O Signal Name Inner Out Video Outer GROUND Table 3 Video Connector Pinout 2 2 3 IRIS Control 4 pin socket Kobi 163 158N 2 E The pin out table is shown below Pin I O Signal Name 1 Out 12V Damp 2 Out NC Damp 3 Out Video Drive 4 GROUND Drive Table 4 IRIS Connector Pinout 2 2 4 Ground The design uses one single ground on all PCB...

Page 8: ...wer required to achieve the set point is decreased 3 1 2 CCD216 Image Sensor 768 244 active element 11 5um x 27um pixel size Fully hermetically sealed case with inbuilt TEC 1 output Frame rate 59 94 Frames Second fps Readout noise 45e 13 5 MHz pixel clock Refer to e2v CCD216_BI datasheet for further details available at www e2v com The CCD216 is an Electron Multiplying device which allows the appl...

Page 9: ...ieve the desired light level namely the Electron Multiplying EM Gain and the IRIS aperture When the Auto IRIS is enabled in a low ambient light scene the AGC will fully open the IRIS shutter before adjusting the EM Gain whereas in a high ambient light scene the AGC will reduce the EM gain before closing the IRIS shutter 3 2 2 EM Gain If the AGC is disabled the Electron Multiplication Gain can be m...

Page 10: ...ETX i e should the host command require data to be sent from the camera then the ETX byte will be sent at the end of the requested data Another optional mode of operation is included in the firmware is for check sum operation this mode should only be used when the command acknowledge mode is enabled Once the check sum mode is enabled the camera will only act upon commands that are received with th...

Page 11: ...ial command packet received camera timed out waiting for end of packet Command not processed 0x52 ETX_CK_SUM_ERR Check sum transmitted by host did not match that calculated for the packet Command not processed 0x53 ETX_I2C_ERR An I2C command has been received from the Host but failed internally in the camera 0x54 ETX_UNKNOWN_CMD Data was detected on serial line command not recognized 0x55 ETX_DONE...

Page 12: ...0x012B Set AGC PEAK Average Ration 0x53 0xE0 0x02 0x2D 0xYY 0x50 YY 8 bit value 0 Full Peak 255 Full Average default 0x7F Set AGC speed 0x53 0xE0 0x02 0x2F 0xYY 0x50 YY Bits 7 4 EM speed Default F YY Bits 3 0 EXP speed Default F Set EM gain AGC must be disabled 0x53 0xE0 0x02 0x15 0x0L 0x50 0x53 0xE0 0x02 0x16 0xMM 0x50 Never exceed the EM Gain Maximum stored in the EEPROM 12 bit word L 4 MSBs Upp...

Page 13: ...1 0x2D 0x50 0x53 0xE1 0x01 0x50 YY 8 bit value 0 Full Peak 255 Full Average Get AGC speed 0x53 0xE0 0x01 0x2F 0x50 0x53 0xE1 0x01 0x50 YY Bits 7 4 EM speed Default 7 YY Bits 3 0 not used Get EM gain Maximum 0x53 0xE0 0x01 0x35 0x50 0x53 0xE1 0x01 0x50 0x53 0xE0 0x01 0x36 0x50 0x53 0xE1 0x01 0x50 2 bytes returned 0M LL 12 bit word 0M 4 MSBs LL 8 LSBs Get EM gain 0x53 0xE0 0x01 0x15 0x50 0x53 0xE1 0...

Page 14: ...nts 4096 16 Get PWR PCB temperature 0x53 0xE0 0x01 0x72 0x50 0x53 0xE1 0x01 0x50 0x53 0xE0 0x01 0x73 0x50 0x53 0xE1 0x01 0x50 2 bytes returned 1st byte Top nibble top 4 bits 0 2nd byte Lower byte Counts 1st byte x 256 2nd byte If counts 2048 Positive Temperature oC counts 16 If counts 2047 Negative Temperature oC counts 4096 16 Get Micro version 0x56 0x50 Two bytes transmitted from camera when com...

Page 15: ...mera RX d bytes From camera Get FPGA version 0x53 0xE0 0x01 0x7E 0x50 0x9C none 0x53 0xE1 0x01 0x50 0xE3 0x01 0x53 0xE0 0x01 0x7F 0x50 0x9D none 0x53 0xE1 0x01 0x50 0xE3 0x03 V1 3 4 5 5 Get Unit Serial Number Note that this command will also reset the FPGA Suggest Serial number read at power up Command TX bytes to camera RX d bytes From camera Enable EEPROM Comms 0x4f 0x13 0x50 none Read back EEPR...

Page 16: ...N default value for TEC ON default value IRIS ON 4 5 8 Disable TEC Command TX bytes to camera RX d bytes From camera Get FPGA Status byte 0x53 0xE0 0x01 0x00 0x50 none 0x53 0xE1 0x01 0x50 0x19 Binary AND status byte with 0xFE bit 0 0 none none Send byte i e Disable TEC 0x53 0xE0 0x02 0x00 0x18 0x50 none 4 5 9 Enable Command acknowledge Assume cmd ack 0 to start Command TX bytes to camera RX d byte...

Page 17: ...32768 163840 196607 028000 02FFFF 14 32 32768 196608 229375 030000 037FFF 15 32 32768 229376 262143 038000 03FFFF SECTOR 1 is used for Manufacture specific data i e serial number etc SECTORS 2 15 are used to hold the FPGA configuration information To program a new FPGA configuration 1 Sectors 2 15 must be erased 2 a new bit file must be uploaded to Sectors 2 15 Note that SECTOR 1 must not be ERASE...

Page 18: ...0x02 0x00 0x00 0x00 0x50 0x53 0xAF 0x01 0x50 Continue to poll until 0xFF received SECTOR 13 ERASE 0x53 0xAE 0x05 0x04 0x02 0x80 0x00 0x00 0x50 0x53 0xAF 0x01 0x50 Continue to poll until 0xFF received SECTOR 14 ERASE 0x53 0xAE 0x05 0x04 0x03 0x00 0x00 0x00 0x50 0x53 0xAF 0x01 0x50 Continue to poll until 0xFF received SECTOR 15 ERASE 0x53 0xAE 0x05 0x04 0x03 0x80 0x00 0x00 0x50 0x53 0xAF 0x01 0x50 C...

Page 19: ... As above Poll after each sector is erased until 0xFF is returned Burst write 32 bytes of bit file 0x53 0xAE 0x25 0x02 0x00 0x10 0x00 0xN1 0xN2 0xN3 0xN32 0x00 0x50 0x50 1st burst starting at Sector 2 address Multiple burst writes of 32 bytes of bit file 0x53 0xAE 0x25 0x02 0xAA 0xBB 0xCC 0xN1 0xN2 0xN3 0xN32 0x00 0x50 0x50 Address 0xAABBCC starts at sector 2 base address and needs to be increment...

Reviews: