LS_JPEG codec
RM0082
558/844
Doc ID 018672 Rev 1
correct transfer parameters, before any coding process can start. See also
, for an in-depth description of the direct memory access block.
25.3.6 FIFO
buffers
These two
First-in First-out
buffers have a word width of 32 bits, and a depth of 8 words.
FIFO’s are used by the Codec Controller to bufferize the flow of data incoming to (FIFO In)
and outcoming from (FIFO out) the Codec Core. Each FIFO is accessed by reading/writing
always from/to the same address.
25.3.7 Internal
memories
These memories have to be programmed, before the encoding process can start, with the
tables needed by the baseline JPEG algorithm (see
ISO/IEC 10918-1
).
Up to four
quantization tables
are used for both encoding and decoding. DHTMem and
HuffEnc
memories are used for encoding.
HuffMin, HuffBase
and
HuffSymb
memories are
used for decoding.
25.4 Programming
model
25.4.1 Register
map
The JPGC can be fully configured by programming its 32 bits wide registers, which can be
accessed through the AHB slave interface at the base address 0xD080_0000.
An overview of the JPGC memory map is shown in
JPGC registers can be logically arranged in five groups, each one referring to the
corresponding main block of the JPGC (see also
Main Functions
Description):
●
Codec core registers (listed in
●
Codec controller registers (listed in
).
●
DMAC registers (refer to
Section 22.6.2: UHC interrupts
in
)
●
FIFO registers (listed in
).
●
Internal memories (listed in
).
A detailed description of all the JPGC registers is given in
Table 468.
JPGC memory map
Name
Base address
Codec Core
0x0000
Codec Controller
0x0200
FIFO In
0x0400
FIFO Out
0x0600
Quantization Memory
0x0800
HuffMin Memory
0x0C00