Hi !
Thanks for your reply!
I too is of the opinion that it is some timing problem, it partly was corrected when I fixed some faulty dip-switch setting in the westermo.
I enclose the output of the GUI.
The PC side converter is a Westermo MDW-45
The PIC side converters are ISL3294 + ISL3284
Tx enable code is:
(in .h file)
In .c file
Thanks!
Jens
Thanks for your reply!
I too is of the opinion that it is some timing problem, it partly was corrected when I fixed some faulty dip-switch setting in the westermo.
I enclose the output of the GUI.
The PC side converter is a Westermo MDW-45
The PIC side converters are ISL3294 + ISL3284
Tx enable code is:
(in .h file)
Code:
#define DEN LATA0 //Data enable
In .c file
Code:
DEN = 1;
//Let the DEN settle
__delay_us(10);
TXEN = 1;
CPos = 0;
while (CPos < Flen)
{
TXREG = ComBuf[CPos++]; //Put next char in buffer
while (!TRMT); //Wait for data to be shifted out
}
//Wait for TSR to send last bits
while (!TXIF);
Thanks!
Jens