I want to write a program that intercepts serial communication between two microprocessors. Therefore I chose the Atmega 162 featuring two UARTS. Now I want to decide if I write the code using interrupts (which makes things more compilacted)
or just in a cyclic way
- read from UART
- process data
- write to UART
The packets are fixed size are 42 bytes on one line and 12 bytes on the other line. Between the single packets is a gap with ~1 ms.
The question: Do you agree to use the cyclic (fixed) way instead of interrupt driven way?
Theres no code up to now, but here you can find the project page