摘要
以STC89C52单片机为核心,按照模块化方法设计了通用性和灵活性较强的机舱报警仪表。利用键盘选择开关型传感器的常开或者常闭类型,通过定时中断方式调节PWM波占空比,控制指示灯亮度。不同类型传感器的使用扩大了仪表的应用范围,不同等级的指示灯亮度扩大了仪表的使用场所。实际使用结果表明,仪表的软件和硬件可靠性高,使用方法简单,值得推广使用。
Based on STC89C52 microcontroller, the alarm instrument with high versatility and flexibility in ship engine room was designed according to the modular approach.The normally open or normally closed type of switch sensor was selected by the keyboard.The duty cycle of PWM was adjusted by the timer interrupt to control the brightness of indicator. Different types of sensors expand the scope of application,and different levels of light intensity expand the occasion of application.The results showed that the hardware and software of the instrument are of high reliability,the way of usage is easy, and the instrument is worthy of promotion.
出处
《现代科学仪器》
2013年第6期56-58,共3页
Modern Scientific Instruments