- 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
您可能关注的文档
最近下载
- 2023年上海市高中学生化学竞赛暨华理化工杯初赛试题和答案.doc VIP
- 3呼吸系统类药物培训.pptx VIP
- 16CK208 装配式室内管道支吊架的选用与安装.docx VIP
- 破产债权申报书范本.doc VIP
- 宣贯培训(2026年)《GBT 29076-2021航天产品质量问题归零实施要求》.pptx VIP
- 新教材人教版音乐一年级上册-《节奏密码-音符》课件.pptx VIP
- 新教材人教版音乐一年级上册-《节奏密码-音符》教案.docx VIP
- EN IEC 60034-30-1 完整版中文版(EN IEC 60034-30-1_2025)(能效 IE 分级标准原文 + 实操解读).docx VIP
- 《探索性数据分析》课件.ppt VIP
- menredTT15智能水泵中文说明书.pdf
原创力文档

文档评论(0)