Page 1 of 1

RS485 3v3 Click example code

Posted: 27 Mar 2024 10:57
by kamputty
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

Re: RS485 3v3 Click example code

Posted: 07 Apr 2024 09:21
by IvanJeremic
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.

Re: RS485 3v3 Click example code

Posted: 11 Apr 2024 04:24
by saramadamusa@gmail.com
If possible, use asynchronous transfer mode to avoid relying on timeouts. This can improve communication speed.