Skip to main content
Associate II
June 18, 2024
Solved

STM32H503 - Timing feasibility using an external RTC

  • June 18, 2024
  • 3 replies
  • 4519 views

Hi...

Greetings...

We're planning to use STM32H503 MCU in our application.

To brief about our application, we've a parallel RTC IC which has gone EOL. This RTC receives commands from the motherboard MCU. So, we're mimicking the RTC's functionality using a microcontroller and a serial RTC in a castellation PCB (smallest form factor). With the microcontroller's GPIO, we're trying to achieve parallel interface. Attached the timing diagram in this thread. Since it's a time critical application, we are preferring to go with a high speed MCU.

The flow of timing diagram goes like this...

When CS0 becomes low, the address is present in the address bus (4 bit). When CS0 goes low, within min. 50ns, Read / Write pin goes low.

During read operation, the data corresponding to the address needs to be placed in data bus (4 bits of data) within 120ns max. During write operation, the data needs to be read from the data bus within 90ns.

Considering the crucial timing, we are checking the feasibility to use STM32H503 MCU (32 pin variant)

Kindly let us know the minimum instruction time of that MCU when it's clocked at Max. 250MHz (internal clock source). As the PCB dimensions are too small, we're expecting the smallest package for the MCU.

 

Kindly provide your comments on whether our timing requirements before met by STM32H503 MCU. Also kindly confirm if the 32 pin variant in that series support internal RTC.

 

Best Regards,

Prahaladh S

Best answer by mƎALLEm

Hello and welcome to the community.

First,


Attached the timing diagram in this thread.

You forgot to attach the diagram. Please attach it to let others in the community help you.

Second, and regarding your last question, this information is available in the STM32H503 datasheet / table 2 :

SofLit_0-1718702562377.png

 

3 replies

mƎALLEm
mƎALLEmBest answer
Technical Moderator
June 18, 2024

Hello and welcome to the community.

First,


Attached the timing diagram in this thread.

You forgot to attach the diagram. Please attach it to let others in the community help you.

Second, and regarding your last question, this information is available in the STM32H503 datasheet / table 2 :

SofLit_0-1718702562377.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate II
June 18, 2024

Hi...

Thank you for your response. Apologies for not attaching the timing diagram in the thread.

 

Attaching in this thread for further proceedings...

Best Regards,

Prahaladh S

mƎALLEm
Technical Moderator
June 18, 2024

Ok thank you. But since STM32H503 device features already an RTC, why do you need to connect an external RTC then?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
June 18, 2024

What is the model of the discontinued chip? It is convenient to find a replacement

mƎALLEm
Technical Moderator
June 18, 2024

Hello,

In that case could we consider that thread closed? and mark the comment that answered your question "Accept as Solution"?

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate II
June 18, 2024

Hi...

Regarding the internal RTC, we are clear with the response.

We would like to know whether the timing mentioned in the timing diagram be met by the MCU - STM32H503. 

Also, we would like to know what's the minimum instruction time when the clock is 250 MHz (internal source need to be used based on the size constraint).

 

Best Regards,

Prahaladh S

mƎALLEm
Technical Moderator
June 18, 2024

For the first question: to confirm the timings you need to run some tests on your HW..  Not obvious to answer by yes or no.

For the second question, to my knowledge, ARM does not give the cycle count for CM33 like for CM3/CM4. See also this thread: https://community.st.com/t5/stm32-mcus-products/cortex-m33-instruction-cycle-counts/td-p/123198

Maybe you need to instrument your code to measure the instructions cycle count using DWT module:

https://developer.arm.com/documentation/100230/0004/debug-and-trace-components/data-watchpoint-and-trace-unit/dwt-functional-description

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.