Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
Where's the FireThe scenario!A large building has a number of heat sensors in its fire alarm system. When there is a fire, the fire brigade needs to know where the fire is. In other words, they need to know which heat sensor has triggered the alarm. The system is controlled by a PICmicro microcontroller. There are five heat sensors. These are connected as inputs to Port A. Port B is set up as the output port, and connected to a set of five LED's. If a heat sensor detects a fire, the corresponding LED lights up. |