Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

V2Xe, ATMega128 SPI comm.

Status
Not open for further replies.

tweier82

Electrical
Jan 11, 2005
2
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 the ATMega 128.
 
Replies continue below

Recommended for you

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, V2Xe=>master, but V2Xe won't do this.
 
Set the ATM as master, and just "ask" the V2Xe for specific data. Master's recieve data! The difference between a master and a slave is that the master controls all of the communication. A slave will only respond, never begin a "conversation". The master MUST initiate "conversations".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor