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.

EV2300 Source Code, bq2022A

Other Parts Discussed in Thread: BQ2022A

Could TI provide visual basic source code examples of ussing the EV2300 HDQ port?

I have experience using the EV2300 through visual basic to perform SMB port functions, but not the HDQ port.  We would like to use the EV2300 functions to create a manufacturing app.

Thanks,

  • Wow, thank you for the quick response. 

    Where can we get the code for the functions used in the sample code you provided?  We are using the bqhelp vb example as a starting point and the functions used in your attachment are not included.

    Our Goal:  To use the EV2300 to program/read the bq2022A as the evaluation software would.

    Thanks,

  • Here it is down one level. So, you can see that ReadOneWire and WriteOneWire methods do indeed exist in the bq80xRW1 OCX. You should be able to browse the object in VB to get the various values for the first argument.

    Public Function ReadOneWire(eType As OneWireType, nOneWireCmd As Integer, nWord As Integer) As Long

           ReadOneWire = Bq80xRW1.ReadOneWire(eType, nOneWireCmd, nWord)

    End Function

     

    Public Function WriteOneWire(eType As OneWireType, nOneWireCmd As Integer, nWord As Integer) As Long

          WriteOneWire = Bq80xRW1.WriteOneWire(eType, nOneWireCmd, nWord)

    End Function

  • Hello Williams,

              i am using the bq2022a through ev2300. now i can't program the both bq2022a on EVM through ev2300.can you help me how to solve it? and i think for ev2300 is HDQ interface and bq2022a is SDQ interface, does it mean ev2300 can't identify both or more SDQ devices in SDQ bus? great thanks!

       

  • The bq2022A actually does NOT work with more than one device on the SDQ bus.  If you are using the EVM, make sure only one location has a bq2022A populated in a socket.

  • But the BQ2022A datasheet at page 6 indicated it support multi device, i am confused by it. it's the bq2022a or SDQ bus reason that it only one device can be identify at one time? thanks!