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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started