Post Go back to editing

How to use the VGA display use by auto graphic mode

Category: Software
Product Number: ADV7850
Software Version: 1

My flow below,

// Enter auto graphics mode.
I2C_Master_Transmit(0xA0 >> 1, 0x01, 0x02);
I2C_Master_Transmit(0xA0 >> 1, 0x00, 0x07);

// Generate the pixel clock.
iValue = 0x0898;
I2C_Master_Transmit(0xA0 >> 1, 0x16, (uint8_t)(((iValue >> 8) & 0x1F) | BIT7));
I2C_Master_Transmit(0xA0 >> 1, 0x17, (uint8_t)(iValue & 0xFF));

//Configure the expected free run line length.
iValue = 0x01A8;
I2C_Master_Transmit(0xA0 >> 1, 0x8F, (uint8_t)((iValue >> 8) & 0x07));
I2C_Master_Transmit(0xA0 >> 1, 0x90, (uint8_t)(iValue & 0xFF));

//Set the expected number of free run lines per field.
iValue = 1125;
I2C_Master_Transmit(0xA0 >> 1, 0xAB, (uint8_t)((iValue >> 4) & 0xFF));
I2C_Master_Transmit(0xA0 >> 1, 0xAC, (uint8_t)((iValue & 0x0F) << 4));

//Configure the interlaced or progressive parameter.
I2C_Master_Transmit(0x44 >> 1, 0x91, 0x80);

//Set input color space1
iValue = I2C_Master_Recieve(0xA0 >> 1, 0x02);
iValue &= ~0xF0;
iValue |= 0x70;
I2C_Master_Transmit(0xA0 >> 1, 0x02, iValue);

//9. Adjust digital clamping position2
iValue = 0x40;
I2C_Master_Transmit(0x44 >> 1, 0xC8, iValue >> 5);
iValue = I2C_Master_Recieve(0x44 >> 1, 0xC9);
iValue &= ~BIT6;
I2C_Master_Transmit(0x44 >> 1, 0xC9, iValue);
iValue = I2C_Master_Recieve(0x44 >> 1, 0xCA);
iValue &= ~0x0F;
I2C_Master_Transmit(0x44 >> 1, 0xCA, iValue);

I want to use auto mode to output 1920x1080 resolution(1080P).

Also I refer to example 3 in the file 4251.ADV7844_ADV7842_Autographics_Pr0_031109-1.pdf.

But it's not working, what steps am I missing?

Thank you.