Home
        Comedia.C328 UM_V4
         Contents
1.             sc        OMedia Ltd   ARARA RAJ C328 USER MANUAL       nl     gt     PO PQ    Q    FO     Q    AQ      Q    DP    What is the power range of the camera module    The range is  3 0V    3 6V    I want to establish the connection between a PC and the camera module  Is there any  configuration should be done    To connection with a PC  a RS 232 transceiver set up should be used as a communication  interface    I have sent an SYNC command to camera  but it has no response  How can I synchronize  with the module    Users should send the SYNC commands one by one continuously until receiving the ACK  and SYNC commands from the module  Normally  25 60 SYNC commands are required   After that  users should reply with an ACK command    What is the baud rate to synchronize with the camera  Will the baud rate change after  SYNC    C328 supports 7200  9600  14400  19200  28800  38400  57600 and 115200bps  Users can  synchronize with the camera at one of the baud rate above  Once synchronizing with camera  successfully  the baud rate will not be changed until users change it with the    Set Baud rate     command    When will the baud rate be changed after receiving the    Set Baud rate    command    The baud rate will be changed after the module reply with the ACK command  Users must  use the new baud rate after this    After sending    Getpicture    command to the camera  what will the users receive    After sending  Getpicture  command to the module  users will receive an  ACK
2.    a  Data   command   AA 0A 01 XX YY ZZ  telling you the image size  and then the first package of  image data      How to use the image size returned  Also  how many packages must be received to get the  captured image    Users can use the image size to calculate the number of packages will be received   according to the package size set  The equation is shown in the following    Number of package   Image size    Package size     6    According to the flow diagram  the ACK command for the first package is   AA OE 00 00 00 00 and that for the second one AA OE 00 00 01 00    Is the third one AA 0E 00 00 02 00 or AA 0E 00 00 01 01    For the third package  it should be AA 0E 00 00 02 00  Those for the other package are  shown in the following    AA 0E 00 00 L L H H    L L is the low byte of package ID   H H is the high byte of package ID   i e  ID   H H L Lin hex   After synchronization  I got the first picture with too low to too high luminance  What   s  wrong with it    After synchronization  the camera needs a little time for AEC and AGC to be stable  Users  should wait for 1 2 seconds before capturing the first picture    What are the formats of the uncompressed pictures    The formats are shown in the following    2 bit Gray Scale  2 bit for Y only   4 bit Gray Scale  4 bit for Y only   8 bit Gray Scale  8 bit for Y only   12 bit Color  444  RGB    16 bit Color  565  RGB        C328 JPEG Compression Module 13 2004 8 19    
3. C328 User Manual    Release Note   1  Jan 28  2004     official released v1 0    2  Feb 24  2004     official released v1 1  e Fix the definition of verify code    e Fix the bug of unable jump to power save mode  e Fix the incorrect connection speed after wake up from    power save mode    3  Apr 24  2004     official released v2 0     Add auto baud rate detection    e Add support of 9600bps  19200bps  38400bps  e Disable the 8 bit colour for uncompressed picture    4  Apr 12  2005     official released v2 1  e Add command to change the light frequency between    50 60 Hz     Add more descriptions of the resolution selection    5  Aug 19  2005     official released v3 0     Add description of the auto power mode       Add FAQ section        COMedia Ltd     SS BKARARD A    Rm 802  Nan Fung Ctr  Castle Peak Rd  Tsuen Wan NT  Hong Kong  Fax  852  2414 3050    Tel   852  2498 6248  Email  sales comedia com hk  k    htto  Awww comedia com h             COMedia Ltd   SS RAF RARA A C328 USER MANUAL       General Description   The C328 module is a highly integrated serial camera board that can be attached to a wireless or PDA  host performing as a video camera or a JPEG compressed still camera  It provides a serial interface   RS 232  and JPEG compression engine to act as a low cost and low powered camera module for  high resolution serial bus security system or PDA accessory applications     OV CMOS OV528  VGA Image    Compression  Sensor Engine       EEPROM  C328 camera module  Pro
4. Obh  Picture Up Scale 02h Send Register Timeout Och  Picture Scale Error 03h Command ID Error Odh  Unexpected Reply 04h Picture Not Ready Ofh  Send Picture Timeout 05h Transfer Package Number Error 10h  Unexpected Command 06h Set Transfer Package Size Wrong Ith  SRAM JPEG Type Error 07h Command Header Error FOh  SRAM JPEG Size Error 08h Command Length Error Fih  Picture Format Error 09h Send Picture Error F5h  Picture Size Error Oah Send Command Error ffh   12  Light Frequency  AA13h    The host issues this command to change the light frequency of the C328    12 1 Light Frequency Type  50Hz 00h  60Hz Olh   C328 JPEG Compression Module 2004 8 19      COMedia Ltd      FAFRARZA I C328 USER MANUAL          Command Protocol  1  SYNC Command    SYNC er   AA OD 00 00 00 00  O8    ACK C328   AA OE OD xx 00 00     SYNC   AA OD 00 00 00 00     ACK   AA OE OD xx 00 00     2    Make Connection with C328  Send the SYNC command  at 14400bps  until receiving ACK command from C328   usually an ACK command is receive after sending 25 times of SYNC command   This must be  done after power up     SYNC   AA OD 00 00 00 00     SYNC   AA OD 00 00 00 00     SYNC l   AA 0D 00 00 00 00  Max  60 times    SYNC   AA OD 00 00 00 00     ACK   AA OE OD xx 00 00     SYNC   AA OD 00 00 00 00     ACK   AA OE OD xx 00 00        C328 JPEG Compression Module 8 2004 8 19     A COMedia Ltd   SS R AARAA RAE C328 USER MANUAL               3  Initial  Get Picture  Snapshot  Set Package Size  Set Baudrate  Reset and P
5. gram     Figure 1     System block diagram    Features     gt     VVVVV    v     gt     Small in size  low cost and low powered  3 3V  camera module for high resolution serial bus  security system or PDA accessory applications    On board EEPROM provides a command based interface to external host via RS 232    UART  115 2Kbps for transferring JPEG still pictures or 160x128 preview  8bpp with 0 75fps   On board OmniVision VGA color sensor    Built in JPEG CODEC for different resolutions    Built in down sampling  clamping and windowing circuits for VGA  QVGA  160x120 or 80x60  image resolutions    Built in color conversion circuits for 2 bit gray  4 bir gray  8 bit gray  12 bit RGB  16 bit RGB  or standard JPEG preview images    No external DRAM required     System Configuration    1     Camera Sensor  The C328 module uses OmniVision VGA color digital CameraChips with an  8 bit YCbCr interface     OV528 Serial Bridge   The OV528 Serial Bridge is a JPEG CODEC embedded controller chip that can compress and  transfer image data from CameraChips to external device  The OV528 takes 8 bit YCbCr 422  progressive video data from an Sensor CameraChip  The camera interface synchronizes with  input video data and performs down sampling  clamping and windowing functions with desired  resolution  as well as color conversion that is requested by the user through serial bus host  commands    The JPEG CODEC can achieve higher compression ratio and better image quality for various  image resol
6. image data which  is ready for transmitting out to the host     Data Type  Snapshot Picture Olh  Preview Picture 02h  JPEG Preview Picture 05h  Length    These three bytes represent the length of data of the Snapshot Picture  Preview Picture or JPEG  Preview Picture     SYNC  AAODh   Either the host or the C328 can issue this command to make connection  An ACK  command must be sent out after receiving this command        C328 JPEG Compression Module 6 2004 8 19      COMedia Ltd   SS R AARAA RAR    C328 USER MANUAL       10  ACK  AA0Eh     This command indicates the success of last operation  After receiving any valid command  ACK  command must be sent out except when getting preview data  The host can issue this command  to request image data package with desired package ID after receiving Data command from  C328  The host should send this command with package ID FOFOh after receiving a   package to end the package transfer  Note that the field    command ID    should be 00h when    request image data package   10 1 Command ID    The command with that ID is acknowledged by this command     10 2 ACK Counter  No use     10 3 Package ID    For acknowledging Data command  these two bytes represent the requested package ID  While  for acknowledging other commands  these two bytes are set to 00h     11  NAK  AAOFh     This command indicates corrupted transmission or unsupported features     11 1 NAK Counter  No use     11 2 Error Number       Picture Type Error Olh Parameter Error 
7. meter2   Parameter3   Parameter4  Initial AAOlh 00h Color Type RAW JPEG  Resolution Resolution   Still image  only   Get Picture AA04h Picture Type 00h 00h 00h  Snapshot AAOS5h Snapshot Type   Skip Frame Skip Frame 00h  Low Byte High Byte  Set Package AAO6h 08h Package Size   Package Size 00h  Size Low Byte High Byte  Set Baudrate AAO07h Ist Divider 2nd Divider 00h 00h  Reset AAO8h Reset Type 00h 00h xxh   Power Off AAO9h 00h 00h 00h 00h  Data AAOAh Data Type   Length Byte 0   Length Byte 1   Length Byte 2  SYNC AAODh 00h 00h 00h 00h  ACK AAOEh Command ID   ACK counter   00h   Package   00h   Package  ID Byte 0 ID Byte 1  NAK AAOFh 00h NAK counter   Error Number 00h  Light AAI3h Frequency 00h 00h 00h  Frequency Type               If the parameter is OxFF  the command is a special Reset command and the firmware responds to it    immediately     1  initial  AA01h   The host issues this command to configure the preview image size and color type  After receiving  this command  the module will send out an ACK command to the host if the configuration  success  Otherwise  an NACK command will be sent out     1 1 Color Type    C328 can support 7 different color types as follow     2 bit Gray Scale  4 bit Gray Scale  8 bit Gray Scale  12 bit Color  16 bit Color    JPEG    1 2 Preview Resolution    80x60    160x120    1 3 JPEG Resolution  Since the Embedded JPEG Code can support only multiple of 16  the JPEG preview mode can  support following image sizes  It is different from normal p
8. ower Off Command    SYNC  Get Picture  Snapshot  Set Package Size    Set Baudrate  Reset  Power Off    4  Getting a Snapshot for RS232    Make sure connection is made before the following communication   4 1 JPEG Snapshot Picture  eg  640x480 resolution                    Initial  JPEG preview  VGA    AA 01 00 07 yy 07    yy 07  ACK   AA OE 01 xx 00 00   Set Package Size    512 bytes size     AA 06 08 00 02 00   ACK   AA OE 06 xx 00 00     Snapshot  compressed picture     AA 05 00 00 00 00   ACK   AA OE 05 xx 00 00     Get Picture  snapshot picture     AA 04 01 00 00 00   ACK   AA OE 04 xx 00 00     Data  snapshot picture  ACK  AA 0A 01 ere Te        package ID  0000h     AA 0E 00 00 00 00   Image Data Package  512 bytes  ID  0000h  ACK    package ID  0001h    AA OE 00 00 01 00   Image Data Package  512 bytes  ID  0001h    The Last Image Data  Package         ACK  package ID  FOFOh Note    AA OE 00 00 FO FO  xx  yy  Don   t care        Image size returned by C328       C328 JPEG Compression Module 9 2004 8 19         COMedia Ltd   SS FAFRARZA I C328 USER MANUAL       4 2 Snapshot Picture  uncompressed snapshot picture             Initial  preview  VGA     AA 01 00 06 07 zz   ACK   AA OE 01 xx 00 00   Snapshot    uncompressed picture     AA 05 01 00 00 00   ACK   AA OE 05 xx 00 00   Get Picture    snapshot picture     AA 04 01 00 00 00   ACK   AA OE 04 xx 00 00     Data    snapshot picture   AA 0A 01                 Image Data  whole picture   AA OE OA xx 00 00  Note     xx  z
9. review mode     80x64    160x128  320x240  640x480    Olh  02h  03h  05h  06h  07h    Olh  03h    Olh  03h  05h  07h       C328 JPEG Compression Module    2004 8 19       COMedia Ltd        SS R AARAA RA C328 USER MANUAL  2 Get Picture  AA04h   The host gets a picture from C328 by sending this command   2 1 Picture Type  Snapshot Picture Olh  Preview Picture 02h  JPEG Preview Picture 05h  3 Snapshot  AA05h   C328 keeps a single frame of JPEG still picture data in the buffer after receiving this  command   3 1 Snapshot Type  Compressed Picture 00h  Uncompressed Picture Olh  3 2 Skip Frame Counter  The number of dropped frames can be defined before compression occurs     0    keeps the current  frame     1    captures the next frame  and so forth   4  Set Package Size  AAO6h   The host issues this command to change the size of data package which is used to transmit JPEG  image data from the C328 to the host  This command should be issued before sending  Snapshot command or Get Picture command to C328  It is noted that the size of the last  package varies for different image   4 1 Package Size    The default size is 64 bytes and the maximum size is 512 bytes     ByteO ByteN    ID Data Size Image Data Verify Code   2 bytes   2 bytes   Package size   6 bytes   2 bytes       Package Size                                  _    ID   gt  Package ID  starts from zero for an image  Data Size   gt  Size of image data in the package  Verify Code   gt  Error detection code  equals to the lo
10. utions     Program EEPROM  A serial type program memory is built in for C328 to provide a set of user friendly  command interfacing to external host        C328 JPEG Compression Module 2 2004 8 19       COMedia Ltd     ARAARA RD A C328 USER MANUAL       Board Layout    RS 232  RS 232 J1 EEPROM    J1    3 3V Tx Rx GND 28mm  OV Sensor OV528    Top View Bottom View       Figure 2     C328 board layout and serial interface pin    Serial Interface    1  Single Byte Timing Diagram  A single byte RS 232 transmission consists of the start bit  8 bit contents and the stop bit  A start  bit is always 0  while a stop bit is always 1  LSB is sent out first and is right after the start bit      lt q Single Byte Transmission    p       Uu y yy y y y y y y a  S    S amp F S ao S amp F S   amp    oO  40 KF NM BW BRN DAN TD    Figure 3     RS 232 single byte timing diagram    2  Command Timing Diagram  A single command consists of 6 continuous single byte RS 232 transmissions  The following is    an example of SYNC  AA0D00000000h  command      lt 4       SYNC Command                _ gt       AAh i 0Dh r 00h a 00h r 00h   00h           Single    Byte    Figure 4     RS 232 SYNC command timing diagram       C328 JPEG Compression Module 3 2004 8 19      COMedia Ltd   SS RAFRA RZ A     C328 USER MANUAL       Command Set    The C328 module supports total 11 commands for interfacing to host as following                                                           Command ID Number   Parameter    Para
11. wer byte of sum of the whole  package data except the verify code field  The higher byte of this code is  always zero  i e  verify code   lowbyte sum byte 0  to byte N 2     Note  As the transmission of uncompressed image is not in package mode  it is not necessary to  set the package size for uncompressed image        C328 JPEG Compression Module 5 2004 8 19       gt  COMedia Ltd   SS RKAFRA RZ 3  C328 USER MANUAL       6 1    8 2    Set Baudrate  AA07h    Set the C328 baud rate by issuing this command  As the module can auto detect the baud   rate of the incoming command  host can make connection with one of the following baud rate in  the table  The module will keep using the detected baud rate until physically power off    Baudrate Divider  Baudrate   14 7456MHz   2 x  2nd Divider   1    2 x  1st Divider   1     Baudrate 1  Divider 2  Divider   Baudrate 1  Divider   2  Divider  7200 bps 28800 bps  9600 bps 38400 bps          14400 bps 57600 bps  19200 bps 115200 bps                      Reset  AA08h   The host reset C328 by issuing this command     Reset Type     00h    resets the whole system  C328 will reboot and reset all registers and state machines      01h    resets state machines only     Power Off  AA09h    C328 will go into sleep mode after receiving this command  SYNC command  AAODh   must be sent to wake up C328 for certain period until receiving ACK command from  C328     Data  AAOAh   C328 issues this command for telling the host the type and the size of the 
12. z   Don   t care      Image size returned by C328       C328 JPEG Compression Module 10 2004 8 19         COMedia Ltd   SS FAFRARZ I C328 USER MANUAL       5  Getting JPEG preview pictures  video  for RS232  Make sure connection is made before the following communication   5 1 JPEG Preview Picture    Initial    JPEG preview  VGA   AA 01 00 07 yy 07              ACK     AA OE 01 xx 00 00   Set Package Size    512 bytes size     AA 06 08 00 02 00   ACK     AA 0E 06 xx 00 00   Get Picture  JPEG preview picture     AA 04 05 00 00 00   ACK     AA OE 04 xx 00 00     Data  JPEG preview picture  ACK  AA 0A 05 aera cite        package ID  0000h   AA OE 00 00 00 00   Image Data Package  ACK  package ID  0001h     AA OE 00 00 01 00   Image Data Package    512 bytes  ID  0001h  The Last Image Data  Package  ACK    package ID  FOFOh Note    AA OE 00 00 FO FO  xx  yy  Don   t care      Image size returned by C328           C328 JPEG Compression Module 11 2004 8 19    u      COMedia Ltd   SS FAFRARZA I       C328 USER MANUAL       5 2 Preview Picture  uncompressed preview picture     Initial  preview  VGA   AA 01 00 06 07 zz            ACK   AA OE 01 xx 00 00   Get Picture  preview picture   AA 04 02 00 00 00   ACK   AA OE 04 xx 00 00   Data  preview picture 1 frame   AA 0A 02            Image Data  whole picture  ACK   AA OE 0A xx 00 00  Note     xx  zz  Don   t care        Image size returned by C328    C328 JPEG Compression Module       12 2004 8 19                       _   _    pa     
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Manuel d`utilisation  973KB - 日本ハング・パラグライディング連盟  Sikaflex  HUZ107.1 107 litre Built-under freezer  Broan 655 Instructions / Assembly    Samsung Galaxy Tab 4 7.0 (LTE) Instrukcja obsługi  取扱説明書ダウンロード  Cargar  Typhoon™ FLA 7000 Control Software    Copyright © All rights reserved. 
   Failed to retrieve file