Other Parts Discussed in Thread: MSP-FET, UNIFLASH
Dear TI Technical Support Team,
We're developing wireless communication devices, and it requires UART-to-I2C bridges to control GPIOs in the system.
and we're trying to interface UART to I2C using MSP430FR2311.
Our goal is to send commands to an I2C chip under the configuration below.
CPU --> USB Hub --> USB to UART converter --> UART to I2C bridge(MSP430FR2311) --> I2C Expander
For the verification of the chip, we've purchased standalone MSP430FR2311PW20 chips and MSP-FET debugger.
The application note SLAA908 describes a program that converts between UART and I2C protocols.
However I need some more details because I don't have any backgrounds regarding this.
so I'd like to ask some questions here.
1.
In introduction, it says I should download the project files and a code example in the link below.
www.ti.com/.../slaa908
I installed CCS, then created a project using downloaded files, and built 'debug' for the new project, and debugged the project.
As far as I understand, now the chip contains the UART-to-I2C bridge code inside and it should work as a UART-to-I2C bridge even without CCS.
Is it correct?
2.
If yes, we can send I2C commands through the UART interfaces and it converts into I2C signals, is it correct?
If not, do we have to write a new code for our UART-to-I2C application?
3.
In page 3 of SLAA908, it says that
"Using a PC, open a new serial connection with a terminal program, and connect to the back-channel
UART interface on the MSP-FET by selecting the COM port called MSP Application UART1. In the
terminal window, change the baud rate to 115200. To demonstrate the functionality of the UART-to-I2C
bridge, enter a string of bytes into the terminal window follow command formats and send it. It will be sent
to the I2C slave device, and whatever value was in the TX buffer of the I2C slave device will be displayed
in the serial terminal."
I was following this, but I am not clear of how should the MSP-FET be configured for doing this.
The MSP430FR2311 chip is mounted on, and MSP-FET is connected to the USB port of PC,
and the jumpers of MSP-FET is set as described in the application note.
After that I opened a TeraTerm terminal and chose a serial connection option(MSP Application UART1), set the baud rate to 115200.
Is that all I need to do? or do I have to be opening the CCS and go to a debug mode?
4.
If I follow what is instructed in page 3 of SLAA908,
and then pull-up J4.19 and J4.20 (I2C_SCL and I2C_SDA, respectively)
I could be able to see the waveforms at I2C_SDA pin(J4.20 in MSP-FET) using an oscilloscope,
when I send I2C commands to the UART interface. Is it correct?
The questions may be rambling because I'm quite new to this area.
Any comments or advice would be greately appreciated.