I am using the PE-HMI1, when I setup the system to use the "green" connector where the RS232/485/422 system runs on "channel 5" as RS232, all works fine.
However on the PMOD-A pins 2,3 and 5, TXD8, RXD8 and ground, and change the setup in the code to use channel 8 for UART, then I still receive my data, but now it is 2's complimented and sent in little-endian, I think, in other words reversed.
So lets say I send a byte - 0x02, this would be 0000 0010,
but on my receiving device (PC) I have received 1011 1111 (0xBF),
I saw in the S7G2 Manual that you can change the mode of transfer from LSB to MSB ect, but cannot find how to do this on the framework config, can someone please assist in getting this to work for me.
In reply to Jeremy:
Hi, thanks for the reply, but no, I have actually taken the connector wires and connected them directly to a RS232 port on the PC, and yes I have used the exact same thing when using the "green" can connector port, so the only thing changing is the wires from the can connector to the PMOD-A, and it gives me this issue, I have also tested it with different values not just the 0x02, noting this only for informational reasons, the issue is as described, when I use the can port, it works, when I use the PMOD-A it does not, I have also tried the PMOD-B port and same issue, so I am assuming that the issue is the RS232/485/422 IC, that runs the can port, but I cannot see how that device will cause a reverse AND invert the bit values....
Also just want to note, I am not new to micro-controllers, so yes I am aware that for final product I cannot take the PMOD-A/B wires directly to a RS232 port, as its not a 5V system but a 13V system and that I should use something like a MAX232 IC, but for testing I am 100% sure the max232 will not reverse the data and switch the bit values back as I have done this before in testing environments, since all I am doing right now is writing my protocol format....
In reply to Ghost:
In reply to FrankL: