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
PIC32MZ2048EFM144 Modbus Problem (Solved)
Moderator: Benj
PIC32MZ2048EFM144 Modbus Problem (Solved)
- Attachments
-
- PIC32MZ_Modbus_test.fcfx
- (18.95 KiB) Downloaded 348 times
-
- Modbus_ReadHoldingRegister_PIC32MZ.jpg (33.33 KiB) Viewed 6942 times
Last edited by Lagoda on Thu Dec 07, 2017 1:36 pm, edited 1 time in total.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PIC32MZ2048EFM144 Modbus Problem
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.
Let us know how you get on.
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.
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel