/// <summary> /// 3.3.8 Clock Data Bits In on -ve clock edge MSB first (no write) /// TDO/DI sampled just prior to falling edge /// 0x26, /// Length, /// This will clock in bits on TDO/DI from 1 to 8 depending on the Length byte. A /// length of 0x00 will do 1 bit and a length of 0x07 will do 8 bits. The data will be /// shifted up so that the first bit in may not be in bit 7 but from 6 downwards /// depending on the number of bits to shift (i.e. a length of 1 bit will have the /// data bit sampled in bit 0 of the byte sent back to the PC). The data will be /// sampled on the falling edge of the CLK pin. No data is clocked out of the device /// on TDI/DO. /// </summary> /// <param name="len"></param> /// <returns></returns> public byte BitsInOnMinusEdgeWithMsbFirst(byte len) { write(MpsseCommand.BitsInOnMinusEdgeWithMsbFirst(len)); while (inputLen == 0) { Thread.Sleep(10); } return(read(1)[0]); }
/// <summary> /// 3.3.8 Clock Data Bits In on -ve clock edge MSB first (no write) /// TDO/DI sampled just prior to falling edge /// 0x26, /// Length, /// This will clock in bits on TDO/DI from 1 to 8 depending on the Length byte. A /// length of 0x00 will do 1 bit and a length of 0x07 will do 8 bits. The data will be /// shifted up so that the first bit in may not be in bit 7 but from 6 downwards /// depending on the number of bits to shift (i.e. a length of 1 bit will have the /// data bit sampled in bit 0 of the byte sent back to the PC). The data will be /// sampled on the falling edge of the CLK pin. No data is clocked out of the device /// on TDI/DO. /// </summary> /// <param name="len"></param> /// <returns></returns> public byte BitsInOnMinusEdgeWithMsbFirst(byte len) { write(MpsseCommand.BitsInOnMinusEdgeWithMsbFirst(len)); return(read(1)[0]); }