Hi all,
I am using 2 atmeaga 324pa chips connected together via SPI. Micro A is the master and micro B is the slave. Previously i have only used Micro to an SPI temp chip and requested data from the slave device, never micro to micro.
I would like to read the device connected to micro B every 1 second and communicate this data to micro A over SPI, but i have a question on what is the best practice to read the slave device. I have a couple of questions below:
1) Can i put master micro A in constant receive mode, and just send data from slave micro B every 1 second. Micro A would received data similar to a UART and fire and interrupt?
2) Or should the master micro A request data from slave micro B every 1 second, because the SPI will only receive a byte on the MISO if a byte is clocked out on the MOSI?
Look forward to your reply.
Thanks,
Tuurbo46