Problem on setting TCNT1

This forum is used for discussing hardware, software, and technical details of the AVRcam embedded system.

Problem on setting TCNT1

Postby Tony » Mon Jul 31, 2006 11:30 pm

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.

Tony
Tony
 
Posts: 2
Joined: Mon Jul 31, 2006 11:16 pm

Postby johno » Tue Aug 01, 2006 7:36 pm

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.
-John O
Site Admin
johno
 
Posts: 51
Joined: Thu Mar 16, 2006 2:29 pm

Postby Tony » Wed Aug 02, 2006 8:38 pm

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). ????

Tony
Tony
 
Posts: 2
Joined: Mon Jul 31, 2006 11:16 pm


Return to AVRcam Embedded System

Who is online

Users browsing this forum: No registered users and 1 guest

cron