juncedz 发表于 2020-8-28 16:53 谢谢解决问题 |
| 不错的创意,牛啊 |
| 谢谢分享,51黑有你更精彩! |
| 谢谢分享,51黑有你更精彩! |
|
这个用什么板子可以烧录出来啊? 是要用自己做的板子还是可以网上买啊? |
| 楼主真的是个有心人,结构清晰,标注详细 |
51hei团团 发表于 2021-4-1 17:45 14 15楼发的是同一个头文件吧 已经加进去了啊 还是报错 还是同样的不能打开stc_pwm.h C:\Users\Administrator\Desktop |
言笑晏晏 发表于 2021-4-1 17:31 把14,15楼发的头文件加进入就编译ok了 |
51hei.png (29.95 KB, 下载次数: 135)
34.58 KB, 下载次数: 15, 下载积分: 黑币 -5
| can't open file 'stc_pwm.H'怎么解决啊? |
小颖! 发表于 2020-8-26 10:51 用这个可以的 |
4.14 KB, 下载次数: 16, 下载积分: 黑币 -5
sunboy888888 发表于 2020-8-26 13:56 用这个可以的 |
4.14 KB, 下载次数: 21, 下载积分: 黑币 -5
| 能否请教下 PWM 调速, PWM 的频率是多少? |
| 我把stc12c5A60s2.H的头文件改成了 reg51.H 编译时从200个错误,变成了main.c - 36 Error(s), 1 Warning(s). 这个头文件如何处里?如下main.c(2): warning C318: can't open file 'stc_pwm.H' |
|
在keil中,把#include<STC12C5A60S2.H>头文件改成 #include<reg51.H>后,两百多个提示错误,变成了36个,但main.c(2): warning C318: can't open file 'stc_pwm.H' main.c(116): error C202: 'CCON': undefined identifier main.c(117): error C202: 'CL': undefined identifier main.c(118): error C202: 'CH': undefined identifier main.c(119): error C202: 'CMOD': undefined identifier main.c(120): error C202: 'CCAPM1': undefined identifier main.c(121): error C202: 'CCAP1H': undefined identifier main.c(122): error C202: 'CCAP1L': undefined identifier main.c(123): error C202: 'CR': undefined identifier main.c(239): error C202: 'CCAP1H': undefined identifier main.c(240): error C202: 'CCAP1L': undefined identifier main.c(255): error C202: 'CCAP1H': undefined identifier main.c(256): error C202: 'CCAP1L': undefined identifier main.c(309): error C202: 'CCAP1H': undefined identifier main.c(310): error C202: 'CCAP1L': undefined identifier main.c(325): error C202: 'CCAP1H': undefined identifier main.c(326): error C202: 'CCAP1L': undefined identifier main.c(344): error C202: 'CCAP1H': undefined identifier main.c(345): error C202: 'CCAP1L': undefined identifier main.c(348): error C202: 'CCAP1H': undefined identifier main.c(349): error C202: 'CCAP1L': undefined identifier main.c(352): error C202: 'CCAP1H': undefined identifier main.c(353): error C202: 'CCAP1L': undefined identifier main.c(356): error C202: 'CCAP1H': undefined identifier main.c(357): error C202: 'CCAP1L': undefined identifier main.c(360): error C202: 'CCAP1H': undefined identifier main.c(361): error C202: 'CCAP1L': undefined identifier main.c(364): error C202: 'CCAP1H': undefined identifier main.c(365): error C202: 'CCAP1L': undefined identifier main.c(464): error C202: 'CCAP1H': undefined identifier main.c(465): error C202: 'CCAP1L': undefined identifier main.c(472): error C202: 'CCAP1H': undefined identifier main.c(473): error C202: 'CCAP1L': undefined identifier main.c(480): error C202: 'CCAP1H': undefined identifier main.c(481): error C202: 'CCAP1L': undefined identifier main.c(488): error C202: 'CCAP1H': undefined identifier main.c(489): error C202: 'CCAP1L': undefined identifier main.c - 36 Error(s), 1 Warning(s).这些如何解决?请高人指点下。。。 ![]() |
sunboy888888 发表于 2020-8-26 08:27 要添加这个芯片的头文件 |
|
compiling main.c... main.c(1): warning C318: can't open file 'STC12C5A60S2.H' main.c(2): warning C318: can't open file 'stc_pwm.H' main.c(12): error C202: 'P1': undefined identifier main.c(13): error C202: 'P3': undefined identifier main.c(14): error C202: 'P3': undefined identifier main.c(21): error C202: 'P3': undefined identifier main.c(22): error C202: 'P2': undefined identifier main.c(23): error C202: 'P1': undefined identifier main.c(24): error C202: 'P1': undefined identifier main.c(25): error C202: 'P1': undefined identifier 打开源码进行编译, 这么多变量没有定义,如何解决。。。。。。 |
| 炎热的夏天这个设计很实用、 |
| 很有实用意义的一个设计 |
| 很实用的一个设计 |
| 超级好用 |
|
你好,这个有定时功能吗? |
| 谢谢分享! |
| 谢谢分享!! |