datasheet have 1080P 30 frames color bar test code.
if we want to get a 1080p 60 frames color bar test configuration, how could we do in configuration?
could you directly provide a 1080p 60 frames color bar test code configuration.
thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
datasheet have 1080P 30 frames color bar test code.
if we want to get a 1080p 60 frames color bar test configuration, how could we do in configuration?
could you directly provide a 1080p 60 frames color bar test code configuration.
thanks
Hello Shuang,
here you go ...
# CSI cont clk and CSI enable
# board.WriteReg(0x32, 0x01)
board.WriteReg(0x33, 0x03)
#enable pat gen
board.WriteReg(0xB0, 0x00)
board.WriteReg(0xB1, 0x01)
board.WriteReg(0xB2, 0x01) #enable pattern generator
board.WriteReg(0xB1, 0x02)
board.WriteReg(0xB2, 0x33) #fixed color pattern, 8 color bars,
board.WriteReg(0xB1, 0x03)
board.WriteReg(0xB2, 0x24) #CSI Data Identifier (0x24 = RGB888, 0x2C = 12-bit)
board.WriteReg(0xB1, 0x04)
board.WriteReg(0xB2, 0x16) #line size (15:8)
board.WriteReg(0xB1, 0x05)
board.WriteReg(0xB2, 0x80) #line size (7:0)
board.WriteReg(0xB1, 0x06)
board.WriteReg(0xB2, 0x02) #bar size (15:8)
board.WriteReg(0xB1, 0x07)
board.WriteReg(0xB2, 0xd0) #bar size (7:0)
board.WriteReg(0xB1, 0x08)
board.WriteReg(0xB2, 0x04) #active lines per frame (15:8)
board.WriteReg(0xB1, 0x09)
board.WriteReg(0xB2, 0x38) #active lines per frame (7:0)
board.WriteReg(0xB1, 0x0a)
board.WriteReg(0xB2, 0x04) #total lines per frame (15:8)
board.WriteReg(0xB1, 0x0b)
board.WriteReg(0xB2, 0x65) #total lines per frame (7:0)
board.WriteReg(0xB1, 0x0c)
board.WriteReg(0xB2, 0x05) #line period (15:8)
board.WriteReg(0xB1, 0x0d)
board.WriteReg(0xB2, 0x5c) #line period (7:0)
board.WriteReg(0xB1, 0x0e)
board.WriteReg(0xB2, 0x21) #vertical back porch
board.WriteReg(0xB1, 0x0f)
board.WriteReg(0xB2, 0x0a) #vertical front porch
# UHN 8-bar: 0xAA,0x33,0xF0,0x7F,0x55,0xCC,0x0F,0x80
board.WriteReg(0xB1, 0x10)
board.WriteReg(0xB2, 0xaa) #1st byte of fixed color
board.WriteReg(0xB1, 0x11)
board.WriteReg(0xB2, 0x33) #2nd byte of fixed color
board.WriteReg(0xB1, 0x12)
board.WriteReg(0xB2, 0xf0) #3rd byte of fixed color
board.WriteReg(0xB1, 0x13)
board.WriteReg(0xB2, 0x7f) #4th byte of fixed color
board.WriteReg(0xB1, 0x14)
board.WriteReg(0xB2, 0x55) #5th byte of fixed color
board.WriteReg(0xB1, 0x15)
board.WriteReg(0xB2, 0xcc) #6th byte of fixed color
board.WriteReg(0xB1, 0x16)
board.WriteReg(0xB2, 0x0f) #7th byte of fixed color
board.WriteReg(0xB1, 0x17)
board.WriteReg(0xB2, 0x80) #8th byte of fixed color