hello everyone.
i have a system which consists of 2 atmega324 mcu (i will say it as mcu A and mcu B), connected each other through USART, and mcu A is connected to other devices using same protocol, and i program my system using codevision. Both of them use interrupt-driven USART on RX side.
btw, the problem is when mcu B send 4 packets in sequence(0x01, 0x02, 0x03, and 0x04) to mcu A, mcu A respond it by sending return packets but seems like mcu B respond the return packets in incorrect order (0x01 i send first returns a packet that is supposed to be a return packet of 0x04, but when i probe it using computer and do the same thing, it returns packets correctly....
can you help me solve this annoying problem? thx for replying :)