微机期末(国外英文资料).docVIP

  • 4
  • 0
  • 约 35页
  • 2017-06-10 发布于河南
  • 举报
微机期末(国外英文资料)

微机期末(国外英文资料) The buzzer procedure: # inclu config. H # define BEEP 1 7 / / P0.7 control buzzer, low level buzzer * * function name: DelayNS () * function: long software delay * entry parameters: the delay parameter, the larger the value, the longer the delay * export parameters: no Void DelayNS (uint32 dly) {uint32 I; () For (I = 0; I 50000; I + +); } * function name: main () * function: control BEEP with P0.7 and let the buzzer buzzer * debugging instructions: the jump line JP11 and BEEP are needed Int main (void) {PINSEL0 = 0 / / set pins to connect GPIO IOODIR = BEEP; / / set B

文档评论(0)

1亿VIP精品文档

相关文档