cancel
Showing results for 
Search instead for 
Did you mean: 

STM32h755 Clock sync

baselimadt
Associate III

Hi,

I am working on a product for one of my clients that included two MCUs (STM32h755) on the same board working together and he requested both MCUs to be run on the same time "same clock", to be synced together. could you please advise if it possible to add a clock generator IC to feed both MCUs same clock. if so, please suggest a component or a document that will help me with this design.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

If you use a clock generator, then it's just a digital signal that you apply to both microcontrollers.

The microcontroller's datasheet will give the specifications of its input pin;

The clock generator's datasheet will give the specifications of its output pin.

Just make sure that those are compatible.

                               +------+
                               |      |
+---------+           +------->+ MCU1 |
|         |           |        |      |
|  Clock  |           |        +------+
|   Gen   +---------->+
|         |           |        +------+
+---------+           |        |      |
                      +------->+ MCU2 |
                               |      |
                               +------+
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

8 REPLIES 8
TDK
Super User

One way would be to feed a clock signal to both using an XO. Another would be to generate the clock from one to send to the other using a TIM or MCO output.

If you feel a post has answered your question, please click "Accept as Solution".

Hi thanks for your answer
would you recommend a clock generator to feed them both, or a design document to help.

Andrew Neil
Super User

@baselimadt wrote:

both MCUs to be run on the same time "same clock", to be synced together.


Note that just running them on the same clock will not guarantee that they are synchronised!

 

See: https://community.st.com/t5/stm32-mcus-products/synchronizing-the-clocks-of-two-stm32s/m-p/719808/highlight/true#M261443

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Hi 
I know this point, but for now I want to them to run on the same clock, since this is a requirement from the client.

If you use a clock generator, then it's just a digital signal that you apply to both microcontrollers.

The microcontroller's datasheet will give the specifications of its input pin;

The clock generator's datasheet will give the specifications of its output pin.

Just make sure that those are compatible.

                               +------+
                               |      |
+---------+           +------->+ MCU1 |
|         |           |        |      |
|  Clock  |           |        +------+
|   Gen   +---------->+
|         |           |        +------+
+---------+           |        |      |
                      +------->+ MCU2 |
                               |      |
                               +------+
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

also could you suggest how to make sure that both MCUs are synced ?

You would need some protocol between them - hardware and/or software.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.