AVR单片机定时器按键扫描程序(国外英文资料).docVIP

  • 9
  • 0
  • 约1.51万字
  • 约 40页
  • 2017-07-05 发布于河南
  • 举报

AVR单片机定时器按键扫描程序(国外英文资料).doc

AVR单片机定时器按键扫描程序(国外英文资料)

AVR单片机定时器按键扫描程序 AVR microcontroller timer button scanner Date: [2008-07-09] [source: East MCU learning finishing it] [font: Small] (news delivery) /******************************************************************************* * programs define 6 key functions: K1, K2, K3, K4, and a pair of composite keys consisting of K5 and K8, where K2, K3 are * combo keys, K5 file key. In normal mode, press K1 to switch to status, and then press K1 to cycle in settings mode * select one of the 4 digital tubes, the selected digital tube flashes, at this time, press the K2 button to display the value plus 1; often press K2 display number * the value increases at a certain speed, while the digital tube stops blinking. When the K2 is released, the digital tube resumes flashing, and the display value stays *K2 loosen the previous value. The functions K3 completed are similar to those of K2. Its completion subtraction operation. These 2 keys are only in the set state It can effectively prevent misoperation. K4 as the confirmation key, press this button to return to the normal display state, and all the lights go out, * the digital tube displays the value that has just been set. K5+K8 this performs a reset operation on the composite key and, in any case, presses K5 and K8 at the same time * or press K5 first, then press K8, all the digital tube display is all 0, all the lights out, into the normal display state. Simultaneous procedure * the sequence also handles several unusual actions as follows: * 2 or more function keys are pressed simultaneously * one function key is pressed, not released, another function key is pressed, and then one of the functional keys is loosened * the first press the function key and then press the shift key * press the shift key and a plurality of function keys at the same time, this time do not handle. Wait until the release of other file key, only one. * file key and a function key is executed on the composite key; or loosen all the shift key, single fu

文档评论(0)

1亿VIP精品文档

相关文档