RS485 3v3 Click example code

Discuss with MikroElektronika software developers about current library development.
Post Reply
Author
Message
kamputty
Posts: 31
Joined: 22 Aug 2012 21:34

RS485 3v3 Click example code

#1 Post by kamputty » 27 Mar 2024 10:57

Hi all,

Not sure if this is the correct group to write this...

I am starting a project to Use Modbus, and I purchased a RS485 3v3 Click to get the 485 working. I'm using the latest necto.

I got the the demo example for the RS485 from the Package Manager (v2.1.0.14), and got it working.

BUT...it was slowwwww....

I did some digging, and noticed there is a "Delay_100ms()" statement on line 103 in rs4853v3.c. I comment this out, and perfect speed...Is there a reason for this delay???

Thanks!

~Kam

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: RS485 3v3 Click example code

#2 Post by IvanJeremic » 07 Apr 2024 09:21

Hi,

Some MCUs can not handle larger speeds so the delay was implemented so a lot more MCU architectures can handle the example.

Of course if your MCU can handle larger speeds then you can comment out the delay.

Regards,

Ivan.

saramadamusa@gmail.com
Posts: 1
Joined: 11 Apr 2024 04:19

Re: RS485 3v3 Click example code

#3 Post by saramadamusa@gmail.com » 11 Apr 2024 04:24

If possible, use asynchronous transfer mode to avoid relying on timeouts. This can improve communication speed.

Post Reply

Return to “Library Development Discussion”