I want to communicate these two micro controllers (ATMega 644A & ATMega328) vis SPI protocol.
My goal is to introduce a routine in the ATMega 644A (Master) so that it will know and can respond to the ATMega328 (Slave).
Can somebody help me with this !!!
Here's an example simulation of a similar project:
An appnote detailing such an implementation:
This application note describes how to setup and use the on-chip Serial Peripheral
Interface (SPI) of the AVR micro-controller. Most AVR devices come with an on board
SPI and can be configured according to this document. After a theoretical background
it will be shown how to configure the SPI to run in both master mode and slave mode
The Serial Peripheral Interface (SPI) allows high-speed synchronous data transfer between an AVR device and peripheral devices or between several AVR devices. The strength of the SPI bus includes ease of use, high communication speed and a vast amount of peripheral devices supporting it.