9608_s15_qp_33
A paper of Computer Science, 9608
Questions:
6
Year:
2015
Paper:
3
Variant:
3

Login to start this paper & get access to powerful tools

1
2
3
4
5
6
A company grows vegetables in a number of large greenhouses. For the vegetables to grow well, the temperature, light level and soil moisture need to always be within certain ranges. The company installs a computerised system to keep these three growing conditions within the best ranges. Sensors are used for collecting data about the temperature, light level, and moisture content of the soil. Name the type of system described. Give three items of hardware that would be needed for this system. Justify your choice. Do not include sensors in your answer. Item 1 Justification Item 2 Justification Item 3 Justification Describe what is meant by feedback in the above system. When the system was designed, various parameters for temperature were set. Name one of these parameters. Explain how this parameter value is used by the feedback system. Question 6 continues on page 14. Each greenhouse has eight sensors (numbered 1–8). • The byte at address 150 is used to store eight 1-bit flags. • A flag is set to indicate whether its associated sensor reading is waiting to be processed. • More than one sensor reading may be waiting to be processed at any particular moment. • Data received from the sensors is stored in a block of eight consecutive bytes (addresses 201–208). • The data from sensor 1 is at address 201, the data from sensor 2 is at address 202, and so on. Sensor number Interpret the current reading for sensor 2. The accumulator is loaded with the data from location 150. Write the assembly language instruction to check whether there is a value waiting to be processed for sensor 6. LDD 150 // data loaded from address 150