Dear all,
I have yet another problem, which bugs me now for weeks. I am trying to setup the AF engine of the H3A module, but have some strange behavior. In particular, the AF values are not stable for a given, fixed test pattern. This happens randomly after the restart of my system (shutdown -r now). Thus, I can startup and the AF engine provides stable values, then I can restart the system and the AF engine provides unstable values. This happens now and then.
In more detail:
My imager is configured to provide a constant image, with the values
R: 512
G: 512
B: 1023
(R and G are 512 to accomodate for offset in the FV calculator)
Thus, a blue image:
In the stable case, the AF engine accumulates the correct sum of pixels (No median filtering, no A-law comression):
(The figure depices the "normalized" accumulated green pixel values for about 130 frames.)
In the unstable case, the AF engine accumulates incorrectly the sum of pixels:
The AF value jumps between 512 and 767.5. Note that 767.5 is the average of 1023 and 512. Thus, it seems, that AF engine confuses the image lines and reads from time to time twice the the same line or so. It looks like there is a synchronization problem, but I have no idea what it origins.
In order to tackle down the problem, I extended the AF driver to read the image values from the RAM instead instead from CCDC. The goal was to test the H3A engine independent from the CCDC (CCDC_CLK = 0 to disable the module) or imager. It turned out that a "synchronization" problem appears here as well.
The test pattern in the RAM looks as follows, which is the same as the test image:
| 512 | 1023 |
| 512 | 512 |
In the good case, the AF engine accumulates the correct sum of pixels (No median filtering, no A-law comression):
(The figure depices the "normalized" accumulated green pixel values for about 130 frames. Red and blue values are not shown here.)
In the bad case, the AF engine accumulates the incorrect sum of pixels:
The values are constant over all frames as expected, but the sum is 506.88 instaed of 512. The bad case seems to occur under the same conditions as the unstable case above. It seems to be synchronization problem as well. The pixels values are not correctly read from the RAM.
I had a detailed look at AF driver and analyzed various cases, but came to the conclusion that the driver should be ok and that the problem is deeper on the "hardware" level.
Thus, my question are:
- How can the restart of the system influence the behavior of the H3A engine?
- Is it possible that the clock settings of H3A engine or CCDC module are "wrong"?
- How can I reset the H3A engine to defined a state?
I am really at loss. Any hint is welcomed.
- Has sombody else experience with the AF engine?
Regards,
Stefan


