예제 #1
0
        /// <summary>
        /// 3.4.8 Clock Data Bits In on -ve clock edge LSB first (no write)
        /// TDO/DI sampled just prior to falling edge
        /// 0x2E,
        /// 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 down so that the first bit in may not be in bit 0 but from 1 upwards
        /// depending on the number of bits to shift (i.e. a length of 1 bit will have the
        /// data bit sampled in bit 7 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 BitsInOnMinusEdgeWithLsbFirst(byte len)
        {
            write(MpsseCommand.BitsInOnMinusEdgeWithLsbFirst(len));
            while (inputLen == 0)
            {
                Thread.Sleep(10);
            }

            return(read(1)[0]);
        }
예제 #2
0
        /// <summary>
        /// 3.4.8 Clock Data Bits In on -ve clock edge LSB first (no write)
        /// TDO/DI sampled just prior to falling edge
        /// 0x2E,
        /// 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 down so that the first bit in may not be in bit 0 but from 1 upwards
        /// depending on the number of bits to shift (i.e. a length of 1 bit will have the
        /// data bit sampled in bit 7 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 BitsInOnMinusEdgeWithLsbFirst(byte len)
        {
            write(MpsseCommand.BitsInOnMinusEdgeWithLsbFirst(len));

            return(read(1)[0]);
        }