|
查看: 1250|回复: 1
|
PIC basic compile有问题
[复制链接]
|
|
|
我用了microcode studio compile我的program. 但出现
ERROR: ELSE: Mismatched block nesting.
ERROR: ENDIF: Mismatched block nesting
我的program是:
if counter=3 then LED3=1
pause 250
goto start_password
else
gosub clearpass
endif
我用pic16f877 |
|
|
|
|
|
|
|
|
|
|
发表于 4-3-2008 08:57 AM
|
显示全部楼层
回复 1# frogemee 的帖子
我不会PICBasic, 可是你可以试试:
if .. then
...
else
...
endif
- if counter=3 then
- LED3=1
- pause 250
- goto start_password
- else
- gosub clearpass
- endif
复制代码
[ 本帖最后由 pic 于 4-3-2008 09:00 AM 编辑 ] |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|