I am trying to convert Still Image raw data into data in the "JPEG 2000" format by using the
ADV212 HIPI mode, but it won't work.
I wonder if I could ask you to give me some advice.
Although I tried to transfer raw data to the "Pixel FIFO" by using DMAC, no transfer request
(/DREQ) after the initial 1024 bytes (4 bytes X 256) could be active, and also no data could be
retrieved from the "Code FIFO."
Similarly, when I tried to have access to it in the Normal Host mode without using DMAC, no
data after 1024 bytes was able to be written.
I think there is no problem in the initial setting of the ADV212.
(It was checked by retrieving the data after writing the setting value of each
For each signal line (e.g., CS, ACK, or DACK) of HIPI I/F, its timing and voltage level were
checked by an oscilloscope.
2. Settings and others
・Still Image Encode ( RAW → JPEG 2000 ), Reversible
・HIPI mode ( HDATA BUS 32bit )
・DMA (DCS mode or Burst DREQ/DACK DMA mode)
・Image Data: 640×480, 14 bits, single-component
・Clock: MCLK=20MHz, JCLK=100MHz
3. Points to be clarified
1) Is there any necessary processing after the transfer to the "Pixel FIFO?"
2) I have transferred the format of raw data in the following order:
Do you think this order is all right?
"Transfer the top left pixel in the row direction to the right (640 pixels), and the following
rows in the same way until the last row (480th row)."
3) Does the source raw data need a header?
Although the materials describe a header (16 bytes), is it needed for the source raw data?
In addition, in what format should a header be?
It seems to me that the description on page 4 in "ADV202_HIPI_mode_rev03.pdf" is
different from that on page 2 in "TechNote_ADV202_output_format_1.pdf."
4) In what timing the encode performance should be done?
I think that it is when the data of 1frame(XTOT*YTOT) is transferred to the "Pixel FIFO"
that it is encoded into the "JPEG 2000" format.
After then, I think that the converted data is set to the "Code FIFO," but in addition, is it
necessary to trigger the encode?
5) The content of the "EIRQFLG" register
If it is retrieved after the occurrence of a phenomenon, it will be "0x5029."
It is different from what is described on page 31 in "ADV212_UserGuide_Rev1.1.pdf," are
there any other meanings in it.
The initial setting value is "0x000F."
Applicable image size:
Although 640x480 pixel data is used for evaluating the ADV212, 4872x3248 pixel data will be
covered for a real machine.
According to the data sheet, the maximum applicable size is 4096x4096 pixels, but is it
possible to apply to 4872x3248 pixels by using two or more ADV212s?
5. Setting values of registers/parameters
1) Direct Registers
2) Indirect Registers