Hi
I want to use Test Pattern Generation on DS90UB948, it's work fine when use external timing, but when I switch to internal clock, I can see nothing just black screen. And DS90UB948 can't access with I2C bus any more until reboot.
With similarity steps on DS90UB928, it works fine.
And I noticed that there is no reg 0x39(PG Internal Clock Enable) in DS90UB948.
Bellow is my configure:
PG_write(2, chip, 0x03, se?2:2);//Clock Divider, 947:200MHz/95MHz=2.1, 948:140MHz/47.1MHz=1.47
//PG_write(2, chip, 0x03, se?4:3);//Clock Divider, 947:200MHz/47.1MHz=4.2, 948:140MHz/47.1MHz=2.9
//Active Frame Size
//H 1920=0x0780
//V 720=0x02D0
PG_write(2, chip, 0x07, 0x80);//Active Horizontal Width - 8 least significant bits of the 12-bit Active Horizontal Width
PG_write(2, chip, 0x08, 0x07|(0x00<<4));//bit[0:3]-4 most significant bits of the 12-bit Active Horizontal Width,
//bit[4:7]-4 least significant bits of the 12-bit Active Vertical Width
PG_write(2, chip, 0x09, 0x2D);//Active Vertical Width
//Total Frame Size
//H=1920+48=0x07B0, V=720+65=0x0311
//hback-porch = <24>;
//hfront-porch = <24>;
//hsync-len = <16>;
//vback-porch = <8>;
//vfront-porch = <57>;
//vsync-len = <7>;
PG_write(2, chip, 0x04, 0xB0);
PG_write(2, chip, 0x05, 0x07 | (1<<4));
PG_write(2, chip, 0x06, 0x31);
PG_write(2, chip, 0x0C, 0x18);//Horizontal Back Porch Width
PG_write(2, chip, 0x0D, 0x08);//Vertical Back Porch Width
PG_write(2, chip, 0x0A, 0x10);//Horizontal Sync Width
PG_write(2, chip, 0x0B, 0x07);//Vertical Sync Width
i2c_write(2, chip, 0x65, externalclock?0x03:0x07);
i2c_write(2, chip, 0x39, externalclock?0x00:0x02);
i2c_write(2, chip, 0x64, on?0x11:0x00);
Thanks!
jianxin