Arduino Forum

Topics => Robotics => Topic started by: ciro_the_wizard on Aug 07, 2012, 08:58 pm

Title: Camera
Post by: ciro_the_wizard on Aug 07, 2012, 08:58 pm
Hi all, i have buyed Arduino uno some days ago and i need a little help for my camera.. my target is to take a picture with my game boy camera and print it on laptop with serial of arduino. the problem is to set the camera, that need a pin for the clock ( 500 Khz ) and another pin to send many bit for the camera registers. My idea is to use a phase-correct PWM to generate the clock signal and the usart0 to send bits, but does not work because the two frequencies do not match. Can you help me?  =(

( I apologize for my bad english )
Title: Re: Camera
Post by: CrossRoads on Aug 07, 2012, 09:42 pm
Read this section of the datasheet

"20.10 Examples of Baud Rate Setting
For standard crystal and resonator frequencies, the most commonly used baud rates for asynchronous
operation can be generated by using the UBRRn settings in Table . UBRRn values
which yield an actual baud rate differing less than 0.5% from the target baud rate, are bold in the
table. Higher error ratings are acceptable, but the Receiver will have less noise resistance when
the error ratings are high, especially for large serial frames (see "Asynchronous Operational
Range" on page 194)."

Then look at page 200 of the datasheet and see if one those speeds will do what you need.
If so, come back and ask again if anything special needs to be done to communicate at the selected speed.
Title: Re: Camera
Post by: dxw00d on Aug 08, 2012, 08:19 am
You may find this useful -
Title: Re: Camera
Post by: ciro_the_wizard on Aug 09, 2012, 05:50 pm
thank you ... I read the datasheet but I do not know the difference between synchronous and asynchronous ... can you explain it?