Now I’m using ADV212 in JDATA mode. I have tested the Direct-Register-Access successfully by writing and reading back the value in both STAGE and IADDR. And I also have checked both the firmware and encode parameter. What I read back were the same as I wrote in. But now I couldn’t get the SWIRQ0 interrupt. What I read from the EIRQFLG is always 0x0027, not 0x040F. My code is shown below. If there is any change to be done in setting the parameters or order of settings please kindly inform.
while(DirReg_Test()); //check if the direct-register-access is right(write and read back the STAGE and IADDR)
//-----download and check the firmware------
//-----download and check the encode parameter
//-----check EIRQFLG is asserted or not
//-----read the application ID
//-----set EDMOD0 to 0X001B
The encode parameter is set like the following, the remaining are all zeros.