Hi all,
I would like to use the IPIPE's histogram module, but I cannot get any data from it (all memory is filled by 0). My configuration:
IPIPE.HST_SEL[2] = 0; // Input == noise filter
IPIPE.HST_SEL[1:0] = 2; // Bayern G = (Gr+Gb)/2
IPIPE.HST_PARA[13:12] = 3; // 256 bin
IPIPE.HST_PARA[3:0] = 1; // Region 0 enabled
IPIPE.HST_0_VPS = 2;
IPIPE.HST_0_HPS = 0;
IPIPE.HST_0_VSZ = 1080-4; // Vertical size
IPIPE.HST_0_HSZ = 1920-2; // Horizontal size
IPIPE.HST_PARA[7:4] = 0x0f; // R,G,B,Y enabled,
IPIPE.HST_PARA[11:8] = 4; // SHF == 4, ISS kodbol
IPIPE.HST_TBL[1] = 1; // Histogram clear
IPIPE.HST_TBL[0] = 0; // Table 0 and 1
IPIPE.HST_MUL_R = 6;
IPIPE.HST_MUL_GR = 6;
IPIPE.HST_MUL_GB = 6;
IPIPE.HST_MUL_B = 6;
IPIPE.HST_MODE[0] = 0; // Free run mode
IPIPE.HST_EN[0] = 1; // start!
The IRQ routine is called synchronously with RSZ and other interrupts, but all the IPIPE_HIST_MEM0 and IPIPE_HIST_MEM1 are filled with zeros. What's wrong?
Regards,
Lajos