Page 1 of 1

Problem on setting TCNT1

PostPosted: Mon Jul 31, 2006 11:30 pm
by Tony
Dear all,

So happy to join this forum!

I am a beginner with AVRCam but get a problem during changing cam resolution.

As the line size can be controlled by the value of TCNT1H and TCNT1L (pclk counting). But G color is always 0x01(R and B are fined) if TCNT1H is set lower than 0xFE, setting to 0xFF and 0xFE are fined with the same code.

Am I missing something? Please help.


PostPosted: Tue Aug 01, 2006 7:36 pm
by johno
Can you post the changes you made to the source code here, with an explanation as to what you are trying to do? I'll take a look at it and try to help figure out what is going on.

PostPosted: Wed Aug 02, 2006 8:38 pm
by Tony
Dear John,

Nice to meet you and thanks for your reply, the problem is fixed when I set the HREF time (in cam register) longer than the value set at TCNT1H and TCNT1L.

And I go back to the original source code, and change PIXEL_RUN_START_INITIAL in CamInterfaceAsm.S to 0x40 (just set a value lower than 0x50), I meet the same case (by dumping the picture with AVRView and the picture turns red). ????