Question: Using a Micro-controller simulator, develop a C code which consists of 2 applications, a Master and a Slave. The Master Sends the Slave a 2

Using a Micro-controller simulator, develop a C code which consists of 2 applications, a Master and a Slave.

The Master Sends the Slave a 2 bytes message via 2 different Message Queues.

There will be 2 different interrupts routines that will cause the Slave to wake up and read the Message Queues, Watchdog interrupt & 1Hz Event interrupt.

The Master will send the messages in multiple cadences randomly, example: every 3sec, 7sec, 2sec, 5sec, and so on.

Therefore, every 30 seconds the Watchdog will trigger the Slave to read Queue #1

and the 1Hz Event will trigger to slave to read Queue #2 every 1 second.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!