Beispiel #1
0
        /// <summary>
        /// 3.5.2 Clock Data to TMS pin with read
        /// 0x6E
        /// Length,
        /// Byte1
        /// This will send data bits 6 down to 0 to the TMS pin using the LSB or MSB and -ve
        /// or +ve clk , depending on which of the lower bits have been set.
        /// 0x6E : TMS with LSB first on +ve clk edge, read on -ve edge - use if clk is set to '1'
        /// Bit 7 of the Byte1 is passed on to TDI/DO before the first clk of TMS and is held
        /// static for the duration of TMS clocking. The TDO/DI pin is sampled for the
        /// duration of TMS and a byte containing the data is passed back at the end of TMS
        /// clocking.
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte TmsInOnMinusOutOnPlusEdge(byte data, byte len)
        {
            write(MpsseCommand.TmsInOnMinusOutOnPlusEdge(data, len));
            while (inputLen == 0)
            {
                Thread.Sleep(10);
            }

            return(read(1)[0]);
        }
Beispiel #2
0
        /// <summary>
        /// 3.5.2 Clock Data to TMS pin with read
        /// 0x6E
        /// Length,
        /// Byte1
        /// This will send data bits 6 down to 0 to the TMS pin using the LSB or MSB and -ve
        /// or +ve clk , depending on which of the lower bits have been set.
        /// 0x6E : TMS with LSB first on +ve clk edge, read on -ve edge - use if clk is set to '1'
        /// Bit 7 of the Byte1 is passed on to TDI/DO before the first clk of TMS and is held
        /// static for the duration of TMS clocking. The TDO/DI pin is sampled for the
        /// duration of TMS and a byte containing the data is passed back at the end of TMS
        /// clocking.
        /// </summary>
        /// <param name="data"></param>
        /// <param name="len"></param>
        /// <returns></returns>
        public byte TmsInOnMinusOutOnPlusEdge(byte data, byte len)
        {
            write(MpsseCommand.TmsInOnMinusOutOnPlusEdge(data, len));

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