| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Show understanding of how bit manipulation can be used to monitor/control a device | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick demonstration of an LED array controlled by a single byte, asking students how many devices can be managed simultaneously. Recall previous work on binary numbers and logical operators. Today they will learn to use bit manipulation to monitor and control hardware, and will be able to write code that reads sensor flags and drives actuators. |
Lesson Structure:
|
|
|
Conclusion: Summarise the four‑step process of identifying bits, building masks, applying operators, and preserving other bits. Students complete an exit ticket describing how they would detect an over‑temperature alarm using a mask. For homework, they will write pseudo‑code to handle a different sensor register using the techniques learned. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.