synchronization problem between two microcontrollers

Status
Not open for further replies.

srini.pes

Member level 3
Joined
May 28, 2010
Messages
61
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
NIT calicut
Visit site
Activity points
1,725
Hi.,
we are using two atmega32 micro controllers.
We found that the problem was the synchronization between the two controllers.
The clock was provided by the internal RC oscillator instead of a external crystal oscillator.
Will the synchronization problem be solved by using the common crystal oscillators for both micro controllers ?

Thanks and Regards
Srini
 

Thanks for your quick response.
We don't have any communication between those two micro controllers.
we just having common power supply to those two . we are using micro controller to generate pwm for motors.
Intention is to get the signal from UC to motor at same time, but its not happening.
we thought the problem may be the synchronization between the two controllers.
Hope you understood my question.
Please suggest some remedy to avoid this problem.
 

Are those two have similar interfaces?
Will there be any difference in booting time or boot procedure?
What is the expected output in synchronization?How are u saying that bot are not synchronized?Is there any tolerance?
 

Intention is to get the signal from UC to motor at same time, but its not happening.
I can't see the purpose of using different controllers to produce synchronized pwm. Why don't you use just one? If timer match output is leaded to more than one pin of the MCU, then you can use the same pwm from the same controller. I don't know the application scenario so maybe I am missing something here. Please, be more specific on what you are trying to do. Otherwise it seems pointless. Controllers will always have some time difference between them even if they are using the same external cryatal. Just imagine the case of nested interrupts etc. You must plan the application scenario very carefully to have them synchronized, even though I think that this is impossible. What accurancy are you trying to succeed? Nanoseconds?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…