Question
Best practice for application architecture (user input, screen updating, file writing)
Hi, my application needs to handle CAN message input, Updating the screen through UART, constant buffered LOG file writing to MicroSD card. I was wondering what kind of flow I could use?
- For CAN messages I could use interrupts and update variables (though if user input is too fast I could loose some of the input and treat only the last one... which isn't ideal)
- Writing LOG in main loop
- Updating screen also in main loop? but that would create LAG depending on if LOG file is ready to be written?
Any ideas and advises? Should I user TIMER interupt for updating screen? But I dont think that updating screen with UART in interupt is good idea as its heavy operation?
