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.

BQ79600EVM: TMS570LS1224: "SPI and UART examples" reading BQ79616 modules and Output on MAX3232

Part Number: BQ79600EVM
Other Parts Discussed in Thread: BQ79616, HALCOGEN

QJ Wang sent me :-)  https://e2e.ti.com/support/microcontrollers/other/f/908/t/974340


Hello,

unfortunately, I’m running out of UART-Channels on my TMS570, but I’m not sure why they are used in the examples.
I’m referring to the “BQ79600_SPI_Sample_Code” and the “BQ79600_UART_Sample_Code”

The Hercules has two UART-Lines which are both used in the UART-Example, and both are set to 1MHz (SCI and SCI2)
I thought they were used for the COM_H and COM_L for the BQ79600, but I have trouble finding this in the code.

Anyway, I need an extra UART to be able to talk to an RS232-Client.
My idea was to actually use the SPI example to free a "UART" and use the spare one for the RS232-Adapter (MAX3232)

Inside the “SPI_Sample_Code.zip”, I found the settings for HALCoGen.
This is using SPI3 and also both UART-Lines (SCI and SCI2 @1MHz) ??

I’m kind of stuck here... 

It would be great if  I could set up a UART, that can be used to send and receive bytes from the MAX3232-chip (RS232)
115200,8,N,1 would be the desired setting.

I’m happy to use the SPI_Sample and change the resistors and Jumpers on the BQ79600 board to free a UART-Line.
Also, we will not connect the BQ79616 in a ring, so I only need the COMH connection.

I should have at least one spare UART to send out data to the MAX3232
But I'm not sure how to change the Settings on HALCoGen (from the SPI-Example)
and where the spare one is wired in the end. 

Best Regards
Collin

  • Hi Collin,

    The SPI sample code doesn't use UART, so you should be able to use SCIRX and SCITX pins on the MCU (pins 38 and 39), or if using the LAUNCHXL2-TMS57012x launchpad it would be J2-3 and J2-4 on the J2 header. 

    The SPI sample code was created from the UART sample code and modified to use SPI instead, that is probably why UART is configured in the Halcogen file as if it was being used, but the actual main code does not use UART. 

    Best regards,

    Leslie