Logo
Question DetailsNormal
$ 18.00
EEGR 417 – Microprocessors Applications Project 1 | Complete Solution
Question posted by
request

EEGR 417 – Microprocessors Applications
Project 1

Question 1
1.    Compute 0x78 ^ 0x54 and only submit your answer in hexadecimal (starts with 0x..)
 
Question 2
1.    Consider tempo = tempo | 0x10;
Which of tempo bit may be affected?
 
A.    bit 0
 
B.    bit 7
 
C.    bit 1
 
D.    bit 4
Question 3
1.    Match these C data types for embedded systems and their signed ranges
 
char

 
short int

 
int

 
long int

    Answer
A.    -2^31 to  +(2^31) - 1
B.    -2^31 to  +(2^31) - 1
C.    -32,768 to +32,767
D.    -128 to +127


Question 4
1.    How to set the first 8 bits in variable tempo?
 
A.    tempo | 0xFF
 
B.    tempo & 0xFF
 
C.    tempo | 0x11
 
D.    tempo & 0x11
Question 5
1.    Match these C data types for embedded systems and their ranges
 
long long

 
unsigned char

 
int

 
unsigned short int

    Answer
A.    -2^63 to  +(2^63) - 1
B.    0 to +(2^16)-1
C.    0 to 255
D.    0 to +(2^32)-1

Question 6
1.    The header file stdint.h defined data types. What data type corresponds to the range: 0 to 4,294,967,295
 
A.    uint8_t
 
B.    int64_t
 
C.    int32_t
 
D.    uint32_t


Question 7
1.    0bxxxxxxx is binary.
In hexadecimal, what is the result of the operation: 0b10001000 >> 3;
 
A.    0x88
 
B.    0x11
 
C.    0xF1
 
D.    0x09
Question 8
1.    How to clear the first 8 bits in variable tempo?
 
A.    tempo | 0xF0
 
B.    tempo & 0x00
 
C.    tempo & 0x1F
 
D.    tempo | 0x00
Question 9
1.    Compute and display your answer in hexadecimal: 0x0F & 0x34
 
Question 10
1.    Inverting:
compute ~0xBB

 

Available Solution
$ 18.00
EEGR 417 – Microprocessors Applications Project 1 | Complete Solution
  • This solution has not purchased yet.
  • Submitted On 27 Sep, 2015 02:52:14
Solution posted by
solution
Question 4 1. How to set the first 8 bits...
Buy now to view full solution.
closebutton

$ 629.35