yassin.kraouch
Advanced Member level 2
- Joined
- Jul 5, 2009
- Messages
- 631
- Helped
- 40
- Reputation
- 80
- Reaction score
- 40
- Trophy points
- 1,308
- Activity points
- 5,094
Yes but the two PWM that i provided should start at the same time between the two MCU, i am worried that a delay appear when transmitting the clock to the second MCUAn optoisolator is suitable to couple output/input signals refered to different grounds.
However, the target application is not clear.
If main control information you intend to send is Duty-cicle ( i.e. to charge a battery ) transmission line delay don´t matter, due its affect both rising and falling edge. But, if the phase of those PWM signals is relevant, it must be compensated by insertion of few NOPs into firmware.
+++
An output pin from Master uC, can generate an interruption at Slave uC.
It guarantees that can syncronize both PWM operations, because Slave uC can treat it immediatelly and starts PWM operation.
However, due to particular behaviour of transmission way, a fine empirical adjustements at uC Master side may be required by NOP microinstructions, in order to generate some compensative delay.
+++
If both mcu have the same program and the same clock rate wouldn't they be synchronized?
There may be a small difference because of different clock (the ckocks will not be 100% equal rate) but this can only be solved with one external clock feeding both mcu.
Also any signal between the two mcu can be transfered using an optocoupler
Alex
yassin.kraouch said:two MCU have to output two PWM signal that should have a perfect synchronization, beceause each PWM will drive a MOSFET, so for this reason they should be synchronised
the perfect result would be zero difference at start because you know if we have 1ns difference at start after a certain period the difference will increase
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?