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 GGB | R | MPEG register (RGB data) | CDC_GetMpegPtr |
register name | R/W | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
---|---|---|---|---|---|---|---|---|---|
HIRQREQ | R/W | MPST | MPCM | MPED | |||||
7 | 6 | 5 | 4 | 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 undefined section | 0 |
bit13 | MPST | 1: MPEG interrupt status notification (MPEG-related interrupt occurrence) | 0 |
register name | R/W | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
---|---|---|---|---|---|---|---|---|---|
HIRQMSK | R/W | MPST | MPCM | MPED | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
The meaning of the bits is the same as the interrupt factor register.
(1: interrupt enabled, 0: mask)
register name | R/W | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
---|---|---|---|---|---|---|---|---|---|
MPEG GGB | R | TRP | B7 | B6 | B5 | B4 | B3 | G7 | G6 |
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
G5 | G4 | G3 | R7 | R6 | R5 | R4 | R3 |
Name | explanation |
---|---|
R3~R7 | :R (red) upper 5 bits of data |
G3~G7 | :G (green) upper 5 bits of data |
B3~B7 | : Upper 5 bits of B (blue) data |
TRP | : Transparent bit (processed using the transparent bit mode setting of screen special effects) |
The initial value of the bit is undefined.
flag | Command |
---|---|
MPED | ・Initialize MPEG decoder ( CDC_MpInit ) * |
Command | Operating cycle | |
---|---|---|
Decoding system (MPEG decoder, MPEG stream) | 2VSYNC | |
Display system (MPEG display screen) | non-interlaced | 1VSYNC |
interlace | 2VSYNC |
VBLANK-OUT guarantees that the undefined operation period has ended.
It is recommended to perform MPEG-related processing from the timing of VBLANK-OUT.
The MPCM flag is a flag that indicates that the MPEG decoder status has been determined.
Commands issued between MPCM=1 and VBLANK-IN will be reflected in the next section.
Clear the MPCM flag to 0 on the host side and wait for it to become 1 again.
Figure 3.1 Determination of unstable operation section
- Acquisition of previous MPEG status information | ( CDC_MpGetLastStat ) |
・Initialize MPEG decoder | ( CDC_MpInit ) |
・Setting the image data window position | ( CDC_MpSetImgPos ) |
・Setting the image data window size | ( CDC_MpSetImgSiz ) |
・Reading from the image data window | ( CDC_MpReadImg ) |
・Export to image data window | ( CDC_MpWriteImg ) |
・Reading sectors from MPEG sector buffer | ( CDC_MpReadSct ) |
・Write sectors to 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 MPEG sector buffer mode data flow
Execute a soft reset of the CD block using the CDC_CdInit function .
Execute the CDC_GetHwInfo function to check whether the MPEG cartridge is installed.
If it is installed, execute the SYS_CHKMPEG function macro.
(Even if it fails, it will be executed up to 2 times)
If successful, execute the CDC_MpInit function with the switch ON and start the MPEG system.
If the process completes normally, all MPEG communication functions will be available.