Question: QUESTION 2 (a) (1) is a cross compiler always necessary when working with embedded systems? If not, when exactly is a cross compiler necessary? (ii)
QUESTION 2 (a) (1) is a cross compiler always necessary when working with embedded systems? If not, when exactly is a cross compiler necessary? (ii) It is possible to get standalone device programmers and combined device programmer/hardware debugger devices. State the reasons why you might you choose either one over the other? (b) The prescaler of a Timer1 is configured via bits 5 and 4 of the 8-bit TICON register. The current value of the T1 CON register is 0x27. (0) Specify the appropriate bitmask to use for getting or setting the prescaler value from the Ticon register. (ii) Specify the appropriate bitwise operations required to read the prescaler value indicated by TICON and store it in the variable oldValue. Show all intermediate results (binary) and the final value of oldValue in binary and hexadecimal. (iii) Specify the appropriate bitwise operations required to modify the prescaler value in T1CON while leaving the other bits unchanged. The prescaler value should be set to the value specified by the variable prescale which contains the value 0x3. Show all intermediate results (binary) and the final value of Ticon in binary and hexadecimal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
