★ PROGRAMMER'S GUIDE ★ CD communication I / F (MPEG part)| Register name | R / W | explanation | Access function |
|---|---|---|---|
| HIRQREQ | R / W | Interrupt factor register | CDC_GetHirqReq , CDC_ClrHirqReq |
| HIRQMSK | R / W | Interrupt mask register | CDC_GetHirqMsk , CDC_SetHirqMsk |
| MPEG RGB | R | MPEG register (RGB data) | CDC_GetMpegPtr |
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
|---|---|---|---|---|---|---|---|---|---|
HIRQREQ | R / W | MPST | MPCM | MPED | |||||
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
| bit | name | explanation | initial value |
|---|---|---|---|
| bit11 | MPED | 1: End of MPEG related processing | 1 |
| bit12 | MPCM | 1: End of MPEG operation indefinite section | 0 |
| bit13 | MPST | 1: Notification of MPEG interrupt status (MPEG-related interrupt generation) | 0 |
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
|---|---|---|---|---|---|---|---|---|---|
HIRQMSK | R / W | MPST | MPCM | MPED | |||||
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
Register name | R / W | 15 | 14 | 13 | 12 | 11 | Ten | 9 | 8 |
|---|---|---|---|---|---|---|---|---|---|
MPEG RGB | R | TRP | B7 | B6 | B5 | B4 | B3 | G7 | G6 |
7 | 6 | Five | Four | 3 | 2 | 1 | 0 | ||
G5 | G4 | G3 | R7 | R6 | R5 | R4 | R3 | ||
| Name | explanation |
|---|---|
| R3 ~ R7 | : Upper 5 bits of R (red) data |
| G3 ~ G7 | : Top 5 bits of G (green) data |
| B3 ~ B7 | : Upper 5 bits of B (blue) data |
| TRP | : Transparent bit (Processed by setting the transparent bit mode of the screen special effect) |
| flag | Command |
|---|---|
| MPED | -Initialization of MPEG decoder (CDC_MpInit) * |
| Command | Operation cycle | |
|---|---|---|
| Decoding system (MPEG decoder, MPEG stream) | 2VSYNC | |
| Display system (MPEG display screen) | Non-interlaced | 1VSYNC |
| Interlace | 2VSYNC | |
Figure 3.1 Judgment of indefinite operation section
-Acquisition of the previous MPEG status information | ( CDC_MpGetLastStat ) |
-Initialization of MPEG decoder | ( CDC_MpInit ) |
-Image data window position setting | ( CDC_MpSetImgPos ) |
-Image data window size setting | ( CDC_MpSetImgSiz ) |
-Reading from the image data window | ( CDC_MpReadImg ) |
-Export to the image data window | ( CDC_MpWriteImg ) |
-Reading sectors from the MPEG sector buffer | ( CDC_MpReadSct ) |
-Sector writing to the MPEG sector buffer | ( CDC_MpWriteSct ) |
Figure 3.2 Data flow in video playback mode
Figure 3.3 Data flow in still image playback mode
Figure 3.4 Data flow in MPEG sector buffer mode
★ PROGRAMMER'S GUIDE ★ CD communication I / F (MPEG part)