利用Atmel公司的ATmega168微處理器,采用A/D轉換方式來實現按摩椅控制器的鍵盤接口,通過在硬件電路中巧妙地選擇電阻,在軟件設計中采用數字濾波、二分法和區間鑒定等方法,靈敏可靠地實現了按摩椅中30個按鍵的處理。給出了硬件電路設計和軟件設計思想以及部分匯編代碼。
Abstract:
This paper chooses A/D conversion method to realize the keyboard interface of the controller by using ATmega168 microchip from Atmel Company.It accomplishes 30-key dealing sensitively and reliably in massage chair through skillfully selecting resistors in hardware circuit and using digital filter,dichotomy and area-judging method in software design.The hardware design circuit, software design idea and partly assembles code are presented mainly.
標簽:
ATmega
168
ADC
按鍵
上傳時間:
2014-01-10
上傳用戶:咔樂塢