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:
}
Thank you.
Solved! Go to Solution.
I believe before you read the SCID register, you must read the SCIS1 register. This is part of the flag clearing mechanism. (Simply make the last statement first.)
I believe before you read the SCID register, you must read the SCIS1 register. This is part of the flag clearing mechanism. (Simply make the last statement first.)
Thank you very much for your reply!
it works fine this way.