


To observe the calls that X-CTU (XCTU) software makes to the serial port during the reading and writing of binary commands consider using a free application called PortMon. Try observing the timing of the assertion and de-assertion of the RTS signal compared to the TXD signal using an oscilloscope.

ReadData() // Retrieve the binary response from the comm port buffer WaitForCTSEvent() // CTS will frame the responseĪssertRTS() // De-assert binary command mode ClearCTSEvent() // Make sure there are no pending eventsĬlearCTSEvent() // Make double sure there are no pending eventsĭeassertRTS() // Assert binary command modeīCmd |= 0x80 // Set msb for reading the register
