×
Get Full Access to UT - ME 445 - Study Guide - Midterm
Get Full Access to UT - ME 445 - Study Guide - Midterm

×

# ee445m Description

##### Description: Some questions used to study and practice for the RTOS class.
4 Pages 89 Views 0 Unlocks
Reviews

ME445M: Embedded and Real Time Systems   Study guide Set #01 EE445M: EMBEDDED AND REAL TIME SYSTEMS Course offered by the Department of Electrical Engineering at University of Texas at Austin Study Guide Set #01 February 15, 2017 Disclaimer: The contents of this document is a study guide for The University of Texas at Austin EE445M Spring 2017, Embedded and real Time Systems. Reference: http://users.ece.utexas.edu/~valvano/arm

## What C data type should be used to store such values?

Don't forget about the age old question of Explain the role of a Ribozyme.
We also discuss several other topics like bmgt207
Don't forget about the age old question of info 3130 uncc
Don't forget about the age old question of mtro 101 towson
We also discuss several other topics like What are some of the causes and consequences of obesity in middle childhood?
Don't forget about the age old question of econ 315

10) Write a subroutine in C or assembly called SOS_Detector that first reads PB7 nine times very quickly. If the nine consecutive inputs match the pattern "000111000", then return a 1, otherwise return a 0. SOS_Detector must be AAPCS compliant. Answer: Subroutine in C Subroutine in assembly int32_t SOS_Detector(void)  {   uint32_t i,data=0;   for(i=0; i<9; i++){   data = (data<<1)|(   GPIO_PORTB_DATA_R&0x80);   }   if(data == (0x38<<7)){   return 1;   }   return 0;  } SOS_Detector   MOV R0,#0   LDR R1,=GPIO_PORTB_DATA_R   MOV R2,#9  loop LDR R3,[R1] ; PORTB   AND R3,#0x80 ; PB7   LSL R0,#1   ORR R0,R0,R3 ;combine bits   SUBS R2,#1   BNE loop ;9 times   CMP R0,#(0x38<<7)   BEQ yes  no MOV R0,#0   B done  yes MOV R0,#1  done BX LR