
19
Integrated JPEG CODEC
constitute a legal preamble for the SOI marker code of the next
field, and thus are ignored by the ZR36060.
In 8-bit interface mode, the number of appended bytes can be 1,
2, 3 or 4.
In 16-bit interface mode, the number of appended bytes can be
2, 3, 4 or 5.
Note that in both cases, if the number of bytes from the first byte
of SOI up to and including the second byte of EOI is an exact
multiple of 4, the ZR36060 actually appends 4 more bytes. Note
also that in 16-bit mode, if one byte is required to make the total
a multiple of 4, the ZR36060 actually appends 5 bytes.
5.2.3 Transition between fields in compression
For compression, Figure 24 shows code transfer with 8-bit inter-
face and Figure 25 with 16-bit interface, at the transition between
consecutive fields showing the behavior of the EOI, END and
CBUSY signals.
CBUSY is asserted after the last padding byte has been read
out. It remains asserted continuously until the first code byte of
the next field is available. A code read is shown in the figures
while CBUSY is asserted, with the host access stalled.
EOI is asserted as soon as the read cycle of last byte of the EOI
marker code (0xD9) is completed.
END is asserted only after the all the compressed data, including
the padding bytes, was read out, and the post-compression cal-
culations are completed and their results stored in the host-
accessible registers. At this time the ZR36060 returns to the
IDLE state. Compression of the next field is started when the
ZR36060 senses the START signal active.
Figure 24. 8-Bit Code Slave Mode Compression, Transistion Between Consecutive Fields
CS
ADDR[1:0]
RD
ACK
CBUSY
EOI
DATA[7:0]
D9
FF
FF
FF
00
END
FF
FF
D8
32-Bit Alignment (Worst Case Padding)
CODE for Field N
CODE for Field N+1
Start-Of-Image marker
End-Of-Image marker
End of Field
Process
Start new field process
due to START
Figure 25. 16-Bit Code Slave Mode Compression, Transistion Between Consecutive Fields
CS
ADDR[1:0]
RD
ACK
CBUSY
EOI
DATA[7:0]
CODE[7:0]
XXXX
XXFF
D9FF
FFFF
00
00
END
FFFF
FFD8
FFXX
32-Bit Alignment
(Worst Case Padding)
CODE for Field N
CODE for Field N+1
Start-Of-Image marker
End-Of-Image marker
End of Field
Process
Start new field process
due to START