下位机程序: --------------------------------------------------------------------------- a0=1; P1=0x15; wr=0; wr=1; delay3us();
a0=0; P1=0x02; wr=0; wr=1; delay30us(); --------------------------------------------------------------------------- a0=1; P1=0x2A; wr=0; wr=1; delay3us();
a0=0; P1=1; wr=0; wr=1; delay3us();
a0=0; P1=255; wr=0; wr=1; delay3us(); --------------------------------------------------------------------------- 上位机程序: a = 0 b = 1 CH375OpenDevice (0) Text1.Text = CH375ReadData(0, a, b)
结果是上位机程序死等,拔下USB连线立即返回False。 有谁知道那里出了错?