Programming questions (must be written in PIC18 assembly): (8 marks) A hypothetical temperature t...
Programming questions (must be written in PIC18 assembly): (8 marks) A hypothetical temperature transducer generates a voltage based on it's current temperature, given by the function: Voltage = 0.05 × Temperature + 1 For example, if the temperature is 1°C, the transducer will output a voltage of 1.05 V. Write an assembly program which will output high on RB3 when the temperature falls below 18°C, and outputs low on RB3 when the temperature rises above 22°C Assume Vdd- 3.3 V, Vss 0 V, fosc 4 MHz, Tacqa.min3 us, TAD,min 0.7 us acq,mm
Programming questions (must be written in PIC18 assembly): (8 marks) A hypothetical temperature transducer generates a voltage based on it's current temperature, given by the function: Voltage = 0.05 × Temperature + 1 For example, if the temperature is 1°C, the transducer will output a voltage of 1.05 V. Write an assembly program which will output high on RB3 when the temperature falls below 18°C, and outputs low on RB3 when the temperature rises above 22°C Assume Vdd- 3.3 V, Vss 0 V, fosc 4 MHz, Tacqa.min3 us, TAD,min 0.7 us acq,mm