Yes, the ATMega128 can be set to either master or slave.
I know how to set ATMega128 to master and send commands to the V2Xe, but I don't know how program the ATMega128 to receive data when the V2Xe sends it back in a separate transmission. I originally thought, set ATMega128=>slave...
Is it possible to communicate between the ATMega128 Microcontroller and the V2Xe compass using SPI protocol?
The V2Xe docs says it can only be a slave. The ATMega128 docs say its SPI can only receive data if it's set to slave, meaning the V2Xe would have to be a master in order to send data to...