11
-1
59
注册会员
#define MAIN_Fosc 22118400L //定义主时钟 void delay_ms(u16 ms) //unsigned int { u16 i; do { i = MAIN_Fosc/6000; while(--i); }while(--ms); }复制代码
delay_ms(u8 t) { u16 i,j; for(i=0;i<t;i++) for(j=0;j<124;j++); }复制代码
使用道具 举报 送花
718
1万
管理员
神*** 发表于 2023-9-1 19:21 也在开发自动延时程序生成器 ?
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2025-5-3 14:49 , Processed in 0.132228 second(s), 61 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.