This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ79606A-EXAMPLE-CODE: Example for CommClear API

Part Number: BQ79606A-EXAMPLE-CODE

Hi Team,

May I learn from you when we should call this API - CommClear()? 

Need more example on this function. 

  • Hi,

    A Communication Clear is used to clear the UART receiver and instruct it to look for a new start of frame. An example when this is useful is if the device is waiting for a response from the stack devices but it didn't receive all the bytes expected. You can send a comm clear (by holding the RX line low for a min of tUART(BRK) bit periods) and this way the receiver will detect the next instruction received as a start of a new frame. 

    Please review section 8.5.1.1.1.4 "Communication Clear (Break) Detection" in the device datasheet for more details.

    Best regards,

    Leslie

  • Hi,

    Thanks for your comments. Yes, I can find "Comm clear" description on TRM. However, I am looking forward more information. BTW, may I have a example code when you will call this function during SW implement? 

  • Hi

    Comm clear is taking RX pin  low for tUART(BRK)

    I don't know how we can provide example code for this.

    Thanks

    Roger