Comunication between two MCUs
Hi all, this is the question: which is the fastest method to exchange informations between two 8-bit mcus?
I'm developing a tacho unit for a friend's go-kart. As long as I'm planning to use multiplexed 7-segment displays, I want to dedicate one micro to the multiplexing job and the other one will perform measurements and other operations ( the tacho is only a part of the things I want put on the kart )... maybe I'll use two PIC16f877a.
To have all finally working, I nedd them to comunicate, with the one telling the speed to the other. My ideas were:
-to use interrupts and serial or I2C-bus protocol, with the display-manager interrupting the other to get updated data. My doubbts are about lags: if the comunication is too long, the displaying won't be as clear and fluid as it must.
-the use of a buffer: I planned to use an 8bit buffer formed by 8 D-Latch flip-flops and interrupts between mcus, so when the one is writing the other doesn't read and vice-versa... but it can be quite expensive.
-the use of a shared memory, for example an I2Cbus EEPROM shared between the two micros, and the interrupts acting as above.
Any more ideas? THX in advance, I won't forget to add You in the "Special THX" list when I'll post the project ;-)