Hello,
I am currently working on a project involving a GSM module (Sim900A) connected to an MCXN947 microcontroller.
Could you advise me on whether to use receiving data with or without a ring buffer? Additionally, what are the benefits of using a ring buffer?
Could you provide me a brief example or guidance on how to set up it (UART communication with the GSM module)?
Thank you.
Hello, my name is Pavel, and I will be supporting your case, but some questions are beyond the scope of this support channel.
I recommend review the example on the SDK from that MCU, here is the link where you cand find this.
Select Board | MCUXpresso SDK Builder
and here is the IDE.
Select Board | MCUXpresso SDK Builder
And about if you need or not use the ring-buffer depends on your application, if this has a data flow on a high frequency.
Best regards,
Pavel
Thank you for your reply,
Could you please specify the value of this high frequency?
Hi @mays,
It's not a specific frequency where the ring buffer starts being useful. It is rather a relation between the frequency that the UART module clock is operating at, and the frequency that the data is incoming at.
See: https://stackoverflow.com/a/3092143
BR,
Edwin.