Esempio n. 1
0
        /// <summary>
        /// 3.3.7 Clock Data Bits In on +ve clock edge MSB first (no write)
        /// TDO/DI sampled just prior to rising edge
        /// 0x22,
        /// 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 rising 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 BitsInOnPlusEdgeWithMsbFirst(byte len)
        {
            write(MpsseCommand.BitsInOnPlusEdgeWithMsbFirst(len));
            while (inputLen == 0)
            {
                Thread.Sleep(10);
            }

            return(read(1)[0]);
        }
Esempio n. 2
0
        /// <summary>
        /// 3.3.7 Clock Data Bits In on +ve clock edge MSB first (no write)
        /// TDO/DI sampled just prior to rising edge
        /// 0x22,
        /// 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 rising 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 BitsInOnPlusEdgeWithMsbFirst(byte len)
        {
            write(MpsseCommand.BitsInOnPlusEdgeWithMsbFirst(len));

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