$11 = 00B4H
$12 = 012CH
$13 = 00C8H
$14 = 00A0H
$15 = 00F2H
$16 = 00B6H
$17 = 00DCH
$18 = 0000H
$21 = 0D05H
发送(START01)要求DSP应答,以上是(START01)的ASCII码,用的是485字符通信,DSP应答帧的结构为(00DC00DB00DC00000000000000DC00DC00DC00B4000000DC000000000000001E323232323232321000000101XX)
clock宏中写入
$1111 = INITCOM(1, 2, 1, 0, 1, 6, 0)
SELECTCOM(1)
$1112=PUTCHARS($10,18,500)
$1122=GETCHARS($30,49,500)
通讯设定如图
结果初始化返回值为0,失败,发送数据返回值1,成功,接受数据失败