终端的时间是怎么算的
还有问TL1,THO,需不需要定义
满帆看下这是拿错了
Build target 'Target 1'
compiling 12221.c...
12221.C(9): error C132: 'main': not in formal parameter list
12221.C(9): error C141: syntax error near '{'
12221.C(10): error C244: 'tmod': can't initialize, bad type or class
12221.C(10): error C202: 'ox51': undefined identifier
12221.C(10): error C132: 'tmod': not in formal parameter list
12221.C(11): error C244: 'tl1': can't initialize, bad type or class
12221.C(11): error C202: 'ox00': undefined identifier
12221.C(11): error C132: 'tl1': not in formal parameter list
12221.C(11): error C244: 'th1': can't initialize, bad type or class
12221.C(11): error C202: 'ox00': undefined identifier
12221.C(11): error C132: 'th1': not in formal parameter list
12221.C(12): error C244: 'tl0': can't initialize, bad type or class
12221.C(12): error C202: 'ox00': undefined identifier
12221.C(12): error C132: 'tl0': not in formal parameter list
12221.C(12): error C244: 'tho': can't initialize, bad type or class
12221.C(12): error C132: 'tho': not in formal parameter list
12221.C(13): error C244: 'IE': can't initialize, bad type or class
12221.C(13): error C202: 'ox82': undefined identifier
12221.C(13): error C132: 'IE': not in formal parameter list
12221.C(13): error C244: 'tr0': can't initialize, bad type or class
12221.C(13): error C132: 'tr0': not in formal parameter list
12221.C(14): error C141: syntax error near 'while'
12221.C(14): error C141: syntax error near '1'
12221.C(16): error C202: 'js': undefined identifier
12221.C(19): error C244: 'po': can't initialize, bad type or class
12221.C(19): error C202: 'js': undefined identifier
12221.C(20): error C132: 'po': not in formal parameter list
12221.C(20): error C141: syntax error near 'p2_1'
12221.C(20): error C244: 'p2_1': can't initialize, bad type or class
12221.C(20): error C132: 'p2_1': not in formal parameter list
12221.C(21): error C132: 'delay': not in formal parameter list
12221.C(22): error C279: 'p0': multiple initialization
12221.C(22): error C244: 'p0': can't initialize, bad type or class
12221.C(22): error C202: 'js': undefined identifier
12221.C(22): error C132: 'p0': not in formal parameter list
12221.C(23): error C244: 'p2_2': can't initialize, bad type or class
12221.C(23): error C132: 'p2_2': not in formal parameter list
12221.C(24): error C132: 'delay': not in formal parameter list
12221.C(25): error C279: 'p0': multiple initialization
12221.C(25): error C244: 'p0': can't initialize, bad type or class
12221.C(25): error C202: 'js': undefined identifier
12221.C(25): error C132: 'p0': not in formal parameter list
12221.C(26): error C244: 'p2_3': can't initialize, bad type or class
12221.C(26): error C132: 'p2_3': not in formal parameter list
12221.C(27): error C132: 'delay': not in formal parameter list
12221.C(28): error C141: syntax error near '}'
12221.C(33): error C202: 'ox00': undefined identifier
12221.C(33): error C202: 'ox4c': undefined identifier
12221.C(34): error C202: 'k': undefined identifier
12221.C(35): error C202: 'k': undefined identifier
12221.C(37): error C202: 'js': undefined identifier
12221.C(38): error C202: 'K': undefined identifier
12221.C(40): error C202: 'js': undefined identifier
12221.C(48): error C141: syntax error near '}'
Target not created
------解决方案--------------------
像TH0TH1这样的在标准的头文件里是有定义的
你可以直接包含那个头文件即可
当然也可以自己用sfr/sbit这两个关键字进行定义
这么多东西找不着,应该是你没有拿到头文件
:)
------解决方案--------------------
姑且不说缺头文件的问题、寄存器名称大小写的问题,
光是这个“ox00”就很吓人了……
要表示16进制数请写“0xXX”,不是“oxXX”……