
29
Integrated JPEG CODEC
Codec Mode Register
Address 0x003
All other combinations are illegal
11000100 - Auto Two-Pass Compression
10000100 - Statistical Compression Pass
10100100 - Compression Pass with Variable Scale Factor
10100110 - Compression Pass with Fixed Scale Factor
10110000 - Tables-Only Compression Pass
00000000 - Decompression Pass
Reserved
Address 0x004
Must be 0x00 for correct operation.
Maximum Block Code Volume Register
Address 0x005
MBCV7:0:
Maximum Block Code Volume. In all compression modes, MBCV limits
the maximum number of bits that will be used to encode each 8x8 block of samples.
The number of bits is twice the value coded in this register. MBCV=01 represents
two bits per block, and MBCV=FF represents 510 bits per block.
Markers Enable Register
Address 0x006
In compression, this register specifies which of the optional marker segments to
include in the compressed data. Not used in decompression
0
- don’t include the marker segment
1
- include the marker segment
APP:
Reads the Application segment from the Internal Memory and writes it to the
compressed data during the Compression Pass. Used also in Tables-only pass.
COM:
Reads the Comment segment from the Internal Memory and writes it to the
compressed data during the Compression Pass. Used also in Tables-only pass.
DRI:
Define Restart Interval. Enables the restart mechanism and writes the DRI
marker segment to the compressed data during the Compression Pass. When the
restart interval is zero, the restart function is disabled.
DQT:
Define Quantization Tables. Reads the base Quantization Tables defined in
the DQT segment in the Internal Memory, multiplies the quantization values by
Scale Factor (SF), rounds them to eight bits and writes the results together with the
DQT marker and parameters in the compressed data during the Compression
Pass or the Tables-Only Pass. The number of Quantization Tables to be processed
is inferred from the LEN (segment length) parameter of the DQT segment. Note:
the identical scaled tables are used to compress the data.
DHT:
Define Huffman Tables. Reads the Huffman Tables defined in the DHT
segment in the Internal Memory, and writes the DHT segment in the compressed
data during the Compression Pass or the Tables-only Pass.
Interrupt Mask Register
Address 0x007
DATERR:
Enable interrupt upon DATERR signal assertion during the process
0 - Interrupt disabled
1 - Interrupt enabled
END:
Enable interrupt upon END assertion at the end of process
0 - Interrupt disabled
1 - Interrupt enabled
EOI:
Enable interrupt when the EOI marker is being read or written (EOI assertion)
at the code interface
0 - Interrupt disabled
1 - Interrupt enabled
EOAV:
Enable interrupt upon End-Of-Active-Video area during the process
0 - Interrupt disabled
1 - Interrupt enabled
Interrupt Status Register (Read Only)
Address 0x008
DATERR:
Status of the DATERR output pin
0
- DATERR is not asserted (normal operation)
1
- DATERR is asserted (data corruption)
END:
Status of the END output pin
0
- END is not asserted (during the process)
1
- END is asserted (process and returned to IDLE state)
EOI:
Status of the EOI output pin
0
- an EOI marker event did not occur
1
- an EOI marker has been read or written by the host
EOAV:
Latch an event upon End-Of-Active-Video area during the process
0
- an EOAV event did not occur (video is still being output or sampled)
1
- an EOAV event occurred (active area of video has finished)
ProCnt1:0:
2-bit cyclic Process (compression or decompression) counter. It is
reset to one by RESET of the chip and incremented upon START of each field
process.
Target Net Code Volume Register
Address 0x009 - 0x00C
TCV_NET[31:0]:
Target Net Code Volume. Used only in Auto Two-Pass (2nd.
pass) and Compression Pass. TCV_NET is used by the ZR36060 to calculate the
new Scale Factor (SF) and Allocation Factor (AF) after the Compression Pass. It
is the Target Code Volume in bits for the compressed data excluding the marker
segments.
0x003
type
default
7
6
5
4
3
0
2
1
0
0
–
X
COMP
RW
1
PASS2
RW
X
X
X
X
X
X
BRC
RW
FSF
RW
ATP
RW
RW
–
TLM
0x004
type
7
0
–
X
6
0
–
5
0
–
4
0
–
3
0
–
2
0
1
0
0
0
–
X
X
X
X
X
X
X
default
–
–
0x005
type
7
6
5
4
3
2
1
0
MBCV
RW
X
default
0x006
type
7
6
5
4
3
2
0
–
X
1
0
–
X
0
0
–
X
APP
RW
X
default
COM
RW
X
DRI
RW
X
DOT
RW
X
DHT
RW
X
0x007
type
7
0
–
X
6
0
–
X
5
0
–
X
4
0
–
X
3
2
1
0
default
EOAV
RW
X
EOI
RW
X
END
RW
X
DATER
RW
X
0x008
type
7
6
5
X
–
X
4
X
–
X
3
2
1
0
ProCnt1
R
0
default
ProCnt0
R
0
EOAV
R
0
EOI
R
0
END
R
1
DATERR
R
0
0x009
0x00A
0x00B
0x00C
7
6
5
4
3
2
1
0
TCV_NET[31:24]
TCV_NET[23:16]
TCV_NET[15:8]
TCV_NET[7:0]
R/W
X
default
type