AnsweredAssumed Answered

ADV202 RAW mode problem in Encode

Question asked by taku on Mar 31, 2011
Latest reply on Apr 5, 2011 by DaveD

Hi,

 

I am tring to input data using VDATA in RAW pixel mode and output compressed data using HDATA in HOST mode.

The problem is happened that VRDY is not low after asserting VSTROB and VFRM.

I confirmed that SWFLAG is 0xFF82 (for encode mode), EIRQFLAG[10] is '1', and EIRQFLAG[1]='1' after loading firmware.

Also, i can not resolve a problem though i re-view registers comparing with register is discribed in the discussion "ADV212 RAW mode problem".

 

Please give me a advise what is problem.

The below is register setting.

 

Regards,

--

Kubo

 

PLL_HI - 0x0008
PLL_LO - 0x0004
wait 20us

BOOT - 0x008A
BUSMODE - 0x0005
MMODE - 0x0005

## Load firmware
STAGE - 0x0005
IADDR - 0x0000
IDATA - 0xE59F
......
IDATA - 0x0000 - total 32Kbytes

BOOT - 0x008D
BUSMODE - 0x0005
MMODE - 0x0005

## Enocde parameters
STAGE - 0x0005
IADDR - 0x7F00
IDATA - 0x0400
IDATA - 0x0503
IDATA - 0x0101
IDATA - 0x0000
IDATA - 0x0200
IDATA - 0x0600
IDATA - 0x004F
IDATA - 0x0001
IDATA - 0x0000 -- this data is sent 112 times

## Indirect registers
STAGE - 0xFFFF - PMODE1
IADDR - 0x0400
IDATA - 0x0004
STAGE - 0xFFFF
IADDR - 0x040C
IDATA - 0x0280 - XTOT(640)
IDATA - 0x01E0 - YTOT(480)
IDATA - 0x0001 - F0_START
IDATA - 0x0000 - F1_START
IDATA - 0x0001 - V0_START
IDATA - 0x0000 - V1_START
IDATA - 0x01E0 - V0_END
IDATA - 0x0000 - V1_END
IDATA - 0x0001 - PIXEL_START
IDATA - 0x01E0 - PIXEL_END(480)
STAGE - 0xFFFF - PIXEL MODE2
IADDR - 0x0448
IDATA - 0x003F
IDATA - 0x00A6 - VIDEO MODE
STAGE - 0xFFFF - CODE FIFO THRESHOLD
IADDR - 0x141C
IDATA - 0x0062
STAGE - 0xFFFF - EMODE0
IADDR - 0x1408
IDATA - 0x0002

## Direct registers
EIRQIE - 0x0400  - write address=5
wait for IRQ

EIRQFLG[10] - '1' - read address=6

EIRQFLG[1] - '1'

SWFLAG - 0xFF82 (OK) - read address=7

BUSMODE - 0x0005

STAGE - 0xFFFF - EMODE0
IADDR - 0x1408
IDATA - 0x0003

EIRQFLG - 0xFFFF

## input pixel

VSTROB - '1'
VFRM - '1' by first byte of line

VSTROB  - '0' after sending 640x480pixels

wait until VRDY ='0'

Outcomes