I have used the SCI intterface before and with succes but now it's nothing but trouble.
I'm expecting to receive 8 bytes, but every byte is received twice!
(when 'ABCDEFGH' is sent, 'AABBCCDD' is received.
Please give me some advise. I'm using the interrupt routine below:
__interrupt void isrVscirx(void)
{
RxBuf[RcvCount] = SCID; // store in buffer
RcvCount++;
if (RcvCount==RXMAXBYTES) {
AsuroDataValid = TRUE;
RcvCount =0;
SCIC2_RE =0;
SCIC2_RIE =0;
}
(void) SCIS1; // reset flag
}
Thank you.