(To previous page)
Process start command
(Temporary stop command)
Set up interrupt enable
MITSUBISHI ICs (LSI)
M65761FP
QM-CODER
CMD_REG: 0 0 0 0 1 0 1 0
;Command to restart processing which stopped
temporarily (Coding/decoding)
IENB_REG: 0 0 0 0 0 0 0 1 ;Processing end interrupt enable
[Coding and decoding are performed during this time] – – – I/O of image data and code data is performed.
Note:During the above processing the following is true.
During coding,
(The number of lines of the input image data) = (Number of lines set in the line number setting register)
During decoding,
(Number of lines of the output image data) = ( Number of lines set in the line number setting register)
(Interrupt is generated)
Interrupt disable is set up
d7
d0
IENB_REG: 0 0 0 0 0 0 0 0 ;Interrupt disable
Status register is read out
(Check end of processing)
STAT_REG: – – – s – m – j
;j=End of processing
;m=Marker detection
;s=SC counter overflow
j=1?
Y
N
(Error)
Decoded?
N (Coded)
Y (Decoded)
m=1?
N (Marker not yet detected)
(Error)
Y (Marker detected)
Marker code read out
Note:only for decoding
End
MDET_REG:
s=0?
Y
End
N (SC counter overflow)
(Error)
mdet
;mdet=marker code read out