Question: solve every part shortly (h) Semaphore and a Mutex are two inter-task communication objects used to protect shared resources. i. Compare and contrast these in







solve every part shortly
(h) Semaphore and a Mutex are two inter-task communication objects used to protect shared resources. i. Compare and contrast these in terms of simplicity, cost, speed, and effectiveness. You may illustrate you answer by the Flashing LED example discussed in class. ii. Fig.1(d) shows an Audio_Thread and its stacks in the Threads list of Synergy SSP platform under e2 Studio ISDE. This thread has a sf_audio_playback_semaphore that is used to notify the application that an audio event has occurred. Explain what the following excerpt codes would do. 5 marks IX_SEMAPHORE g_sf_audio_playback_semaphore; 6 void audio_thread_create (void) /* Initialize each kernel object. "/ tx_semaphore_create (6g_sf_audio_playback_semaphore, (CHAR *) "Audio Semaphore", 0): IX_SEMAPHORE g_sf_audio_playback_semaphore; void audio_thread_create (void) 1 1 Initialize each kernel object. */ tx_semaphore_create ( g_sf_audio_playback_sermaphore, (CHAR *) "Audio Semaphore", 0); void sf_audio_playback_callback_(sf_message_callback_args_t * p_args) \{ SSP_PARAMETER_NOT_USED(p_args); tX_semaphore_put(\&g_sf_audio_playback_semaphore); status = tx_semaphore_get (\&g_sf_audio_playback_semaphore, TX_NO NAIT) ; if (Istatus) \{ Fig. 1(d): Audio_Thread and its stacks i. Serial communication can be categorised as either Asynchronous or Synchronous. Compare and contrast the two methods, stating the advantages and disadvantages of each. ii. Communication can also be considered as Simplex, half-duplex or full-duplex, describe using illustrative diagram/example each one. 16 Marks (b) Modern high speed serial communication, use of the Serial Peripheral Interface SPI called SPI or 12C. i. Compare and contrast the 2 techniques in terms of structure, speed, cost, convenience etc. ii. Explain briefly using Fig.Q2(b) how communication operates between Master unit (microcontroller) and some Slave peripherals. What role do the MOSI, MISO,SSL, RSPCK pins play? RSPCK pins play? Fig.Q2(b): SPI communication iii. To establish an 12C communication with an external device, such as the sensor MPU6050 (accelerometer used in class tutorials), necessitates a set of registers that need to be configured using an initialisation function called mpu6050_init() shown below. In this context, explain the role of this excerpt code developed under SSP platform. PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing (b) As such, you are called upon to manage/develop an embedded system project whose simplified specifications are presented in Fig.Q3 for monitoring and controlling an assembly line of a small manufacturing company. Using the arguments developed in part-a above, i. Provide, using the AY technique discussed in class, the complete analysis (comprehension and extraction parts) of the User Requirement Specifications (URS) and derive a Model solution as an outline design in the form of a block diagram, showing where each real physical variable involved is being processed. 15 Marks ii. Suggest a strategy with clear criteria to implement the solution. Assume that the ISDE e2 Studio equipped with the Synergy SSP platform, the toolchains and J-link debugger are available to the team. You are expected to justify the BOM choices of each module/components based on estimating the resources required for a system of this type i.e. type of processor board, amount of firmware (EP)ROM/Flash and RAM (scratch pad) clock settings and alike. 16 Marks iii. State the advantages and disadvantages of your solution in terms of complexity, time to market, quality assurance, cost etc. Assess whether the Renesas Synergy SK-S7D2 board can be considered in your solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
