Page 1 of 1

PIC32MZ2048EFM144 Modbus Problem (Solved)

Posted: Wed Dec 06, 2017 8:33 pm
by Lagoda
Hi Ben,

Now there is a problem with the Modbus Master component.
It would be good if you could help me.
While the Modbus Master sending a data packet to the Slave, during the DIR-pin switch to receiving.
On the RX pin also shows a 110ns long pulse, but I do not know why. (Probably due it is to switching direction.)
This program runs perfectly on a PIC24FJ256GA110 MCU.

I did not find the cause of the mistake.

Best Regards,

Lagoda

Re: PIC32MZ2048EFM144 Modbus Problem

Posted: Thu Dec 07, 2017 1:10 pm
by Benj
Hi Lagoda,

Thanks for letting us know. I have previously fixed this for 16-bit PICs. Hopefully should also be fixed for PIC32 devices now too.

There's basically a multi-byte UART transmit pipeline so you're not sure when the data has been sent out unless you specifically check for it being empty before switching to RX mode.

Simply copy to your "Flowcode 7/components" folder and restart Flowcode.
Modbus.fcpx
(19.06 KiB) Downloaded 279 times
Let us know how you get on.

Re: PIC32MZ2048EFM144 Modbus Problem

Posted: Thu Dec 07, 2017 1:33 pm
by Lagoda
Hi Ben,

Hurray! :D

The repaired version is works perfectly.

Thanks for your quick help.

Lagoda